Thread: My Text-Based RPG...

  1. #16
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    No, it's akin to
    if ((1 + 2 == 3) == true) (your case)
    and
    if (1 + 2 == 3)
    The extra "== true" is just unnecessarily explicit.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #17
    Registered User
    Join Date
    Dec 2009
    Posts
    25
    Quote Originally Posted by Elysia View Post
    No, it's akin to
    if ((1 + 2 == 3) == true) (your case)
    and
    if (1 + 2 == 3)
    The extra "== true" is just unnecessarily explicit.
    yes thats what im saying...it is not wrong but unnecessary..i was just being sarcastic with the 1+2=3 example..however that a minor thing i should pay attention in c++ :P

  3. #18
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    2,738
    Sorry for making a liiiiiitle mess earlier, but i rarely find greeks here. ( I think they're hiding! )

    EDIT: Although even i couldn't read that message o_O. I hate Greeklish!!!
    Devoted my life to programming...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A bunch of Linker Errors...
    By Junior89 in forum Windows Programming
    Replies: 4
    Last Post: 01-06-2006, 02:59 PM
  2. text rpg help
    By xxwerdxx in forum Game Programming
    Replies: 1
    Last Post: 11-26-2005, 08:16 PM
  3. Check out My Text Rpg Game
    By knight543 in forum C++ Programming
    Replies: 3
    Last Post: 05-17-2002, 10:40 PM
  4. Text based GUI?
    By jon_nc17 in forum C++ Programming
    Replies: 1
    Last Post: 05-16-2002, 11:45 AM
  5. Text Based Game
    By drdroid in forum C++ Programming
    Replies: 2
    Last Post: 02-18-2002, 06:21 PM