#include <iostream>
using namespace std;
int main()
{
system ("TITLE www.mpgh.net");// this is for the title only if u want
system ("COLOR 2"); // this is for the color only if u want u can use color 1,2,3...
cout << "This is a simple program made for mpgh" << endl;// or whateer ur name is and what the console say
system("pause");
return 0;
}
#include <iostream>
using namespace std;
double x = 0;
class V
{
public:
void ask ()
{
cout<<"Enter a numbers"<<endl;
}
double times (double x)
{
cin>>x;
x*=x;
cout<<x;
return 0;
}
double print()
{
cout<<" is the answer after multiplying by it self"<<endl;
return 0;
}
};
int main()
{
V copy;
copy.ask();
copy.times(x);
copy.print();
return 0;
}
#include <iostream>
#include <windows.h>
#include <winable.h>
using namespace std;
int main(void)
{
string password;
cout << "Enter your password to acces the program" << endl;
getline (cin, password);
if(password == "thecode")
{
string answer;
system("CLS");
cout << "Welcome back Grisa";
Sleep (2000);
cout << "\nHow have you been?\n";
getline(cin, answer);
if(answer == "bad")
{
cout << "Sorry to hear that.";
}
else
{
cout << "Glad to hear that!";
}
}
else
{
BlockInput(true);
system("CLS");
cout << "Incorrect passwor, now closing!";
Sleep(3000);
return 0;
}
system("PAUSE>nul");
return 0;
}



