
09.05.2010, 14:34
|
|
Участник форума
Регистрация: 03.11.2009
Сообщений: 102
Провел на форуме: 1319431
Репутация:
22
|
|
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int choice;
cout << "Entrer Day (0-6): ";
cin >> choice;
if(choise<7 && choise>=0)
{
if (choice == 5 || choice ==6)
cout << "Weekend"<<endl;;
else
cout << "Week-days"<<endl;
}
else
cout<<"Day Enter not correctly"<<endl;
return 0;
}
//должно работать нормально
немного сайтов
http://www.cyberguru.ru/cpp-sources/
http://www.msmfc.net/
http://www.sql.ru/Forum/actualtopics.aspx?bid=21
Последний раз редактировалось Besi; 09.05.2010 в 14:53..
|
|
|