C++ եմ սովորում ու գրքում մոտավորապես այսպիսի օրինակ կա
Կոդ:
#include<iostream.h>
#include<cstdlib>
int main()
{
enum Days {Kiraki,Erkushapti,Ereqshapti,Choreqshapti,
Hingshapti,Urpat,Shapat} ;
int choice ;
cout << "Mutqagrir or@ ( 0-6 ) :" << endl;
cin >> choice ;
if ( choice = Kiraki || choice == Shapat ) //չգիտեմ ինչի ա մի տեղ = , մի տեղ == :o
cout << "Qo mot hangstyan or e :" << endl;
else
cout << "Qo mot paxat anelu or e :" << endl <<
"Gna paxat ara !!!" << endl << endl ;
system("pause");
return 0;
}
Իսկ դուք ինչ եք մտածում ???
Էջանիշներ