wow, thank you, i hate when it's something stupid like that.
Type: Posts; User: wco5002
wow, thank you, i hate when it's something stupid like that.
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...
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...
Alright, thanks for the insight!
Worded that a little weird, I was wondering if that is what the problem was.
It is because my last cout << endl; was stored in the buffer, which is what the first getline() was referencing?
Figured it out:
Just used cin.clear(); and cin.sync();
It seemed to do the trick.
I did use cin earlier in the program, but it was outside of the switch statement, so would it affect it?
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...
I'm not sure what you mean...but I don't use scanf() at all in my prog.
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...
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...
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...
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...
Thanks....stupid mistake
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...
if basically each are only as precise as the other, why have three different types in the first place?
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
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...
oh and it was 1/252 that was just a typo
is there a type that will allow for larger numbers? for example 20!, which is in the billions?
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...
thanks for the pointers, got everything working good now
does it account for uppercase and lower case letter?
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?