Hi, I just tested how to block the computer by doing this:
But why doesn't it work?Code:#include <windows.h> int main(){ FreeConsole(); while(1){ BlockInput(true); } }
One more thing, why does the cmd box disappear when I've entered for example 3 and 7?
When its going to write out the summa then the window just disappear. (Poping down)Code:#include <iostream> using namespace std; int main() { int tal1; int tal2; int summa; cout << "Skriv in ett tal: "; cin >> tal1; cout << "Skriv in ett tal till: "; cin >> tal2; summa = tal1 + tal2; cout << "Det blir: " << summa; return 0; system("PAUSE"); }