Author Topic: Fucking Confusing++  (Read 2009 times)

Kintaro

  • Member
  • **
  • Posts: 6,545
  • Kudos: 255
  • I want to get the band back together!
    • JohnTate.org
Fucking Confusing++
« Reply #15 on: 2 December 2002, 11:52 »
Anyone have ideas or functions for my Dos XP Project?

Doogee

  • VIP
  • Member
  • ***
  • Posts: 774
  • Kudos: 109
    • http://m-db.info
Fucking Confusing++
« Reply #16 on: 2 December 2002, 12:32 »
no

Chooco

  • Member
  • **
  • Posts: 318
  • Kudos: 0
Fucking Confusing++
« Reply #17 on: 2 December 2002, 14:08 »
Code: [Select]
then it has this
Code: [Select]

you have it set so that while there is no exit level, it will set the error level to 1 then print "Bad Command or file name\n\n"
your program will forever be printing the error of "Bad Command or file name\n\n" because it's looped to do so....

or so i think.

[ December 02, 2002: Message edited by: Chooco ]

[ December 02, 2002: Message edited by: Chooco ]


Kintaro

  • Member
  • **
  • Posts: 6,545
  • Kudos: 255
  • I want to get the band back together!
    • JohnTate.org
Fucking Confusing++
« Reply #18 on: 2 December 2002, 14:38 »
Uhm get the very last source addition, it was fixed.

hm_murdock

  • VIP
  • Member
  • ***
  • Posts: 2,629
  • Kudos: 378
  • The Lord of Thyme
Fucking Confusing++
« Reply #19 on: 4 December 2002, 01:14 »
X11, make a graphics DOSSHELL.net that looks like the old dos shell but with xp graphics!
Go the fuck ~

Kintaro

  • Member
  • **
  • Posts: 6,545
  • Kudos: 255
  • I want to get the band back together!
    • JohnTate.org
Fucking Confusing++
« Reply #20 on: 4 December 2002, 11:59 »
quote:
Originally posted by Chooco:
Code: [Select]
then it has this
Code: [Select]

you have it set so that while there is no exit level, it will set the error level to 1 then print "Bad Command or file name\n\n"
your program will forever be printing the error of "Bad Command or file name\n\n" because it's looped to do so....

or so i think.

[ December 02, 2002: Message edited by: Chooco ]

[ December 02, 2002: Message edited by: Chooco ][/b]


Code: [Select]
Doesnt look that way dude.

rparsi

  • Newbie
  • *
  • Posts: 3
  • Kudos: 0
Fucking Confusing++
« Reply #21 on: 28 December 2002, 20:59 »
quote:
Originally posted by Ex Eleven / b0b 2.1:
I cant get this program to work, i commented on the source more then enough so you should understand it...

Main.cpp
Code: [Select]
[/b]


In general, it's NOT a good idea to use a conditional check variable to also store data.  Here's an example of what I mean (reduces stupidity bugs which I make frequently):

int done=0;
int age=0;
while(!done)
{ age=calculateSomething();
  done=(age>=26);//same thing as 'if(age>=26){ done=1;}'
}

beltorak0

  • Member
  • **
  • Posts: 223
  • Kudos: 0
    • http://www.angelfire.com/realm/beltorak
Fucking Confusing++
« Reply #22 on: 29 December 2002, 04:24 »
Code: [Select]
<hr></blockquote>

What if you need to validate data?
Code: [Select]
watch out for endless loops.

this might make my reasoning a little clearer:
Code: [Select]
I just pulled that out of my ass, so don't expect it to compile.

throwing in another variable to track can be a pain.

-t.

[ December 28, 2002: Message edited by: beltorak0 ]

from Attrition.Org
 
quote:
Like many times before, Microsoft is re-inventing the wheel and opting for something other than round.

-t.