Thread: testing and correcting lowercase

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Oct 2009
    Posts
    18

    testing and correcting lowercase

    hey guys im trying to test for lowercase and prompting user to enter uppercase this is what i have done but does not work any help would be appreciated thanks
    Code:
    	for(i=0;i<n;i++)
    	{
    		cout <<"\nPlease enter guess " << i+1 << " ";
    		cin >> guess[0];
    		while(islower(guess[0])==1)  // i also tried while(islower(guess[0]))
    		{
    			cout <<"\nPlease enter a Capital " <<endl;
    			cin >> guess[0];
    		}
    		guess++;
    	}
    Last edited by Rasher; 02-25-2010 at 02:48 AM.

Popular pages Recent additions subscribe to a feed