i need help deciding the type of variable to use
hello and thanks in advance for helping (or even taking a look) I am making a program to calculate various physics problems and at the start of the program i would like the user to specify the are of physics that they're problem is in but how would i set up a variable that is words?
this is what i have so far:
Code:
#include <iostream>
using namespace std;
int main()
{
variable
cout << "Welcome to the All in One Physics Calculator written by me!\n";
cout << "to begin type area of physics that your problem is in.\n" << "\n";
cout << " big 4 \n";
cout << " projectile motion \n";
cout << " collisions \n";
cin >> variable;
return 0;
}