Search:

Type: Posts; User: luckyboy23

Search: Search took 0.01 seconds.

  1. Thread: confused

    by luckyboy23
    Replies
    10
    Views
    1,886

    but, how do I code it so it will work for every...

    but, how do I code it so it will work for every word in the file that I need it to. because i am clueless
  2. Thread: confused

    by luckyboy23
    Replies
    10
    Views
    1,886

    . . if (iLeng>7) { for(int i=0; i

    .
    .
    if (iLeng>7)
    {
    for(int i=0; i<=2; i++)
    {
    ifIn>>temp[i];
    }
    strcat(temp,"er");
  3. Thread: confused

    by luckyboy23
    Replies
    10
    Views
    1,886

    ifIn.getline(szTemp,20,' ');...

    ifIn.getline(szTemp,20,' ');
    iLeng=strlen(szTemp);
    if(iLeng==7)
    {
    //do something
    }
  4. Thread: confused

    by luckyboy23
    Replies
    10
    Views
    1,886

    confused

    I have to read in from input file and if a word in that file is longer than 7 letters insert "er" after the 3 letter of that word. I started by reading the file into a cstring. I know how to find...
  5. Replies
    7
    Views
    1,706

    I not sure but this may work. ...

    I not sure but this may work.

    strcpy(char,"substring");

    if i understand the question correctly
  6. Thread: question

    by luckyboy23
    Replies
    4
    Views
    993

    i figured out the getline thanks for the help. ...

    i figured out the getline thanks for the help.

    but now i have to read in a word and insert the word "uh" after the 4th letter in that word.

    for example:

    read in "programmer" and change it to...
  7. Thread: question

    by luckyboy23
    Replies
    4
    Views
    993

    new question

    I am trying to read in from an input file and everytime the word "is" appears in the file, replace it with "are".

    will this work?




    string word;
    for (int i=0, i<kiSize, i++)
    {
  8. Thread: file i/o

    by luckyboy23
    Replies
    3
    Views
    1,247

    I haven't started the program yet I am trying to...

    I haven't started the program yet I am trying to decide what all i need to do before I begin.
  9. Thread: file i/o

    by luckyboy23
    Replies
    3
    Views
    1,247

    file i/o

    When i read in from an input file how do i know if a word in that file ends with an s.

    And what if I have to change the word shoe to sock everytime the word shoe is in the file. How would i do...
  10. Thread: istream??

    by luckyboy23
    Replies
    3
    Views
    942

    thanks

    thanks I'm good now
  11. Thread: istream??

    by luckyboy23
    Replies
    3
    Views
    942

    istream??

    when i pass istream to a class function how do i use the istream that is sent?

    This is what i am trying but i don't know how to use the in




    void class::readinBalance (istream & in)
    {
    ...
  12. Thread: Question?

    by luckyboy23
    Replies
    3
    Views
    873

    Question?

    I have to write a input function for a class. The function is suppose to readin the initial balance of a bank account and the interest rate, but i have to have a perameter of type istream. My...
  13. Replies
    5
    Views
    1,359

    input into a string array

    input into a string array
  14. Replies
    5
    Views
    1,359

    what is wrong with this: (when i run my program...

    what is wrong with this: (when i run my program it gets to the while loop and stops, it stays in the program but doesn't do anything)

    [code]

    while (!ifIn.eof()); // I think the problem is...
  15. Replies
    5
    Views
    1,359

    getline problem

    when i have getline(ifIn, strFile); in my program does it require imput from the user.

    if in is my ifstream
    strFile is my string i am reading the file into
  16. Thread: help please

    by luckyboy23
    Replies
    5
    Views
    1,477

    nevermind its too much trouble, thanks for the...

    nevermind its too much trouble, thanks for the effort, i'll figure it out
  17. Thread: help please

    by luckyboy23
    Replies
    5
    Views
    1,477

    don't know how to post my code

    don't know how to post my code
  18. Thread: help please

    by luckyboy23
    Replies
    5
    Views
    1,477

    help please

    I have an input file called jfk.dat and heres what i have to do:
  19. Thread: I/o????????

    by luckyboy23
    Replies
    6
    Views
    1,187

    I am having trouble reading it into a string. ...

    I am having trouble reading it into a string.

    that aint all but that will do for now
  20. Thread: I/o????????

    by luckyboy23
    Replies
    6
    Views
    1,187

    I/o????????

    I have to write a program that reads in data from a text file and
    tells how many of each punctuation mark is in the file and then tells the average length of each word in the file. so my question...
Results 1 to 20 of 20