I've heard often that one should never use gets. I've been told to use cin.getline instead.
Does anyone know if gets could seriously mess up one's compiler if used frequently?
I'm trying to write a program that frequently prompts for char arrays. I've been told to stay away from the gets function. Yet when I run the progam, it does something very strange. It skips the cout command that precedes it and then displays the text AFTER the prompt. And there are other...
Okay. I'm used to using Microsoft Visual C++ v6.0, but I have v4.0 at home. I'm used to adding strings the way you'd add numbers. I'm used to using string.assign() and string.find() for all of my purposes. But I can't use them any more. So I was wondering what tools for manipulating strings...
Okay. I have C++ 4.0 at home and I can't get strings to work. From what I've heard, this because at the time 4.0 came out, string wasn't "standard." At first I thought this had to do with the header files I was using. But does it have something to do with namespaces? Do I have to...
Okay. I have version 6.0 at school and 4.0 at home. I brought home a program, fixed the obvious translations (getting rid of "using namespace std;" and adding ".h" to everything) yet it STILL has 36 errors and 15 warnings. I think it's a problem with my string variables...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.