Thread: Help with True, False, NOT, AND, OR...

  1. #16
    Registered User
    Join Date
    May 2006
    Posts
    18
    O ok I get it better now but I wish ya'll would STOP pestering me I am VERY smart at computers but I am only 16 and If ya'll really have 2 know I have a brain disorder, I am NOT lazy with this I am just a slow learner -n- stuff (and I like shorttype like -n- so thats why I did that) and its not kewl 2 joke OR say stuff about a person that u dont know cuz I am VERY smart I just lack in spellin AND I like shorthand type or whatever u call it...

  2. #17
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    >>btw I am a complete nobbie

    I think this validates ChaosEngine's point best.

    Also, as already stated, your question was really open ended -
    programming is all about defining a problem in good detail, then
    attempting to solve it. If you can't define your problem well for us,
    there is no-one who is going to guess what you mean and
    produce an answer - meet people half way and they'll be glad to
    help, and you won't get flamed by the newest member on the
    board

    If you still have difficulty understanding after ChaosEngine's post,
    for the love of God, Mother Earth, Buddha, Ganesh or whoever
    you believe in, DONT reply saying -"sry dn't understand - can you
    explain it again plz." Instead, try and isolate what you don't get
    and ask a direct question about it.

    >>I need 2 put 2 -n- 2 tougther for ex. how would I use a True,
    False, AND, OR, NOT with text.... like how would I combinde the 2
    things and it work

    Instead try something a bit more descriptive:

    >>I want my program to do X OR/AND/NOT/IF/UNLESS Y, and i
    just don't know how to get off the ground - any ideas?

    Naturally, substituting in details of X and Y, and the operation
    on the middle!
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  3. #18
    Registered User
    Join Date
    May 2006
    Posts
    18
    look I just started and I do NOT know really what C++ is capalbe of so its hard 2 put out examples... could u just give me websites that explane it thanks....

  4. #19
    The Richness... Richie T's Avatar
    Join Date
    Jan 2006
    Location
    Ireland
    Posts
    469
    Ok then, we'll break one down together. Suggest a simple
    program - and by that i don't mean msn messenger - i mean
    something a 4 year old could do (that is not intended as an
    insult, learning to program is a lot like learning how to do things
    all over again). Something real basic, like swap two numbers or
    convert from one currency to another. Just suggest one and we'll
    work off it
    No No's:
    fflush (stdin); gets (); void main ();


    Goodies:
    Example of fgets (); The FAQ, C/C++ Reference


    My Gear:
    OS - Windows XP
    IDE - MS Visual C++ 2008 Express Edition


    ASCII stupid question, get a stupid ANSI

  5. #20
    Arggggh DeepFyre's Avatar
    Join Date
    Sep 2004
    Posts
    227
    Are you even trying to understand what is going on in this thread cgsarebeast?

    Frst of all - if you cant understand chaos engine's post, then no website will help you.

    Second of all - we dont know what you dont understand ... you just keep saying that you dont.
    So im wondering whether the idea of using these operators is too high for you, or if it is something else that is slowing you down (i.e the if statements .. or anything else in the code). A question for you: have you compiled a working program yet (i.e. one that shows up a small black box, even though it might disappear)





    Code:
    int main()
    {
    int age = 20;  //INTEGER AGE is equal to the number 20
    
    if (age < 10) 
    //If the age is less than 10 (which it isn't because it is 20), execute the code inside of the BRACKETS, in other words display (std::cout << ) "you are young".
    { //BRACKET
        std::cout << "you are young"; // this means print "you are young" on the screen
    }//BRACKET
    
    else if (age >= 10 && age < 20) 
    //If the age is less than 10 (else) and if the age is greater than or equal to 10 (age>=10) 
    //AND (&&) at the same time less than 20 (age<20) then execute code inside of the BRACKETS. In other words, display (std::cout << ) "you are an adolescent".
    {//BRACKET
        std::cout << "you are an adolescent";
    }//BRACKET
    }
    If you STILL dont understand this, it is clearly too complicated of a subject and you should do something a little simpler (like a Hello World program)
    Last edited by DeepFyre; 05-09-2006 at 06:20 PM.
    Keyboard Not Found! Press any key to continue. . .

  6. #21
    Registered User
    Join Date
    May 2006
    Posts
    18
    Nevermind I'll get my friend to help but thanks a lot its just hard 2 explane over the net............ but thanks again!!!!

  7. #22
    Registered User
    Join Date
    May 2006
    Posts
    34
    He wants us to spoon feed him like I said earlier. Thier is a reason to help out new programmers but ive never seen someone that cannot understand the most basic of basic if you cant do c++ then go to vb(Means Visual Basics but to me it means Very Basic) probably alot more your thing *lol

  8. #23
    semi-colon generator ChaosEngine's Avatar
    Join Date
    Sep 2005
    Location
    Chch, NZ
    Posts
    597

    Angry

    Quote Originally Posted by cgsarebeast
    O ok I get it better now but I wish ya'll would STOP pestering me I am VERY smart at computers
    so far you've yet to demonstrate that.

    look man, I'm not pestering you for fun. When writing code, you have no room for spelling or grammaticals mistakes.
    Code:
    PrintFile(someFile);
    is not the same as
    Code:
    Prntfile(sme_file);
    This simply won't compile.

    Quote Originally Posted by cgsarebeast
    I like shorthand type or whatever u call it...
    good for you. Write all the shorthand type you want in your personal notes. However, you are now communicating with other intelligent human beings. As a general rule, we don't like txt-style writing; it's annoying and difficult to read.

    Quote Originally Posted by cgsarebeast
    I am only 16
    So what? Plenty of 16 year olds write correctly.

    Quote Originally Posted by cgsarebeast
    I have a brain disorder
    I'm sorry to hear that. But you seem to think that you can overcome this disorder enough to write code, so you should be able to communicate.
    "I saw a sign that said 'Drink Canada Dry', so I started"
    -- Brendan Behan

    Free Compiler: Visual C++ 2005 Express
    If you program in C++, you need Boost. You should also know how to use the Standard Library (STL). Want to make games? After reading this, I don't like WxWidgets anymore. Want to add some scripting to your App?

Popular pages Recent additions subscribe to a feed