Thank you for your help on this? Heres my specific problem, I am creating a program that creates database of weapons for a RPG im working on. Right now im stuck on debugging the program, but thatsanother matter. The program i have so far asks for a few characoristics about these weapons, in the...
Hi,
I am a newbie programmer and i am wondering if anyone could give me, and explain how to use, the code for saving basic data to a file. I want to save basic text and numbers and be able to use these files by the program as a data base for data inputed by the program. If anyone has any idea...
I copied your code exactly as you had it, and after a lot of work taking out the white spaces, which were illigal tokens, i ran it and i had at least 15 errors. I am a newbie, and couldn't figure out these errors. They all had to do with your reorganizing of the arrays and string lengths.
Also...
Im pretty new at programming, and have only taken one class on programing... Even in the class i got these errors with cin.getline. If it was skipped over i would just dublicate the line and it would work. The instructor didn't know how to fix it either. The program im trying to do is pretty...
Thank you but i still have the same problem... I have been using something like:
cin.getline(name[x],99,'\n');
and i tried your suggestion:
cin.getline(name[x],99);
but still the same problem, either the return to actually enter the text is skipped over and i can never enter the text and...
I am creating a program that enters strings into an array using cin.getline. When i use this one of two things happens: Either the cin.getline is skipped and the string is not entered, or enter doesn't work, it gets struck in a blank loop.
Also i was wondering how to compare strings and...
I am having a similar problem to that of Speakerforthedead, when i use cin.getline this step is either skipped (string is randomly set or something) or hitting return won't help. i was using something like cin.getline(name[x],100,'\n'). When i read this forum i tried endl but that doesn't work...
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.