Sunday, 23 December 2012

printf ("Error: you are a girl ! \n");


#include <stdio.h>
#include <string.h>
#define GIRL 0
#define BOY 1
int main()
{

     int girlorboy = 0;
     char nation[100], ans;
     printf("Welcome on planet earth ! Enter your nation in block letters:\t");
     scanf("%s\n", nation);
     printf("Please enter your gender in block letters:\t");
     scanf("%d\n", &girlorboy);
     switch (girlorboy)
     {
          case BOY:
          {
     while( strcmp( nation, "NULL") != 0) ) //any nation
      {
         printf("You are heartily welcome! Facilities which you will enjoy on planet earth are:\n\n");
       printf("1.   Good education\n");
       printf("2.   Relaxed societal norms\n");
       printf("3.   Will never be advised on the way you should dress\n");
       printf("4.   You will never be forced to learn cooking\n");
       printf("5.   Can have any code of conduct. Nobody will ever have any problem with that\n");
       printf("6.   Will never have to compromise your career with marriage\n");
       printf("7.   Won't have to leave your house after marriage\n");
       printf("8.   Won't be burnt alive or tortured for dowry\n");
       printf("9.   Will be free to go anywhere and do WHATEVER you want\n");
       printf("10. Will be absolutely free to tease a girl and if she protests, you can force yourself upon her\n");
       break;
       }/* while( strcmp( nation, "NULL") != 0) ) ends*/
           }/*case BOY ends*/
        case GIRL:
         {
            if( strcmp( nation, "INDIA") == 0) //in India
           {
     perror("Fatal error: you are a girl ! Wanna continue (y/n)?:\t");
     scanf("%c\n", &ans);
     if (ans == 'y')
    {
       printf("You will be considered nothing but an object of desire\n");
       printf("Additional attrocities which you will bear here are:\n\n");
       printf("1.   Female foeticide\n");
       printf("2.   May or may not get good education; depends on your luck!\n");
       printf("3.   Harshest possible societal norms will be imposed on you and you will HAVE TO  FOLLOW them\n");
       printf("4.   Will always be reminded that you are a guest in your own house and will have to leave it once you get married\n");
       printf("5.   You won't be allowed to step out alone\n");
       printf("6.   Will not have any right to choose your life partner on your own\n");
       printf("7.   Will always be taught to consider family more important than your career\n");
       printf("8.   'Teaching' will be the only career you'll be allowed to pursue after marriage\n");
       printf("9.   You yourself will be responsible for anything wrong that happens to you\n");
       printf("10.  Adding to it, you will have to bear dowry torture and domestic violence in marriage\n");
       printf("11.  Society will never support you and your life will be full of compromises\n");
       System_abort("All because you are a girl\n");
    }/* if (ans == 'y') ends */
           
          }/* if( strcmp( nation, "INDIA") == 0) ends*/
          else
          {
     printf("Cannot say\n");
     break;
           }

       }/* case GIRL ends*/

   }/* switch(girlorboy) ends*/

     return 0;

}/* main function ends*/

2 comments:

  1. BRAVOOO GAL !!!!!
    1.Firstly the way u wrote it
    2.Secondly the content!!
    its simply MARVELOUS!!!!
    :D:D..:)

    ReplyDelete