Thread: Comparing Strings

  1. #16
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,688
    The arguments to your main function seem very odd. Could that be the problem?

    Try replacing them with:
    Code:
    int argc, char *argv[]
    But it could be compiler persif
    Double Helix STL

  2. #17
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Permission is often denied if the executable is running.

    But didn't you say that the user would type "A" or "B" (one character) and not "A. Blue"?

    The arguments to your main function seem very odd.
    You can pick variable names as you like. argc and argv are just conventional. However, if you are not using command line arguments, may-be use int main() - wouldn't give a warning of unused arguments.
    Last edited by anon; 12-13-2007 at 01:56 PM.
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 04-29-2009, 10:13 AM
  2. Problem with comparing strings!
    By adrian2009 in forum C Programming
    Replies: 2
    Last Post: 02-28-2009, 10:44 PM
  3. comparing strings using argv
    By eth0 in forum C Programming
    Replies: 2
    Last Post: 09-20-2005, 09:20 AM
  4. comparing strings
    By infinitum in forum C++ Programming
    Replies: 1
    Last Post: 05-03-2003, 12:10 PM
  5. Comparing Strings
    By Perica in forum C++ Programming
    Replies: 6
    Last Post: 02-12-2003, 11:41 PM