Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 04-22-2003, 03:52 PM   #1 (permalink)
Zenogear11
Registered User
 
Zenogear11's Avatar
 
Join Date: Mar 2003
Location: Pittsburgh
Posts: 45
Zenogear11 is on a distinguished road
Send a message via ICQ to Zenogear11 Send a message via AIM to Zenogear11
Strange Code Illusion

I was just messing around with 2 liners and made this. Watch the screen for 20-30 seconds and the 2's and 0's seem to morph together in some strange illusion. It happened for me (VC++6) lemme know your rusults:
Code:
#include <iostream.h>
int main()
{
	long int count;
	for(count=2; count <= 10000000; count= count^2)
		cout << count << endl;
	return 0;
}
Zenogear11 is offline   Reply With Quote
Old 04-22-2003, 04:17 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,529
sde is on a distinguished road
i see pink elephants and purple cows ...

hehe, i actually did it, but it just looks like a bunch of numbers to me .. maybe it has to do with the speed of your processor.
__________________
Mike
sde is offline   Reply With Quote
Old 04-22-2003, 04:32 PM   #3 (permalink)
Zenogear11
Registered User
 
Zenogear11's Avatar
 
Join Date: Mar 2003
Location: Pittsburgh
Posts: 45
Zenogear11 is on a distinguished road
Send a message via ICQ to Zenogear11 Send a message via AIM to Zenogear11
Quote:
Originally posted by sde
i see pink elephants and purple cows ...

hehe, i actually did it, but it just looks like a bunch of numbers to me .. maybe it has to do with the speed of your processor.
Im running a 2.3GhZ Pentium 4, that I built.......Maybe its to FAST for your speeds:th:
Zenogear11 is offline   Reply With Quote
Old 04-22-2003, 04:48 PM   #4 (permalink)
EscapeCharacter
GNU/Punk
 
EscapeCharacter's Avatar
 
Join Date: Jul 2002
Location: stuffs
Posts: 66
EscapeCharacter is on a distinguished road
Send a message via AIM to EscapeCharacter
Re: Strange Code Illusion

Quote:
Originally posted by Zenogear11
I was just messing around with 2 liners and made this. Watch the screen for 20-30 seconds and the 2's and 0's seem to morph together in some strange illusion. It happened for me (VC++6) lemme know your rusults:
Code:
#include <iostream.h>
int main()
{
	long int count;
	for(count=2; count <= 10000000; count= count^2)
		cout << count << endl;
	return 0;
}
why did you use iostream.h?
__________________
cd /usr/ports/misc/life && make install
EscapeCharacter is offline   Reply With Quote
Old 04-22-2003, 05:18 PM   #5 (permalink)
Zenogear11
Registered User
 
Zenogear11's Avatar
 
Join Date: Mar 2003
Location: Pittsburgh
Posts: 45
Zenogear11 is on a distinguished road
Send a message via ICQ to Zenogear11 Send a message via AIM to Zenogear11
Re: Re: Strange Code Illusion

Quote:
Originally posted by EscapeCharacter
why did you use iostream.h?

Err....This is the topic of my other thread...I dunno, force of habit
Zenogear11 is offline   Reply With Quote
Old 04-22-2003, 05:19 PM   #6 (permalink)
agh
Registered User
 
Join Date: Apr 2003
Posts: 30
agh is on a distinguished road
Also looks like a bunch of numbers to me.
agh is offline   Reply With Quote
Old 05-02-2003, 03:05 PM   #7 (permalink)
alpha
Regular Contributor
 
Join Date: Feb 2003
Posts: 120
alpha is on a distinguished road
Send a message via AIM to alpha
what type of illusion?
alpha is offline   Reply With Quote
Old 05-13-2003, 07:25 PM   #8 (permalink)
Mr.Anderson
Registered User
 
Mr.Anderson's Avatar
 
Join Date: Mar 2003
Location: In a van, down by the river.
Posts: 24
Mr.Anderson is on a distinguished road
Send a message via AIM to Mr.Anderson Send a message via Yahoo to Mr.Anderson
Hmmm...

Quote:
Originally posted by alpha
what type of illusion?
I'm guessing an optical illusion, though it might just be me.

j/k

Anyhoo, I like that number stream effect.
It's nifty and spiffy... at the same time!

Much enjoyment this has been.
Mr.Anderson is offline   Reply With Quote
Old 05-15-2003, 06:52 AM   #9 (permalink)
alpha
Regular Contributor
 
Join Date: Feb 2003
Posts: 120
alpha is on a distinguished road
Send a message via AIM to alpha
I just saw a bunch of numbers, I was wondering if there was supposed to be a certain image to look for. ah well..
alpha is offline   Reply With Quote
Reply

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cisco Code breaking sde Code Newbie News 0 05-21-2004 08:10 AM
Microsoft probes Windows code leak redhead Code Newbie News 0 02-13-2004 01:41 AM
Code Section? rdove Feedback 5 02-18-2003 11:04 AM


All times are GMT -8. The time now is 01:19 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting