- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 1
- Posts with Downvotes
- 1
- Downvoting Members
- 1
5 Posted Topics
apply the condition..... [code=c] for(i=0;i<10;i++) for(j=i+1;j<10;j++) { if(x[i]<x[j]) k=x[i]; x[i]=x[j]; x[j]=k; } [/code]
unless your programming is done, here's a code that might possibly help you out in turboc3...... //program to print string in an alphabetical order [code=c] #include<iostream.h> #include<string.h> #include<conio.h> void main() { char a[20]; int i,j,k; clrscr(); cout<<"enter the string"; cout<<"\n\tThe string in alphabetical order is"; for(i=0;a[i]!='\0';i++) //sorting in alphabetical order …
hey guys, i need some real bad help for my c++ project......i'm making an analog clock in C++ graphics.........n my clock works just fine, except for the fact that i haven't as yet added an hour hand, :rolleyes: and yeah..my minute hand runs almost as fast as my second hand.:lol:.....plzzzzzzzzzzzz …
are you ready to implement a few codes?if yes, then i guess you could do as follows-- say your sum i.e. 51 is stored in the variable x, i.e. x=51, initiate another variable say for instance A, and then follow these steps-- int A, B; while(A>0) { A=x/10; B=x%10 } …
hey, how bout if u try to make it outtextxy(13,13,"a") instead......this function, as far as i know doesn't work without quotes.......
The End.