Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
A List
#11
StdIO???!!!! That's a LIB in my dictionary.. :*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#12
Well, C doesnt really do much without libs. Stdio.h is only a header, not a lib but it has definitions for the standard C library. IMHO its not cheating to use the standard C library because it only provides basic functionality such as printing, input and string functions. It is basically the equivalent of the Qb functions print, input, mid$, etc.

In C you have to use libs (or write your own functions) to get most of the math functions (log, sin, cos, etc) any form of graphics (unless you use pointers and hardware specific code), sound other than a beep, etc.

Basically its comparing apples and oranges, but I only posted the C program for a laugh.

Shogun, the main function is there. Its on line 8, and defined in traditional (yucky) K&R style.
Code:
main(x,a) char **a; {
Which is equivalent to:
Code:
int main(int x, char **a) {
There are plenty more C tricks used in the code, but that particular one shouldnt be too hard to unravel (reformat it first). Some of them are really difficult to figure out. Perhaps we could have an obfuscated-QB contest (although QB doesnt provide much oppurtunity for obfuscation ;-))
esus saves.... Passes to Moses, shoots, he scores!
Reply
#13
My sentiments exactly. That's why I made that comment. ;*)

"Its not the language, its the ppl who use the language"

;*)
y smiley is 24 bit.
[Image: anya2.jpg]

Genso's Junkyard:
http://rel.betterwebber.com/
Reply
#14
Quote:Shogun, the main function is there. Its on line 8, and defined in traditional (yucky) K&R style.
Code:
main(x,a) char **a; {
Which is equivalent to:
Code:
int main(int x, char **a) {
ah there it is I couldn´t find it at first.....

I hate that pice of code....
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)