Untitled
unknown
plain_text
a year ago
1.4 kB
6
Indexable
#include <iostream>
using namespace std;
namespace Natyra{
enum ngjyra{
green, blue, red, white, black
};
enum stina{
spring, summer, autumn, winter
};
enum java{
monday, tuesday, wednesday, thursday, friday, saturday, sunday
};
void afisho_stinen(stina s)
{
switch(s){
case spring :
cout<<"Miresevjen pranvere !";
break;
case summer:
cout<<"Koha per plazh !";
break;
case autumn:
cout<<"Koha per shkolle !";
break;
case winter:
cout<<"Koha per ski dhe loje me debore !";
break;
}
}
}
namespace Qyteti{
enum ngjyra{
black,yellow,green,violet
};
enum lagjet{
lagjja1, lagjja2, lagjja3, lagjja4
};
void afisho_lagjet(lagjet l)
{
switch(l){
case lagjja1:
cout<<"Miresevini ne lagjen numer 1"<<endl;
break;
case lagjja2:
cout<<"Miresevini ne lagjen numer 2"<<endl;
break;
case lagjja3:
cout<<"Miresevini ne lagjen numer 3"<<endl;
break;
case lagjja4:
cout<<"Miresevini ne lagjen numer 4"<<endl;
break;
}
}
}
using namespace std;
int main(int argc, char** argv) {
Qyteti::lagjet l=Qyteti::lagjja3;
Qyteti::afisho_lagjet(l);
return 0;
}
Editor is loading...
Leave a Comment