Can any program be written in any language? Nevermind about bulk or waste.
Theoretically yes, because if the language was missing a certain function, used by the program, you could code an inline routine to perform that function.
Of course, thats in theory.
Originally posted by astcell
Can you technically write Windows in basic?
Isn't it allready written in interpreted basic ?
Dutch
All your answers are belong to Google. Search dammit!!!
Hey, kids! Wanna slow down yer VAX? Sure you do! Crunch some big prime numbers in VAX-11 BASIC!
10 rem big prime number cruncher
20 DECLARE GFLOAT a,b,c,d,e,f
21 declare GFLOAT x
25 input "odd num, please.";f
26 input "Enter search width :";h
29 d=f+h
30 for a=f to d step 2.0
40 c=REAL(sqr(a)+1,GFLOAT)
50 for b=3.0 to c step 2.0
60 x=real(a/b,GFLOAT)
70 if REAL(fix(x)=x,GFLOAT) then goto 90
80 next b
85 print using "##################";a;
86 print " is a prime number."
88 next a
90 print using "##################";a;
91 print " is not a prime, factor :";
92 print using "##################";b
95 goto 88
100 end
Too boring? Draw a Mandelbrot set on your GiGi terminal w/ ReGIS graphics. That thar's a useful program! (original progs by kevino, lest anyone call me a code-thievin' math geek)
10 declare gfloat a,b,c,za,zb,zza,zzb
20 declare integer color,px,py,d,e
25 clrflag=1
30 rem clear screen
31 print chr$(27);"Pp s(E)"
33 print "S(I0) W(V) W(I1) "
36 il=3
gosub 40
print "W(E) "
il=4
gosub 40
print "W(V) "
print "W(I2) "
il=5
gosub 40
print "W(E) "
il=7
gosub 40
print "W(V) "
il=17
gosub 40
print "W(E) "
il=80
gosub 40
37 goto 370
40 for py=0 to 478 step 2
50 for px=0 to 766
60 a=3.6*px/766-2.3
70 b=2.8*py/478-1.4
80 za=0
90 zb=0
100 for d=1 to il
110 zza=za*za-zb*zb+a
120 zzb=2*za*zb+b
130 if zza*zza+zzb*zzb > 4
then goto 300
end if
160 za=zza
170 zb=zzb
180 next d
300 if d<il
then color =1
else color =0
end if
340 rem set point px,py color=color
341 if color=0 and clrflag=1
then print "P[";px;",";py;"] "
clrflag=0
end if
342 if color=1 and clrflag=0
then print "V[";px-1;",";py;"] "
clrflag=1
end if
350 next px
360 next py
365 return
370 rem end of program loop here to save picture
390 end
Or, do yourself a favor and learn C
Surreal
Last edited by skroo; August 26, 2005, 17:54.
Reason: I'm too fucking illiterate to know the difference between 'edit' and 'reply'
Surreal, I'm sorry. This is now the second time I've edited someone's post instead of replying to it. That wasn't intentional; it's just me hitting the wrong fucking button and tarding it all up.
Comment