📜  intage1 未在此范围内声明 C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:46.220000             🧑  作者: Mango

代码示例1
#include 
using namespace std;
int main ()
{
    intage1,intage2;
    intage1 = 18;
    intage2 = 15;
    int TotalAge;
    int AverageAge;
    cout << "Please enter the sge of student 1:";
    cin >> age1;
    cout << "Please enter the age of student 2:";
    cin >> age2;
    Totalage = age1 + age2;
    AverageAge = Totalage / 2;
    cout << "The averageage of the class:";
    << AverageAge;
}