I have read the errors im getting and have tried many things to sort it.
Code:
Compiling...
miniproject.cpp
miniproject.cpp(1) : warning C4067: unexpected tokens following preprocessor directive - expected a newline
miniproject.cpp(24) : error C2143: syntax error : missing ';' before '{'
miniproject.cpp(24) : error C3861: 'arabicToRoman': identifier not found, even with argument-dependent lookup
miniproject.cpp(25) : error C2065: 'output' : undeclared identifier
miniproject.cpp(26) : error C2065: 'input' : undeclared identifier
miniproject.cpp(26) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Code:
arabicToRoman() {
output = "";
while (input >= 1000) {
output = output + "M";
input - 1000;
}
first line here is line 24 in the program. arabicToRoman() is a procedure.. i dont know what it means by identifier not found. and "output" "input" are indentified. *sigh*