Thread: Not Going Through If Statements

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Me
    Join Date
    Jul 2006
    Posts
    71
    Ok, thanks that worked, i'm just used to basic where the language is smart enough to figure out if it's comparing two strings or not.

  2. #2
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Yep, cause basic is so smart that no matter what syntax you use, it can figure out what you want to do. You pin pointed it, C++ is just some dumb language that requires you to use standard syntax and basic is so super advanced. Good call.

    Why don't you try using strcmp in basic and see what happens... or maybe just type "Compar des 2 strings plz!!" and maybe it will figure it out. If it's too difficult for you to memorize some simple standard syntax then perhaps you should avoid the programming field completely or just stick to the language you already know.
    Sent from my iPadŽ

  3. #3
    Me
    Join Date
    Jul 2006
    Posts
    71
    I was joking...and no this is not too difficult, memorize? I've just started programming C++, you have to know something to memorize it...

  4. #4
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by relyt_123
    I've just started programming C++, you have to know something to memorize it...
    Exactly. If you don't know the syntax, then why insist that it's the languages fault for not knowing your syntax? You don't look clever or funny when you blame something that isn't at fault, whether it was meant to be a joke or not... and in the end your joking habit will cause you to mix up the syntax you feel it should be with the syntax that really is.

    I'm not trying to get down on you, I'm just making sure you get that in programming, you play by the languages rules. The programmer is supposed to be the smart one, not the computer.
    Sent from my iPadŽ

  5. #5
    Me
    Join Date
    Jul 2006
    Posts
    71

    Agreed.

    Agreed, sorry for any misunderstanding, I got my program working by the way. But sorry about that.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Unknown memory leak with linked lists...
    By RaDeuX in forum C Programming
    Replies: 6
    Last Post: 12-07-2008, 04:09 AM
  2. newbie question - if statements without conditions
    By c_h in forum C++ Programming
    Replies: 2
    Last Post: 07-18-2008, 10:42 AM
  3. C++ If Statements Help
    By moporho in forum C++ Programming
    Replies: 19
    Last Post: 01-18-2008, 08:40 AM
  4. Efficiency of case statements
    By Yasir_Malik in forum C Programming
    Replies: 26
    Last Post: 05-23-2006, 11:36 AM
  5. Switch statements for strings
    By cxs00u in forum C++ Programming
    Replies: 5
    Last Post: 04-17-2002, 03:38 PM