Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. benb777

    Saving basic data to a file...

    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...
  2. benb777

    Saving basic data to a file...

    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...
  3. benb777

    I need help working with strings... help would be appreciated... thank

    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...
  4. benb777

    I need help working with strings... help would be appreciated... thank

    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...
  5. benb777

    I need help working with strings... help would be appreciated... thank

    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...
  6. benb777

    I need help working with strings... help would be appreciated... thank

    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...
  7. benb777

    Problems with cin.getline

    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...

Part and Inventory Search

Back
Top