Welcome to Anything Forums! We are a general discussion forum that believes in freedom of expression and aim to provide a low moderation (within reasonable means) environment to discuss any topic. If you want to join, simply click HERE to be taken to our account management system where you can make an account. If you had an account at iceteks.com, anythingforums.com, uovalor.com or uogateway.com in the past it has been transfered over and you can simply do a password reset.
Computer builds, hardware and software discussion or troubleshooting, including peripherals. Essentially a general place to talk about desktop computers.
if 42 < 34 then
put "Hello"
elsif 56 > 89 then
put "World"
else
put "Foo bar!"
end if[code]
[code]if 42 < 34:
print "Hello"
elif 56 > 89:
print "World"
else:
print "Foo bar!"[code]
Defining a function:
[code]function square (a : int) : int
result a * a
end square[code]
[code]def square(a):
return a * a[code]
While loop:
[code]var counter := 0
loop
put "Hello"
counter += 1
exit when counter = 5
end loop[code]
[code]counter = 0
while counter < 5:
put "Hello"
counter += 1[code]
Looping over an array/list:
[code]var arr : array 1 .. 5 of int := init (3, 4, 1, 7, 8)
for i : 1 .. upper (arr)
put arr (i)
end for[code]
[code]arr = [3, 4, 1, 7, 8]
for x in arr:
put arr[code]
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:3314, old post ID:27094[/size][/color]
I just thought of one. You said your running linux right now. Well i was wondering if you knew how to partion with linux already as your OS.
I am using redhat 8.0 and want to put daul boot (one as win 2k and the other as redhat) on it but all the stuff i've found was how to partion with win 2k then put on linux.
Archived topic from Iceteks, old topic ID:3314, old post ID:27096
The wisdom of sight comes from the father of lights
When you dual boot with Windows, always install Windows first. Windows doesn't play well with others, but Linux does, so if Windows goes second it'll screw up the bootloader. If Linux goes second, Windows basically doesn't even know it's there, which is just fine.
Archived topic from Iceteks, old topic ID:3314, old post ID:27097
Yeah just ensure to install a linux bootloader so you can boot windows and linux, and NEVER uninstall that installation of linux, unless you plan to fdisk your entire drive. I learn't that the hard way.
Actually, there's ways to recover from that, but they're a risk, it involves rebuilding the MBR and well, if it goes wrong, you're screwed. (I believe this would even affect non-bootable partitions on that drive, but I'm not 100% sure)
Archived topic from Iceteks, old topic ID:3314, old post ID:27098
Honk if you love Jesus, text if you want to meet Him!
well i see alot of people sort of answerd. Sorry i took so long i had a problem with my parents but anyways i started up a new website oh and when you get there just to let you know that you internet is not down just keep scrolling down till you find a link saying ENTER ok http://members.shaw.ca/mike-db (its not quite done yet but its getting there
Archived topic from Iceteks, old topic ID:3314, old post ID:27223