rahul8590 71 Posting Whiz

Well i have been following the google OS (where in work is still going on ) for a pretty long time and when i have been through their whitepapers where they mentioned about SPDY protocol (which is an extension of TCP/IP and not to mention pretty faster than the conventional standards ) and they happen to claim to boot the whole OS in 7 seconds... (which is really very fast...! )
Will such uncanny features of google OS give a severe blow to Micro$oft windows 7 and their future os....?

rahul8590 71 Posting Whiz

actually u can use a flag......(its just a variable but commonly know as flag when used in such purposes )

void display( )
{  
	int option, int flag =1;
	system("cls"); //clear screen
	cout<<endl<<endl;
	cout<<"\t  * Display Menu *\n";
	cout<<"\n\t1. Display For Certein Date"<<endl; 
	cout<<"\t2. Display All Appointments"<<endl;
	cout<<"\t3.  exit"<<endl;
	cout<<"\nEnter Option Number: ";  //Enter option
	cin>>option;
	cin.get();
    while(flag)
	{   
        switch ( option ) 
        {
            case 1: displayCerteinDate ( );
                    break;
            case 2: displayAll ( );
		             break;
            case 3: flag =0;
                     break;
            default: cout<<endl<<"Wrong option number!! Try again\n";
                    cin.get();         //give the user a chance to read the output data
	  }
	}

}

i have intialised a variable flag to 1 . and put the whole swicth inside a while loop which check for the status of the flag.
i have included an exit option in the menu . so as soon as the user presses 3. the flag =0 and the while condition fails , eventually u will come out of the loop and program ends

tux4life commented: That's not real programming +0