|
|
|
 |
|

March 29th, 2005, 12:21 AM
|
 |
Major
|
|
Join Date: Aug 2000
Posts: 1,246
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Quote:
NullAshton said:
I just had it to where if the program was sent a WM_MOUSEMOVE event, it posted the quit message.
The program uses SetTimer() in order to keep it at a steady pace. SetTimer() calls TimerProc() every 25 milliseconds to change the global color values.
This isn't that advanced, it just clears the screen in a slowly shifting color.
On another note, I never knew that all these people on these fourms programmed in C++...
|
C++ is an easy language to get started with, so I'm sure people here know a bit. Most people here probably don't do programming as a job, I'd bet.
I'm a Java programmer at the moment, but my favorite language is by far C#. I also do C/C++, COBOL, FORTRAN, Perl, SQL, JCL, and things like HTML, Javascript, databases, web programming, XML, etc..
Yay programming.
__________________
When a cat is dropped, it always lands on its feet, and when toast is dropped, it always lands with the buttered side facing down. I propose to strap buttered toast to the back of a cat. The two will hover, spinning inches above the ground. With a giant buttered cat array, a high-speed monorail could easily link New York with Chicago.
|

March 29th, 2005, 10:15 AM
|
 |
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
C++ is easy? It's a whole lot harder than Visual Basic.
|

March 29th, 2005, 04:25 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: OT: One-color Lava Lamp
Compared to languages like COBOL, FORTRAN, LISP, etc., C++ is quite easy to work with. A huge number of modern languages (Java, Python, C#, PHP, Delphi, etc.) are based off of C++, so you get the advantage of getting a head start on them as well...
|

March 29th, 2005, 04:35 PM
|
 |
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
C++ in concept is very simple. You set varibles, then do various operations on them with functions. In practice, however, it can get complex. The hardest part I believe is remembering the functions, as well as 'thinking' in C++. There are many functions to interact with the user, and those can be difficult to work with at times. Also, programming forces you to think in other directions than you're used to. It took a bit of work to get that program to cycle the colors. I had a varible that told the program what colors it needs to decrease or increase.
|

March 29th, 2005, 05:23 PM
|
 |
National Security Advisor
|
|
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
|
|
Re: OT: One-color Lava Lamp
I just started a C++ class. Had my first class Monday. Yay me. 
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
|

March 29th, 2005, 05:30 PM
|
 |
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
I learn C++ by myself. No class for me 
|

March 29th, 2005, 06:51 PM
|
 |
Lieutenant Colonel
|
|
Join Date: Mar 2001
Location: Emeryville, CA
Posts: 1,412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Quote:
geoschmo said:
I just started a C++ class. Had my first class Monday. Yay me.
|
I'm not sure if this is supposed to be a pun or not!
In general, there isn't really much of a difference between programming languages. Sure, some have some syntax that make it a little more difficult (think assembly, etc). Some come with built-in libraries to handle the more complicated stuff (think Visual BASIC, etc.). But in the end, just about every language is Turing-equivalent, which means anything you can do on a Turing Machine, you can do with the language. Just don't try to program a Turing Machine, that's a nightmare (think assembly is to Turing as VB is to assembly). In the end, the choice usually comes down to the factors of how much time you have, what platform the program is on, and the "expected lifespan" of the code.
__________________
GEEK CODE V.3.12: GCS/E d-- s: a-- C++ US+ P+ L++ E--- W+++ N+ !o? K- w-- !O M++ V? PS+ PE Y+ PGP t- 5++ X R !tv-- b+++ DI++ D+ G+ e+++ h !r*-- y?
SE4 CODE: A-- Se+++* GdY $?/++ Fr! C++* Css Sf Ai Au- M+ MpN S Ss- RV Pw- Fq-- Nd Rp+ G- Mm++ Bb@ Tcp- L+
|

March 29th, 2005, 08:20 PM
|
 |
Shrapnel Fanatic
|
|
Join Date: Mar 2003
Location: CHEESE!
Posts: 10,009
Thanks: 0
Thanked 7 Times in 1 Post
|
|
Re: OT: One-color Lava Lamp
What's a Turing Machine?
I've heard of the Turing Test, but never a Turing Machine.
__________________
If I only could remember half the things I'd forgot, that would be a lot of stuff, I think - I don't know; I forgot!
A* E* Se! Gd! $-- C-^- Ai** M-- S? Ss---- RA Pw? Fq Bb++@ Tcp? L++++
Some of my webcomics. I've got 400+ webcomics at Last count, some dead.
Sig updated to remove non-working links.
|

March 30th, 2005, 02:17 AM
|
 |
Sergeant
|
|
Join Date: Jan 2003
Location: Southern California
Posts: 210
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Quote:
geoschmo said:
I just started a C++ class. Had my first class Monday. Yay me.
|
So, when are you going to re-write the PBW server?
(not that it needs it, or anything: just that you might be tempted to re-do it in something you inherently understand and have fresh in your mind...)
|

March 30th, 2005, 09:39 AM
|
 |
Major General
|
|
Join Date: Nov 2004
Location: Floating in space.
Posts: 2,297
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: OT: One-color Lava Lamp
Pointers are simple, they simply point to something.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|