For example in JavaScript you can write:
var someVar = confirm("Some Text");
Is there an API function or something that I can use in C++? Thanks in advance.
Printable View
For example in JavaScript you can write:
var someVar = confirm("Some Text");
Is there an API function or something that I can use in C++? Thanks in advance.
By "box" do you mean a message box?
Code:MessageBox(NULL, "Hello", "HELLO", MB_YESNO);
Ok, thanks chimpface.
One more question, how would I tell how what the user press (yes or no)?
Code:int n = MessageBox(NULL, "Hello", "HELLO", MB_YESNO);
if( n == IDYES ) // Yes was pressed
if( n == IDNO ) // No was pressed
Ok, thanks a lot megatron.
No problem
how would you make a prompt box?
like in javascript:
Code:
var input = prompt("Enter a number");