Need some help with a program I am rying to work.

I am trying to have a user input a string of characters, then count and compare the number of upper and lower case characters, then gie the option to change the string to all upper or all lower case letters, then display the changed string on the screen.


Code:
#include <iostream>
#include <string>
using namespace std;

int main()
{
       string x = "";
	cout<<"Type your string: ";
	cin>>x;

     return 0;

}
I have been completely stuck on this for the past 2 days.

I was told by a friend that I needed to use ascii somehow? how?