Hey!
ok.. when I created this thread, I needed help, but now I solved the problem, and here is the solution.
my problem was, that I couldn't make my application pause. It just executed, and then closed. so here is my old code.
CODE
#include "stdafx.h"
#include "iostream"
#include "stdio.h"
using namespace std;
int main()
{
cout << "Hello World!" << endl;
char name;
cout << "Write your name, please: ";
cin >> name;
cout << "Hi " << name << "! Welcome, And Thank You For Trying My First Software :D"<< endl;
cout << "Press ENTER to continue..." << endl;
cin.get();
return 0;
}
#include "iostream"
#include "stdio.h"
using namespace std;
int main()
{
cout << "Hello World!" << endl;
char name;
cout << "Write your name, please: ";
cin >> name;
cout << "Hi " << name << "! Welcome, And Thank You For Trying My First Software :D"<< endl;
cout << "Press ENTER to continue..." << endl;
cin.get();
return 0;
}
And here is what I did.
after the
CODE
cin >> name;
I added this:
CODE
cin.ignore();
Now this will allow me to add the:
CODE
cin.get();
before the "return 0;", and this will pause the application till you press the ENTER button.
//Feelay

