I am new at this c++ programming thing and i got stocked in this program right here hope someone can help me out id appreciate that
// Program Dinner prints out a dinner menu // 1
const SALAD = "Green Salad"; // 2
const MEAT = "Chicken Marsala"; // 3
const VEGGIE = "Carrots with lemon butter"; // 4
const STARCH = "Mashed potatoes"; // 5
int main // 6
{ string mainCourse // 7
cout << "First course: " << SALAD << endl; // 8
mainCourse = MEAT + "with" + VEGGIE + "and" // 9
+ STARCH; // 10
cout << "Main course: " << mainCourse << endl; // 11
cout << "Dessert: " << DESSERT; // 12
} // 13
whats wrong with it?? i tried to compile it but it shows 5 errors wich are:
C:\lab2.cpp(3) : error C2440: 'initializing' : cannot convert from 'char [12]' to 'const int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\lab2.cpp(4) : error C2440: 'initializing' : cannot convert from 'char [16]' to 'const int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\lab2.cpp(5) : error C2440: 'initializing' : cannot convert from 'char [26]' to 'const int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\lab2.cpp(6) : error C2440: 'initializing' : cannot convert from 'char [16]' to 'const int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
C:\lab2.cpp(10) : error C2239: unexpected token '{' following declaration of 'main'
Error executing cl.exe.
lab2.obj - 5 error(s), 0 warning(s)