Thread: help with strcmp

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Registered User
    Join Date
    Feb 2006
    Posts
    12
    hi......

    yup.. the format of the file.txt is.. there is a space in between the date and the prices
    the function that takes the stuff from the file seems to work fine.. all the dats and prices are printed out fine.
    the program only stops working once it reaches the strcmp function... and a window pops up and says that the .exe file has encountered a problem and needs to close.

    so its ok to use char from[50] as the parameters to the strcmp function? thanks again for all ur help

    file. txt format

    mm/dd/yyy 1923
    mm/dd/yyy 2000
    etc.
    etc.
    Last edited by blork_98; 02-21-2006 at 04:31 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Fucntion returns -1, Why?
    By Taper in forum C Programming
    Replies: 16
    Last Post: 12-08-2008, 06:30 PM
  2. help with switch statement
    By agentsmith in forum C Programming
    Replies: 11
    Last Post: 08-26-2008, 04:02 PM
  3. problem with strings
    By agentsmith in forum C Programming
    Replies: 5
    Last Post: 04-08-2008, 12:07 PM
  4. strcmp
    By kryonik in forum C Programming
    Replies: 9
    Last Post: 10-11-2005, 11:04 AM
  5. strcmp, any borders?
    By demonus in forum C Programming
    Replies: 3
    Last Post: 11-15-2002, 02:48 AM