を発見していない「場合」私は初心者C++学習者だと私はいつものVisual Studio 2010識別子は
#include <iostream>
#include <string>
#include <fstream>
#include <conio.h>
using namespace std;
int main(void){
string name;
int money;
cout << "Hello, Enter your name here: ";
cin >> name;
cout << "\n\nHello " << name << ".\n\n";
cout << "\nEnter your salary here:L";
cin >> money;
If(money <= 50000 || money >= 100000);
{
cout << "\nGood!\n";
} else if(money >=49999){
cout << "\nJust begin to work?\n"
} else if(money <= 100000){
cout << "\nWow!, you're rich\n";
}else{
cout << "\nMillionaire\n";
}
system("PAUSE");
return 0;
}
をループ場合に問題を抱えていると、コンパイラは、識別子が見つからない「場合」と述べました。 ヘルプが必要です。 おかげ
Baramee
'If'が大文字になっていますか?それはすべて小文字でなければならない 'if' – Barry
また、条件文の後にセミコロンがあり、それがしたいことをしないと実際にあなたは他に類を見ないでしょう – CashCow
さらにあなたの比較は正しい方法です? – CashCow