I have a bad feeling that the answer to this question is "no", but I wanted to throw this out there in case anyone has any clever ideas.
I have a set ...
[code=c] printf("\nHouse Name Please: "); scanf("%s", &address.houseName); gets(address.houseName); puts(address.houseName); I am not too sure why you are taking input in address.houseName twice, once with scanf and second time with gets. What exactly you are trying to do? Any second attempt to write in a variable for the 2nd time, weather it be with gets or scanf, the previous input will be ...
Well upon trying to help you, I ran into this problem first: It couldn't find the command 'strcmp' so i included the 'string.h' library. It then compiled fine.... Now the only problem I have with the program is that for some reason, it never writes the file "cont.txt" So I tried changing the directory to "C:\\cont.txt" hoping that it would write ...
Wow. I'm back to C++ after about half a year. I need to output a list of strings in the format of: string1, string2, string3, etc,... into a file so that the end result is this: string1 string2 string3 I already got the string using getline(cin, fileList); How do I output it to the file? I forgot a lot...
I'm getting stuck on something which I consider rather simple, yet am not sure how to solve it! In my int main, I'm using argv to allow command line arguments. These arguments are being used for doing some input/output file processing. I've successfully used the input method to read in a file i.e.: ifstream inFile (argv[1]); However, I'm now upto to ...