944,111 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 2408
  • C RSS
Oct 8th, 2004
0

pls... i need help!!!

Expand Post »
undefinedhow to make a program than can run the "*" 1.from left to right 2.right to left 3.up to down 4.down to up? 5.combination of all.... pls... help me... :-|
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
felcris_pf23 is offline Offline
4 posts
since Oct 2004
Oct 8th, 2004
0

Re: pls... i need help!!!

Quite easy.

The easiest one is from left to right and the principle is the same for the rest.Ok I am going to have some fun and provide you with the tools/code needed to produce the effects.You put them togather.




You will need to include conio.h for gotoxy(int x,int y) which will move the output location to x,y and they start from 1,1 not 0,0.getx() returns the current x loc and gety() .... guess.

The next is stdlib.h for delay(int time_in_milli_secs).

For the left to right animation you first output a char and call the delay.After that increase the x val by 1 (or your choice) and output.Loop these.


If you run into trouble post here,best of luck
Reputation Points: 108
Solved Threads: 7
Posting Whiz in Training
FireNet is offline Offline
256 posts
since May 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: help me with this program using 'C' programming language
Next Thread in C Forum Timeline: Loop Issues





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC