On to other news, I quit Lowe's today. Sorry to all those who didn't get to use my discount, which is everyone. But they couldn't offer me enough hours, even the store I was looking to transfer to could only offer me part time, with open availability so I wouldn't have been able to get a second job. So I made a phone call and got a full time position at Mr. Jims delivering pizza again. Its not the greatest job, but they can give me 40 hours a week, which is more important than anything else. Plus tips are really good in Prosper, lots of rich people. At least I hope thats the case. I will be coming home on Sunday, so I will be there for dinner Sunday night.
I have a pretty epic programming boast. I taught myself something new in C++, a language I haven't really used in about a year. I was a little rusty at first but was able to figure out what I needed to do. I wanted to write a program that would open a file and read what was in the file, save it, output it again and also add to the file. Its not as easy as it sounds from a programming standpoint. It will be used over and over again which is why its easiest to not just open the file and change what you want to change like that. Anyways, here is the code for it.
////////////////////////////////////////////////////////////////////////////////////////////////////
// Test Output Program
// 10/4/2008
// Written By: Cammeron Holloway
////////////////////////////////////////////////////////////////////////////////////////////////////
#include < iostream>
#include < fstream>
#include < cmath>
#include < cstdlib>
#include < string>
#include < iomanip>
#include < string>
#include < cstdio>
using namespace std;
int main()
{
const int max = 122;
char file_name[max + 1];
char ask = 'n';
int length;
char * buffer;
string add;
system("clear");
cout << "Please enter the name of the file to be used: ";
cin.get(file_name,max + 1);
cout << "\n\n";
ifstream rd_1;
rd_1.open(file_name, ios::binary);
if( rd_1.fail() )
{
cout << "Could not open file " << file_name << endl;
return EXIT_FAILURE;
}
else
{
cout << "File " << file_name << " opened successfully." << endl;
}
rd_1.seekg (0, ios::end);
length = rd_1.tellg();
rd_1.seekg (0, ios::beg);
buffer = new char [length];
rd_1.read (buffer,length);
ofstream ofs_1;
ofs_1.open(file_name, ios::out);
if (!ofs_1)
{
cout << "Failure to open file output.txt"
<< " ----Bailing out." << endl;
return EXIT_FAILURE;
}
cin.ignore(numeric_limits
cout << "Enter what you would like to add to the file" << endl;
getline (cin, add);
cout << "\n\n";
ofs_1.write (buffer,length);
ofs_1 << "
rd_1.close();
ofs_1.close();
delete[] buffer;
return EXIT_SUCCESS;
}
There it is. Daniel and Crystal, how much of that do you understand? Anyone else understand any of it? It took like a week of work and reading and testing and frustration to figure out, but boy was I happy when I got it.
On the hobowars front I have been given the official leader position in the gang, I was the co-leader but now am the leader. If you look up the gang it shows me as the leader, it used to not do that. The reason that happened is because Awbrey is working on a website business that he wants to start and he doesn't have enough free time to play anymore. The website is what my program is for. So I am now the official leader, everything has to be approved be me now. Its pretty cool, but things really haven't changed. I am almost to 20,000 stats. I also almost have 2,000 intelligence, which is good, the max is 2,500 and anything over 1,000 you have to get by eating smart bread which only gives you +2 intel at a time, and they are not easy to get. So its a good accomplishment to be where I am.
Not much else has been going on, I had a great time while I was at home for my birthday. I was able to see everyone and spend time with them. It was enjoyable. I enjoyed being able to help Amanda with her computer, I like helping with that kind of stuff cause I understand it, so that was fun. I got to meet my newest nephew, Gavin, which was a lot of fun. I also kicked JMs butt at golf, haha. My birthday dinner was awesome, my favorite food of all time chicken roll ups. Mmm Mmm good. Even though there wasn't much of it and I was still hungry afterwards. Oh well.
Lastly, it would seem I have been tagged by Mariah, some sort of picture folder thing. So here it is:

This is obviously mom, but its from when I just got my laptop and I was showing her the effects it has on it.



