User Profile

Collapse

Profile Sidebar

Collapse
MrHenry
MrHenry
Last Activity: Mar 17 '09, 08:53 AM
Joined: Mar 16 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • MrHenry
    started a topic Crash on string compare
    in C

    Crash on string compare

    Hello, i'm having a problem where my program is crashing everytime it reachs a certain point. I get the error "test001.ex e has encountered a problem and needs to close. we are sorry for the inconvenience".

    Now, i've put cout << "display"; on every line to see where the crash occurs, and it happens with this statement
    "if (strcmp(line.c_ str(), "Importance : High")==0 )",
    ...
    See more | Go to post

  • MrHenry
    replied to c++ local function definitions are illegal
    in C
    Hello, thank you for the reply. I went with tmain() because that is what visual studio automatically gave me. Yes donbock , code wasn't meant to be jumbled like that.

    i've worked on my code abit and i've managed to fix the mentioned problem, but i've run into a new problem where my program crashes on "if (line == "Importance : High"){", which I should probably start a new thread for since it's a strange problem.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...