Author Topic: The death of BASIC  (Read 9705 times)

0 Members and 1 Guest are viewing this topic.

technically "int main ()" is incorrect plus your missing a "\n" after "c++"  :D

and some people will complain about using "using namespace std"

for the loops:

#include <iostream>

int main (int argc, char *[] args)
{
     while (true)
     {
          std::cout << "**** basic\n" ;
          std::cout << "use C++\n" ;
     }

     return 0 ;
}



Or how about

Start:
     print "**** C++"
     print "Use QuickBasic"
     goto Start
« Last Edit: September 18, 2006, 06:50:10 pm by Scooby_Doo »
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Mathwiz6

  • Pees numbers
  • 27
Print "WTF is wrong with Python?"
Print "Response appreciated"
if input = useless argument:
      Argue back
      If argument = blocked:
             Argue harder
else:
      print "example of nested loops in python :D"

WTF is wrong with Python?
Response appreciated

 
LOL

 I'll let the perl experts handle the umteen million different ways to do that LOL
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
your missing a "\n" after "c++"  :D


I dont need that if its not looping though :p
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline ZylonBane

  • The Infamous
  • 29
The Perl code for this would be trivial--

while() {
   print "**** C++\nUse Perl\n";
}

ZylonBane's opinions do not represent those of the management.

 

Offline Mathwiz6

  • Pees numbers
  • 27
Print "**** BASIC"
Print "Use Python"


Press enter to run this baby.

Short and sweet.

 

Offline ZylonBane

  • The Infamous
  • 29
Loop it!
ZylonBane's opinions do not represent those of the management.

 

Offline Herra Tohtori

  • The Academic
  • 211
  • Bad command or file name
And Java is even funnier...  :lol:

Code: [Select]
public class ScrewBasic {

 public static void main(String arguments) {

  System.out.println("***** BASIC.\nUse Java instead.\nAs you can see, it's easy and fun!");

 }
}


Now you have to save this as ScrewBasic.java, compile it in the directory with command "javac ScrewBasic.java", then run it with "java ScrewBasic"... Isn't that easy? Ands... comprehensive? ...Or? :shaking:


Another one, that utilizes object-oriented programming possibilities of Java!


Code: [Select]
public class ScrewBasic {

 public String toString() {

   String string = "***** BASIC.\nUse Java instead.\nAs you can see, it's easy and fun!";
   return string;
 }


 public static void main(String arguments) {

  System.out.println(this.toString());

 }
}


 :shaking: :shaking: :nervous:
There are three things that last forever: Abort, Retry, Fail - and the greatest of these is Fail.

 

Offline Mathwiz6

  • Pees numbers
  • 27
z = 0

While z < 1000:
      Print "**** BASIC"
      Print "Python ownz j00"
      z += 1

 

Offline Kamikaze

  • A Complacent Wind
  • 29
    • http://www.nodewar.com
Code: [Select]
let rec main () =
  print_endline "**** any language without tail-recursion optimization!";
  main ();;

main ()
Science alone of all the subjects contains within itself the lesson of the danger of belief in the infallibility of the greatest teachers in the preceding generation . . .Learn from science that you must doubt the experts. As a matter of fact, I can also define science another way: Science is the belief in the ignorance of experts. - Richard Feynman

 

Offline Flipside

  • əp!sd!l£
  • 212
#F000 DATA "USE ASSEMBLER"
#F00D LDX #00
#F010 LRX #F000
#F013 CALL #xxxx - Wherever the Firmware Screenwrite routine is
#F016 INC X
#F018 CPX #0C
#F01A JNE #F010
#F01D LDA #0D
#F01F CALL #xxxx
#F021 JMP #F00D

And I'm not even certain the LRX (Load Relative X) was a valid command now...

 
your missing a "\n" after "c++"  :D


I dont need that if its not looping though :p

ACtually you do otherwise you'll get something like this:
**** basic
use c++**** basic
use C++**** basic

How about :
"**** basic$"       db     basic
"use assembly$" db     asem

mov bx, basic
mov ax, 10
int 21h

mov bx, asem
mov ax, 10
int 21h


not that i remember assembly much anymore.
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 
or how about

program basic ;
begin
     while true do
          begin
               writeln ('**** basic') ;
               writeln ('use pascal') ;
          end ;
end.
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Ghostavo

  • 210
  • Let it be glue!
    • Skype
    • Steam
    • Twitter
your missing a "\n" after "c++"  :D


I dont need that if its not looping though :p

ACtually you do otherwise you'll get something like this:
**** basic
use c++**** basic
use C++**** basic
"Closing the Box" - a campaign in the making :nervous:

Shrike is a dirty dirty admin, he's the destroyer of souls... oh god, let it be glue...

  

Offline Flipside

  • əp!sd!l£
  • 212
Quote
How about :
"**** basic$"       db     basic
"use assembly$" db     asem

mov bx, basic
mov ax, 10
int 21h

mov bx, asem
mov ax, 10
int 21h


not that i remember assembly much anymore.


Heh, you can tell why the Intel Processors won out over 6502 ;) Mostech actually had the faster chip, but it was such anightmare to code for it that not nearly as many Assembly games got written for it, and in those days, if you wanted an action game to run at any decent speed, it HAD to be in assembly. Z80 was easier, but I remember almost none of that now.
« Last Edit: September 18, 2006, 08:24:29 pm by Flipside »

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
your missing a "\n" after "c++"  :D




I dont need that if its not looping though :p

ACtually you do otherwise you'll get something like this:
**** basic
use c++**** basic
use C++**** basic


:nod:
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Code: [Select]
( every-time
   ( true )
   ( send-message
      "#Command"
      "High"
      "use FRED"
   )
)

I win!

 

Offline Hippo

  • Darth water-horse
  • 211
  • Grazing.
    • All Hands to War
* Hippo spams shift-r so that those messages never go through
VBB Survivor -- 387 Posts -- July 3 2001 - April 12 2002
VWBB Survivor -- 100 Posts -- July 10 2002 - July 10 2004

AHTW

 

Offline Kamikaze

  • A Complacent Wind
  • 29
    • http://www.nodewar.com
Yay for one-liners!

Code: [Select]
puts "**** non-interpreted languages!\n" until false
Science alone of all the subjects contains within itself the lesson of the danger of belief in the infallibility of the greatest teachers in the preceding generation . . .Learn from science that you must doubt the experts. As a matter of fact, I can also define science another way: Science is the belief in the ignorance of experts. - Richard Feynman

 

Offline ZylonBane

  • The Infamous
  • 29
Heh, you can tell why the Intel Processors won out over 6502 ;) Mostech actually had the faster chip, but it was such anightmare to code for it that not nearly as many Assembly games got written for it
What the hell? The 6502 was the dominant CPU in the 8-bit era by a huge margin. It only lost popularity when 8-bit CPUs in general were superceded by 16/32-bit CPUs.
ZylonBane's opinions do not represent those of the management.