When you use #define, aren't you required to use two parms?
For instance...
#define macro mylongfunctionname();
Type: Posts; User: UnderGod
When you use #define, aren't you required to use two parms?
For instance...
#define macro mylongfunctionname();
If you wanted to get advanced, you could use string.h functions, but a more novice way would be to input a string using getline() and pick out specific characters with a for loop and if statements.
Thats no problem though.
Now I just need to figure out on my own a "search" feature which I am thinking would work with using getline() and setting every line to a variable, and then use str...
It is still overwriting each time a new entry is added.
cout << "Is this information correct? (Y or N)";
ch = getch();
if(ch == 'y' ||...
I am trying to make a simple phone book. I've got everything all right right down to the actual output to the file.
cout << "Is this information correct? (Y or N)";
ch =...
What I would do is set each intiger to a variable, and then compare variables.
This way, you can easily control each number.
I think this can be done with a for loop and an array.
int...