little_greg Posted March 24, 2009 Report Share Posted March 24, 2009 помогите, плиз, найти и исправить ошибку! #define ENTER printf("Please, input temperature value: "); #define CONVERT(temp) (0.5 / 0.9) * (temp - 32); int main() { float climate; ENTER; scanf("%f", &climate); printf("It's equal %f Celsius degrees.\n", CONVERT(climate)); system("PAUSE"); return EXIT_SUCCESS; } ошибка: In function `int main()': expected `)' before ';' token expected primary-expression before ')' token expected `;' before ')' token Link to comment Share on other sites More sharing options...
Тролль Posted March 24, 2009 Report Share Posted March 24, 2009 little_greg: Не следовало ставить ; в конце строк #define ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now