No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
3 Posted Topics
//Coded by: Lester Lucky M. Alvaran #include <iostream> using namespace std; void main() { char str[10], temp; cout<<"Enter string: "; gets(str); for(int i=0; i<=10; i++) { for(int j=i+1; j<=10; j++) { if(str[i]<str[j]) { temp=str[j]; str[j]=str[i]; str[i]=temp; } } cout<<i+1<<": "<<str<<endl; } system("pause"); } test this
Here is what i got. I need to count the Uppercase entered in a string. Can someone help me? Enter string: The Brown Fox #of Upper Case: 3 My Progress: #include<iostream> #include<string> usingnamespace std; int main() { char string[15]; cout<<"Enter string: "; cin.getline(string,15); . . . . } I need …
I am new in programming. I have this problem in coding. i somehow have the idea but i could not simply do it in codes. can anyone add to complete my program. The problem is I enter 10 numbers and i need to sort them ascendingly. #include<iostream> using namespace std; …
The End.
jman2011