Nougati's Profile User Rating: -----

Reputation: 1 Apprentice
Group:
New Members
Active Posts:
3 (0 per day)
Joined:
25-January 13
Profile Views:
115
Last Active:
User is offline Jan 25 2013 05:28 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   Nougati has not set their status

Posts I've Made

  1. In Topic: Misunderstanding with how to use an integer w/ a very simple program

    Posted 25 Jan 2013

    View Postandrewsw, on 25 January 2013 - 08:09 AM, said:

    cout << "- " << qty1 << "x Noodle(s)" << endl;
    


    qty1 is in response to the question about chicken.. which, if they don't want chicken, generates the error message - it hasn't been assigned a value.

    qty2 is the value that relates to noodles.. and qty3..


    Can you tell I'm bad at this? Haha

    Thanks for your help, I think I get where I went wrong now haha. :D
  2. In Topic: Misunderstanding with how to use an integer w/ a very simple program

    Posted 25 Jan 2013

    View Postandrewsw, on 25 January 2013 - 07:09 AM, said:

        cout << "You want noodles? Y/N" << endl;
        cin >> yn1;
        if(yn1 == 'y' || yn1 == 'Y') {
            Customer1.wantsChicken();
    


    You are asking if they want noodles but calling the function to confirm that they want chicken..

    Your restaurant only serves chicken :)/>/>



    Okay so I think I've overcome the fact that I'm wildly embarrassed so I'm ready to reply. For the record, that can serve as a lesson to take more care with my pasting hahahah.

    Okay hate to be a pest, but one last thing: It lists everything nicely and perfectly as intended (yay!)!
    Except if chicken is not specified at all (if I select N for chicken) then the compiler goes

    Quote

    "Run-Time Check Failure #3 - The variable 'qty1' is being used without being initialized."

    I hate to be annoying but I seriously haven't a clue on how to remedy this last issue.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Click here to e-mail me

Friends

Nougati hasn't added any friends yet.

Comments

Nougati has no profile comments yet. Why not say hello?