Untitled

mail@pastecode.io avatar
unknown
plain_text
20 days ago
954 B
1
Indexable
Never
#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
	};
}
using namespace std;
 
int main(int argc, char** argv) {
    Natyra::stina s= Natyra::summer;
    Natyra::afisho_stinen(s);
	return 0;	
}
Leave a Comment