Comparing Strings

This is a discussion on Comparing Strings within the C++ Programming forums, part of the General Programming Boards category; The arguments to your main function seem very odd. Could that be the problem? Try replacing them with: Code: int ...

  1. #16
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    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
    I'm just trying to be a better person - My Name Is Earl

  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 12: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).

Page 2 of 2 FirstFirst 12
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, 09: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, 10:41 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21