CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: captjack

Search: Search took 0.02 seconds.

  1. Replies
    1
    Views
    16,830

    C++ adding new string into existing file

    Hi,

    I have created a list class, that allows the user to create or edit a text file with a list of information inside the .txt file. When I read into the alphabet.txt (a .txt with a list of all...
  2. Replies
    2
    Views
    5,194

    Re: Ask user for output file name

    I put it in a while loop, because I have more parts to program that I haven't started yet. I will be asking the user to open and close other files. So that's why it seems sort of pointless at this...
  3. Replies
    2
    Views
    5,194

    Ask user for output file name

    I am trying to create a program, where I prompt the user to name the output file name. I need the output file to be a .txt file. I know how to create, open and close an output file. But when I try to...
  4. Re: C++ Class Military to Standard Time

    Thanks VictorN for replying.

    I was able to figure out the parameters and get rid of the 12 (due to the unnecessary sizeof(Time)). I made a very silly mistake and was calling the function before...
  5. [RESOLVED] C++ Class Military to Standard Time

    basically my program lets the user inputs military time( in hour, minute, and seconds). I need to convert this to standard time and have am/pm at the end. Here is what I have so far.

    I have a 3...
  6. Replies
    1
    Views
    6,282

    [RESOLVED] Capitalize a String in C++

    I have a problem. I need to print the string called "last" in uppercase format. can you check why my program prints nothing.

    here is the important section of the code.


    if...
  7. Replies
    4
    Views
    5,840

    Re: File I/O and String question

    this is what i have so far. The only problem is that it outputs only the last name for the first line and not the last names in the next 3 lines. shouldn't my while loop get the next line and repeat...
  8. Replies
    4
    Views
    5,840

    Re: File I/O and String question

    Ya I figured my implementation was wrong. I just started C++.
    I can't seem to get it right when implementing with substring.

    How would you recommend to do it?
  9. Replies
    4
    Views
    5,840

    [RESOLVED] File I/O and String question

    i have a text file called example.txt and it contains the following lines.

    21 squarepants,Spongebob
    115 barack,Obama
    7 Carter,Mc Farland
    227 Abraham Carter,Lincoln

    Basically, I have to...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured