Thread: How to check if A==B or C or D or E...

  1. #16
    Registered User
    Join Date
    Apr 2008
    Posts
    610
    Quote Originally Posted by rags_to_riches View Post
    Ah, I see. Given code such as this:
    Code:
    struct database {
            char greets;
        }
    
        database beg;
        beg.greets = "hi" && "hey";
    I would have to say that this

    is not quite the case. Recognizing, of course, that it was not your initial intention to do so, jumping to vectors before you understand the basics of boolean expressions and loops is not appropriate.
    I also thought vectors maybe be a little to much for some1 missing the basics...

  2. #17
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Still, it is something to work forward to understanding.
    I dare say that without basic understanding of such things as vectors, a project such as this should not be attempted.
    There are other C++ ways too, of course.
    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.

  3. #18
    Registered User
    Join Date
    Jul 2008
    Location
    Vodice, Croatia
    Posts
    13
    Quote Originally Posted by rags_to_riches View Post
    Ah, I see. Given code such as this:
    Code:
    struct database {
            char greets;
        }
    
        database beg;
        beg.greets = "hi" && "hey";
    I would have to say that this

    is not quite the case. Recognizing, of course, that it was not your initial intention to do so, jumping to vectors before you understand the basics of boolean expressions and loops is not appropriate.
    Well sorry but I am still learning... and Elysia I thought it is possible by using only structrues, strings and some IF commands but it seems its not, so I guess I'll just have to move on to some more complex stuff and try again when I start to understand them...

  4. #19
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well, it certainly may well be possible, but it certainly won't be an easy thing. And you have some fundamentals wrong.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BN_CLICKED, change button style
    By bennyandthejets in forum Windows Programming
    Replies: 13
    Last Post: 07-05-2010, 11:42 PM
  2. How can i check a directory for certain files?
    By patrioticpar883 in forum C++ Programming
    Replies: 13
    Last Post: 02-01-2008, 05:27 PM
  3. how to check input is decimal or not?
    By kalamram in forum C Programming
    Replies: 3
    Last Post: 08-31-2007, 07:07 PM
  4. Please check this loop
    By Daesom in forum C++ Programming
    Replies: 13
    Last Post: 11-02-2006, 01:52 AM
  5. how to check for end of line in a text file
    By anooj123 in forum C++ Programming
    Replies: 6
    Last Post: 10-24-2002, 11:21 PM