| View previous topic :: View next topic |
| Author |
Message |
J.A.R.S. In umbram deo, ex nihilo...

Joined: 11 May 2005 Posts: 451 Location: Under the rainbow...
|
Posted: Sun Feb 18, 2007 3:01 pm Post subject: |
|
|
Chaotix, when I came back, I too was concerned about the "going off topic" thing... but truth is, not only is it somewhat interesting (as in, it gets more people involved into a thread that wasn't going to live long) but its also one of the most active kind of threads lately around here.
And I still think midi has its place in OHR. Just like everywhere else. I'm personally building myself a studio in midi, of course, using other databases of sounds, but still, its midi. |
|
| Back to top |
|
 |
Newbie_Power

Joined: 04 Sep 2006 Posts: 1762
|
Posted: Sun Feb 18, 2007 3:10 pm Post subject: |
|
|
| Code: |
#DEFINE CHAOTIX 0
#DEFINE NAZI_MODERATOR 1
int check_for_truth()
{
if (CHAOTIX != NAZI_MODERATOR)
{
make_shut_up(CHAOTIX);
};
}
|
|
|
| Back to top |
|
 |
J.A.R.S. In umbram deo, ex nihilo...

Joined: 11 May 2005 Posts: 451 Location: Under the rainbow...
|
Posted: Sun Feb 18, 2007 3:24 pm Post subject: |
|
|
| Code: | For inttrigger = 1 to 999
If anger > 1
slap(Chaotix)
decrement(anger)
endif
next inttrigger |
|
|
| Back to top |
|
 |
Newbie_Power

Joined: 04 Sep 2006 Posts: 1762
|
Posted: Sun Feb 18, 2007 3:26 pm Post subject: |
|
|
o_O
Wouldn't it be better if you used a while loop?
| Code: |
Anger = 32767
do while Anger > 1
slap(Chaotix)
Anger = Anger - 1
loop |
Last edited by Newbie_Power on Sun Feb 18, 2007 3:36 pm; edited 1 time in total |
|
| Back to top |
|
 |
J.A.R.S. In umbram deo, ex nihilo...

Joined: 11 May 2005 Posts: 451 Location: Under the rainbow...
|
Posted: Sun Feb 18, 2007 3:34 pm Post subject: |
|
|
I wanted to make sure we don<T slap him over 900 times... otherwise, DO / Loop is the way to go instead of a while
EDIT: BTW nice anger value  |
|
| Back to top |
|
 |
Newbie_Power

Joined: 04 Sep 2006 Posts: 1762
|
Posted: Sun Feb 18, 2007 3:39 pm Post subject: |
|
|
| Quote: | | I wanted to make sure we don<T slap him over 900 times... | ...
...
...
What's the fun in that? >.<
Of course, if you only wanted to slap him ~900 times, just modify the anger value in my code to start out at 900 or 901.
And I changed the code. I can't remember how QBasic syntax works. I am used to C (even if I haven't programmed anything big with it). |
|
| Back to top |
|
 |
J.A.R.S. In umbram deo, ex nihilo...

Joined: 11 May 2005 Posts: 451 Location: Under the rainbow...
|
Posted: Sun Feb 18, 2007 3:44 pm Post subject: |
|
|
| C's operator structure is better indeed, but I have turned my back on pro-coding career a couple years ago so I dropped C and C++ for Basic-family languages :S Serves me better so far though. |
|
| Back to top |
|
 |
|