Sorry if I am being confusing.
Let's say
void GetSex(){
int input=0,count=0,input2=0;
do{
if(count==1)
cout<<"Please enter a correct input...\n\n";
cout<<"Enter your...
Type: Posts; User: striderx240
Sorry if I am being confusing.
Let's say
void GetSex(){
int input=0,count=0,input2=0;
do{
if(count==1)
cout<<"Please enter a correct input...\n\n";
cout<<"Enter your...
lets say...
int something;
cin>>something;
user enters:"1,space,1"
How do I stop (input buffer?) at the space?
Not sure if you guys can understand that.
Thanks, got it working now!
If this is true, how would I remedy this?
Correct me if I'm wrong, shouldn't this code pause for user input at cin.getline()? Seems like it's skipping for me.
void GetName(){
char Name[50];
cout<<"Please Enter your name:...
So I ran this program and It does not seem to work, If I entered '2', it would print out 10 arrays and then when I enter '10' it prints out 48 arrays. Why is this happening?
Never mind, figured it out, thanks anyway.
Sorry, how would I go about doing that?
The question is verbatim from the homework. :/
I tried out the code you gave me, but it shot out
I've learned pointers, but not dynamic memory allocation and nothing with malloc.
I'm using bloodshed
So I need help with my homework, please help if you can;
I recently started a class that requires I know C, but the prerequisite classes that I took for that class taught C++, weird, but anyway...