Search:

Type: Posts; User: wco5002

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    22,301

    wow, thank you, i hate when it's something stupid...

    wow, thank you, i hate when it's something stupid like that.
  2. Replies
    5
    Views
    22,301

    My only problem is that I want the user to have...

    My only problem is that I want the user to have the ability to repeat the cases. Also, as you suggested, I've tried placing a while loop outside the switch but I've been getting a lot of errors, I...
  3. Replies
    5
    Views
    22,301

    Return to menu after switch executes

    Hey,

    I'm writing a program that contains several programs operated through a switch statement. The user is prompted with a menu and chooses which program to execute. My problem is, is there a...
  4. Replies
    13
    Views
    2,900

    Alright, thanks for the insight!

    Alright, thanks for the insight!
  5. Replies
    13
    Views
    2,900

    Worded that a little weird, I was wondering if...

    Worded that a little weird, I was wondering if that is what the problem was.
  6. Replies
    13
    Views
    2,900

    It is because my last cout

    It is because my last cout << endl; was stored in the buffer, which is what the first getline() was referencing?
  7. Replies
    13
    Views
    2,900

    Figured it out: Just used cin.clear(); and...

    Figured it out:

    Just used cin.clear(); and cin.sync();

    It seemed to do the trick.
  8. Replies
    13
    Views
    2,900

    I did use cin earlier in the program, but it was...

    I did use cin earlier in the program, but it was outside of the switch statement, so would it affect it?
  9. Replies
    13
    Views
    2,900

    The entire program is actually a list of a bunch...

    The entire program is actually a list of a bunch of programs that the user can choose to operate through a menu. I just used a switch statement to hold the different programs, and this one is number...
  10. Replies
    13
    Views
    2,900

    I'm not sure what you mean...but I don't use...

    I'm not sure what you mean...but I don't use scanf() at all in my prog.
  11. Replies
    13
    Views
    2,900

    Strange problem with GETLINE

    I'm having a strange issue when reading in user inputs using getline()......

    I'm asking the user for several things: name, address, city, state, etc.
    The problem is, when the prompt first...
  12. Replies
    15
    Views
    3,664

    Thanks for all the help I managed to get it...

    Thanks for all the help I managed to get it working correctly. However, instead of outputting all the numbers in a list. I want to display it in a 10x10 grid. Any help or suggestions? Here's the...
  13. Replies
    15
    Views
    3,664

    Alright, I noticed that I haven't initialized...

    Alright, I noticed that I haven't initialized counter, or number, but when I do the program doesn't function as I would like. Basically I believe that there is something wrong with the loop. I'll...
  14. Replies
    15
    Views
    3,664

    Why Errors in Prime Number Loop

    Hi, I'm writing a program that finds a prime number less than 600 and tests to see if the reverse is also prime (emirp). If so it should output the number. However, the program will not run. Can...
  15. Replies
    3
    Views
    783

    Thanks....stupid mistake

    Thanks....stupid mistake
  16. Replies
    3
    Views
    783

    Strang Error...

    Hey,

    I'm writing a simple program that finds the volume of a cylinder, but I keep getting a strange error message: 1>.\Volume.cpp(6) : error C2447: '{' : missing function header (old-style formal...
  17. Replies
    19
    Views
    2,634

    if basically each are only as precise as the...

    if basically each are only as precise as the other, why have three different types in the first place?
  18. Replies
    19
    Views
    2,634

    finally, hahaha, yea i guess that was the prob, i...

    finally, hahaha, yea i guess that was the prob, i wasn't allocating enough memory for the variables so it was spitting back weird numbers

    thanks for all the help guys
  19. Replies
    19
    Views
    2,634

    yea i'm using visual studios, so double gives...

    yea i'm using visual studios, so double gives better precision than float, because our prof always told us it was the other way around, float dedicates more memory than double and therefore allows...
  20. Replies
    19
    Views
    2,634

    oh and it was 1/252 that was just a typo

    oh and it was 1/252 that was just a typo
  21. Replies
    19
    Views
    2,634

    is there a type that will allow for larger...

    is there a type that will allow for larger numbers? for example 20!, which is in the billions?
  22. Replies
    19
    Views
    2,634

    the only this is, my prof wants us to do this by...

    the only this is, my prof wants us to do this by using functions that we write....

    i still can't get this to return the results that i want, does anyone see anything wrong that i've done, i've...
  23. Replies
    7
    Views
    2,282

    thanks for the pointers, got everything working...

    thanks for the pointers, got everything working good now
  24. Replies
    7
    Views
    2,282

    does it account for uppercase and lower case...

    does it account for uppercase and lower case letter?
  25. Replies
    7
    Views
    2,282

    sorry new to c++, but would i just replace...

    sorry new to c++, but would i just replace 'string' with whatever the input is, and the second 'string' with the variable for the output?
Results 1 to 25 of 48
Page 1 of 2 1 2