Ok, so I am trying to write a program that will solve simple math and physics problems, and am trying to use strings and words more, so my question is:
is it possible to use a char in an if statement? I'm new to this so yeah. Here is what I tried and my compiler said "NO" so does anyone know a way to get it to work?
Here's the code I have (just the part with the if statement):
cout << "Please select a type of problem: ";
cout << "\n\nAlgebra";
cout << "\n Physics";
char type[10];
cin >> type;
if (type=algebra)
{
and so on and so on but you prolly get the idea
Thanks in advance everyone!