Grib, thanks for putting that together. Here is what I had done. There are 2 problems. The first is that there is a character following the #. After the program outputs the 1 answer and...
Type: Posts; User: kylesbigdog
Grib, thanks for putting that together. Here is what I had done. There are 2 problems. The first is that there is a character following the #. After the program outputs the 1 answer and...
With your combined suggestions, I feel that I am one step closer to figuring this out. What I am trying to do is prompt the user for a irrelevant question and then the program will provide a one...
I don't think that I understand getline entirely. Is it correct that it stores the line of text as a C-String?. Would I then need to read the line into an array in order to search for a specific...
I intially get this program working using getline, however, I need to search for a certain character in a line of text and reaplce it with another. The program is supposed to prompt a user to input...
Jamsan,
Thanks for the help with this. It works as I would like it to.
Kyle
Thanks for your help with this. The best way that I can describe what this program is supposed to do is similar to the old "magic 8" balls, where you can ask a question that doesn't really matter...
Ideally, what I am trying to understand and get to work is that I will prompt the user to input a question, which the program will ignore, the program will then read a "answer" from the text file. ...
I am trying to gain a better understanding of reading a file and getline. I need to be able to read and output a file one line at a time. The file contains 5 short lines each ending with a period. ...
My last question would be how to read the characters from my .txt file into the char string. Would I need to use either a for or while loop and look for EOF?.
Thanks.
Kyle
I am writing a program that will read information from a file and then output the screen. The problem is when is reads the name in the sile. It is only outputing the 1st 2 characters of the last...
I am trying to get this program to open and read from a .txt file. I can see it accessing the drive, however, it does not appear to be reading it. What am I doing wrong?.
Thanks.
Kyle
...
I have to write a C++ program that will sort an array, check for duplicates, and delete the duplicates:
i.e: a[0]='a', a[1]='b', a[2]='a', a[3]='c'. After sorting, I would have:
a[0]='a',...