cout<<"Please enter your first number:";
cin>>integerVariable1;
cout<<"Please enter the desired operation:";
cin>>operation;
int result = Calculate( &integerVariable1, operation );
k I...
Type: Posts; User: Blazefury5
cout<<"Please enter your first number:";
cin>>integerVariable1;
cout<<"Please enter the desired operation:";
cin>>operation;
int result = Calculate( &integerVariable1, operation );
k I...
Need help making a Calculator program.
I need help on the function I have set, idk if I'm doing it correct or not. and how to have a function call for it. I tried using Calculate();
is what is...
And that's all I needed basically, although I said flowchart I was just using that as an example for someone to give me "SOME" type of feedback.
Ok so I need to make a Hangman game without using string data type
and it needs to display the hangman as the game goes.
such as if the guess is wrong show the gallows if wrong =2 show head on...
what's your email?
Figured it out works perfectly
needed (result "==" 2) etc.
and needed a closing declaration to close int main()
before the void functions
and got the loop to work as you mentioned above, was...
Well you might consider making what you have so far in main into
void flipOneCoin ( void ) {
}
Then make your main into something else, which calls flipOneCoin() in a loop.
Can you also...
if (result=1)
{
cout<<"\nThe Result is Heads";
if(AskForInput == 'h')
cout << "\nYou guessed correctly!";
}
This was posted earlier I tried it and it will go...
and then need to make it ask if I want to flip again(which is not included yet).
what value do I return it to? or how would I loop it to make it repeat
if (result=1)
I tried doing such but it would just always say correct without saying incorrect.
It's like it counted 2 as result = 1 or something
so I do have make case 'h' and a case 't'?
need to use the random number generator I am using in the code.
need it to display the results I have listed under void for the result of the coin toss.
and then need to make it ask if I want to...