plz write prog. for take a string i/p and print it in small to capital, or capital to small..............

Recommended Answers

All 5 Replies

OK, done. Took 5 minutes, 37 seconds (I type slow). Now what?

Member Avatar for JSPMA1988

Done in 2.6 minutes. So, you're too lazy to open a book and read about character arrays and strings? That's what I'm understanding.

c'mon! took 10 mins. I'm at the same level as you!!!
AND i opened a book!!!!

Do you mean sorting string???

see this program for sorting characters

# include<iostream>
using namespace std;
void main()
{
	char ABC[]={'a','c','r','t','q','b','u','d'};
	for (int i=0;i<8;i++)
	{
		for(int j=i+1;j<8;j++)
		{
			if(ABC[i]<ABC[j])
			{
				char temp=ABC[i];
				ABC[i]=ABC[j];
				ABC[j]=temp;
			}
		}
	}
	for(int i=0;i<8;i++)
	{
		cout<<ABC[i]<<endl;
	}
}
commented: Don't do homework for people, especially those that want a free handout. -4
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.