What I want is when I type "calc;" (without quotes), The calculator opens. Else, if I didn't type it correctly (example: "calc" (without quotes)) it will generate an error.
#include <iostream>
#include <string>
using namespace std;
int main ()
{
string calc;
char end;
end = ';';
cin >> calc >> end;
if(calc == "calc")
{
system("calc");
}
else
{
cout << "Error..." << endl;
}
return 0;
}