Я пишу, чтобы сказать, что я сделал программу на C ++, которая конвертирует Цельсий в Фаренгейты (я знаю, это было сделано, и это был мой первый проект на C ++), и как только я закончил и отлаживал, это сказал [ERROR] 'SYSTEM' was not declared in this scope
как только я набрал
SYSTEM ("PAUSE")
return 0;
}
,} был там раньше в коде. Я искал, как это исправить, и перешел к первым 10 ссылкам в движке Google, и ни одна из них не сработала. Я мог бы использовать некоторую помощь, я должен получить новую IDE (компилятор)? Или я просто полный ретард в C ++?
Мой код был:
//
// Program to convert temperature from Celsius degree
// units into Fahrenheit degree units:
// Fahrenheit = Celsius * (212 - 32)/100 + 32
//
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int nNumberofArgs, char* pszArgs[])
{
// enter the temperature in Celsius
int celsius;
cout << “Enter the temperature in Celsius:”;
cin >> celsius;
// calculate conversion factor for Celsius
// to Fahrenheit
int factor;
factor = 212 - 32;
// use conversion factor to convert Celsius
// into Fahrenheit values
int fahrenheit;
fahrenheit = factor * celsius/100 + 32;
// output the results (followed by a NewLine)
cout << “Fahrenheit value is:”;
cout << fahrenheit << endl;
// wait until user is ready before terminating program
// to allow the user to see the program results
system(“PAUSE”);
return 0;
}
Пожалуйста, помогите! Спасибо, ThatAid3n