online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <cstdlib> using namespace std; void playOneGame(); void getUserResponseToGuess(int guess, char& result); void getMidpoint(); int main() { char response; cout << "Ready to play (y/n)? "; cin >> response; while (response == 'y') { playOneGame(); cout << "Great! Do you want to play again (y/n)? "; cin >> response; } system("pause"); return 0; } void playOneGame(int&guess, char result){ int low = 1; int high = 100; cout << "think of a number between 1 and 100. " << endl; getUserResponseToGuess( guess, result); int getMidpoint; } void getUserResponseToGuess(int guess, char& result){ guess = 50; cout << "my guess is " << guess << endl; cout << "Enter 'l' if your number is lower, 'h' if it is higher, 'c' if it is correct:" << endl; cin >> result; } void getMidpoint( int low, int high){ int getMidpoint; getMidpoint = (low + high) /2; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue