Sorry I did change it a little, but it works,
#include <iostream.h>
#include <string.h>
#include <conio.h>
Type: Posts; User: Tenacious_newb
Sorry I did change it a little, but it works,
#include <iostream.h>
#include <string.h>
#include <conio.h>
I’m sorry you interpreted my comments as putting you down, that wasn’t my intention. Putting the book that your learning from down maybe. I also sent you a link from the designer of the language and...
Being a beginner myself it would defiantly be to your benefit to get a book that complies with the ANSI/ISO standards. Not trying it preach but you should learn correctly if your book is teaching...
Thanks a lot, good to know, I am working my way through two diffrent books and one of them used gets() exclusivly, and the other doesnt even mention it!
thanks again
I was wondering what the diffrence between the two as far as reading info.
cout << "Enter a string: ";
gets(var);
or
cout << "Enter a string: ";
cin.getsline(var, 40);
gets seems...
#include <cstdlib> || <cstdlib.h>
system("PAUSE");