PDA

نسخه کامل مشاهده نسخه کامل : يكي ميشه بگه مشكل اين كد در سي پلاس پلاس چيه؟



mahdi7s
25-05-2008, 15:59
#include <iostream>

int main()

{
using std::cout;
using std::cin;

int firstCity,secondCity;

cout <<"plz Enter two number great city for travel\nfirstCity = ";
cin >>firstCity;
cout <<"\nsecondNumber = ";
cin >>secondCity;
cout <<"\n";
if(firstCity,secondCity)
{
cout <<"Let's go first\n";
}
if(secondCity > firstCity)
{
cout <<"Let's go second!!\n";
}
if(firstCity == secondCity)
{
cout <<"All of them are good,but!!!\n";
cout <<"Enter other Number for second";
cin >>secondCity;
if(firstCity > secondCiy)
cout <<"\nLet's go to first!\n";

if(secondCity > firstCity)
cout <<"Let's go second.\n";

if(firstCity == secondCity)
cout <<"Wow! All of them are good\nplz go to all";
}
cout <<"\nBye\n";
return 0;
}

cpplover
25-05-2008, 16:18
این خط مشکل داره :



برای مشاهده محتوا ، لطفا وارد شوید یا ثبت نام کنید

باید بنویسی secondCity

mahdi7s
25-05-2008, 17:09
از كمكتون ممنونم