Well, if you want the program to take again input from the user, then you should write so that it does it:
#include <iostream>
using namespace std;
int main()
{ int a;
int b;
int sum;
while(true)
{
string ans = "";
cout << "Input a directive. Upon it finishing it will terminate. Codes are: \n Calc \n Exit \n";
cin >> ans;
if(ans == "Calc")
{
cout << "Welcome to Calculator! Put in a number. Press Enter to put in number. \n";
cin >> a;
cout << "Next number \n";
cin >> b;
sum = a + b;
cout << sum << " Is the amount! \n";
}
else if(ans == "Exit")
{
cout << "Bye!\n";
return 0;
}
cout << "Okay\n";
}
}