Я получаю те же две ошибки постоянно. < /p>
Error: 'I' was not declared in this scopechar RomanNumerals = 1=I, 2=II, 3=III, 4=IV, 5=V, 6=VI, 7=VII, 8=VIII, 9=IX, 10=X;
< /code>
Error: expected primary-expression before '{' token
< /code>
I'm trying to prevent the errors and see if the roman symbols match up correctly.
Here's my code:
#Include
#Include
#include
Using namespace std;
int main()
{
string number;
cout > number;
char romanNumerals - 1-I, 2-II, 3-III, 4-IV, 5-V, 6=VI, 7=VII, 8-VIII, 9-IX, 10-X;
if(number >= "1" && number
Подробнее здесь: https://stackoverflow.com/questions/797 ... numeral-in
Мобильная версия