Add to Favorites     Get Paid to Participate     Twitter     Facebook     Google+
Hosting Discussion
 

Hosting Discussion > Web Hosting Forums > Website Development & Design > Trying to do Matrixy Text in C++
forgot password?


Reply


Old
  Post #1 (permalink)   03-15-2007, 04:11 AM
HD Newbie
 
Join Date: Mar 2007
Posts: 11

Status: samuel77 is offline
While we were doing loop demos in class (HS C++ Half-year course), me and my friend found that if you set the loop number (middle section) to more than a couple thousand, it'll keep running text over the screen up and down.


Well, I was just trying to do this at home and Idk if I did it right. It'll just print it once. The main thing I'm getting at is that I want a constant flow of numbers and letters just for kicks to look cool.


Here's the code I just made in Visual C++:
I think I got some of the Loop code wrong. Help me out if you can guys .

#include(Iostream Library in C++, Forum won't show)
#include(Iomanip.h Library in C++, Forums won't show)

int main (void)
{
int x;

{
for (x=1 ; x>=2000000; x+=1);

cout<<"1 2 3 4 5 "<<(endl; I CAN"T DO THIS ON FORUMS CAUSE IT JUST SKIPS LINE -->BASICALLY ENDL
}




return 0;


}
 
 
 


Old
  Post #2 (permalink)   03-15-2007, 12:53 PM
HD Master
 
Join Date: Mar 2007
Location: B.C, Canada
Posts: 363

Status: Harry is offline
Well I'm not at C++ yet. I should be finishing a class on it, within this year hopefully. I'm taking java at the moment and have made some matrix like effects with loops. So if your going to use java I can probably help you out.
 
 
 
Reply

Thread Tools

New Post New Post   Old Post Old Post
Posting Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Sponsored By: