CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: psfign

Search: Search took 0.35 seconds.

  1. Re: trouble with while statements...what am i missing?

    oh i didnt realize that for the avg, thanks! But yea i have to clean it up some before i submit it. i always seem to have garbage stuff after trying different things.
  2. Re: trouble with while statements...what am i missing?

    boom!




    #include <iostream>
    #include <iomanip>

    using namespace std;
    const int SENTINEL = -999;
  3. Re: trouble with while statements...what am i missing?

    i just posted it right as you were replying
  4. Re: trouble with while statements...what am i missing?

    well, i think i found the conflict, but i cant figure out how to get the while statement and the for statement to co-exist. if i remove the while statement, the program does count the evens. I am...
  5. Re: trouble with while statements...what am i missing?

    that makes sense. Can I also mix while statements with for statements? Im doing a number classifying project now that is requiring me to display:
    1. A count of the number of integers entered
    2. The...
  6. Re: trouble with while statements...what am i missing?

    Thanks Dave, I did have them set to char. But yea, i keep using = wrong, i switched them to == and it worked.
  7. Re: trouble with while statements...what am i missing?

    ok, i figured it out. I have to do cases...
  8. Re: trouble with while statements...what am i missing?

    so it seems like iif im trying to do if statements within a while statement, it only works if i have two ifs.

    for example on this code, i have 5 letter choices the user can input, but if i add...
  9. Re: trouble with while statements...what am i missing?

    UGH, i didnt realize i had a = instead of ==. but yes, == is equal to. tbh, im not sure when i would use = instead
  10. trouble with while statements...what am i missing?

    Im trying to create a program that has the user input a 5 digit number. If it's between 10000 & 99999, it will do one thing..(just saying 'yes' for now. Outside those numbers will prompt the user to...
Results 1 to 10 of 10





Click Here to Expand Forum to Full Width

Featured