Search:

Type: Posts; User: kylesbigdog

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    3,671

    Grib, thanks for putting that together. Here is...

    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...
  2. Replies
    9
    Views
    3,671

    With your combined suggestions, I feel that I am...

    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...
  3. Replies
    9
    Views
    3,671

    I don't think that I understand getline entirely....

    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...
  4. Replies
    9
    Views
    3,671

    file I/O cin.get

    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...
  5. Replies
    8
    Views
    1,772

    Jamsan, Thanks for the help with this. It...

    Jamsan,
    Thanks for the help with this. It works as I would like it to.

    Kyle
  6. Replies
    8
    Views
    1,772

    Thanks for your help with this. The best way...

    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...
  7. Replies
    8
    Views
    1,772

    Ideally, what I am trying to understand and get...

    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. ...
  8. Replies
    8
    Views
    1,772

    getline i/o

    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. ...
  9. Thread: File Input

    by kylesbigdog
    Replies
    5
    Views
    2,225

    My last question would be how to read the...

    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
  10. Thread: File Input

    by kylesbigdog
    Replies
    5
    Views
    2,225

    File Input

    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...
  11. Thread: I/O Stream

    by kylesbigdog
    Replies
    6
    Views
    1,304

    I/O Stream

    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

    ...
  12. Replies
    3
    Views
    2,026

    C++ arrays, sorting

    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',...
Results 1 to 12 of 12