for some reason i get these errors when i know everything is right..and yes i did do #include <string>
int pause;
int package;
int hours;
int amountdue;
const double package_1= 9.95, package_2= 14.95, package_3=19.95;
string name;
error: 'string' was not declared in this scope
error: expected ';' before 'name'
cout << "Please enter your name: \n";
cin >> name;
error:'name' was not declared in this scope
1 2 3 4 5
|
using std::string
or
std::string name;
|
Last edited on