Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 4th, 2004, 5:35 AM   #1
plartix
Newbie
 
Join Date: Oct 2004
Posts: 2
Rep Power: 0 plartix is on a distinguished road
hi

i need old fashioned console rotating of "|" and "-" at same position, wondering if can printf "char | and \b and char - " or use curses but without usefull result

can u help me plz ?
plartix is offline   Reply With Quote
Old Oct 4th, 2004, 10:35 AM   #2
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,473
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
should be able to use the gotoxy function
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Oct 5th, 2004, 4:35 PM   #3
ra21vi
Newbie
 
Join Date: Oct 2004
Posts: 2
Rep Power: 0 ra21vi is on a distinguished road
You can use gotoxy(x,y) and cprintf/printf/cout whatever with following characters: - \ | / -
Like:
enum _any('-','\','|','/','-');
i=0;
while(1)
{
gotoxy(5,10);
i=i++%5;;
printf("%c",_any[i]);
}

and if you want to show process development, you can also increment x with each loop call and the gotoxy(x,y);
ra21vi is offline   Reply With Quote
Old Oct 11th, 2004, 7:14 AM   #4
plartix
Newbie
 
Join Date: Oct 2004
Posts: 2
Rep Power: 0 plartix is on a distinguished road
THANKS A LOT !!!
plartix is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:56 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC