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.
I'm doing a turing project in school and I need help. We are making a game and we have to present tomorow, so its really urgent. When somebody plays our game tomorow, its not supposed to crash, no matter what they type. This is the problem I have:
var NumberOfGames: int
put "How many games do you want to play... " ..
get NumberOfGames
If the user types a letter, or anything but a integer, the program will crash. How would you make it so instead of crashing, it displays a message saying "Invalid Choice", or "Please choose an integer"?
I would appreciate it if somebody replies soon. Thank you!
Archived topic from Iceteks, old topic ID:2393, old post ID:20205
But the site you gave me had alot of links. I checked about five of them. A few didn't work. The site comp.sci.com wasn't bad, but i found out there were alot of message polls there also. I was hoping if somebody could reply and tell me what to do cuz i'm relly stuck
Thanks again!
Archived topic from Iceteks, old topic ID:2393, old post ID:20211
But the site you gave me had alot of links. I checked about five of them. A few didn't work. The site comp.sci.com wasn't bad, but i found out there were alot of message polls there also. I was hoping if somebody could reply and tell me what to do cuz i'm relly stuck
Thanks again!
Glad to help
I think Iceteks used to have Turing experts around, but unfortunately you'll be better served elsewhere for Turing
Archived topic from Iceteks, old topic ID:2393, old post ID:20213
I would nt mind it actually... we have no programming classes at my school... but why oh why do they teach turing instead of like c++ or something?! Assembly would be cool too!
I just like the fact of taking 1000 lines to write a hello world program... and understanding the code.
Archived topic from Iceteks, old topic ID:2393, old post ID:20252
Honk if you love Jesus, text if you want to meet Him!
i am doing this virtual city, and i need to upload a car into the city and make it move horizontally, how am i gonna do this, tried Pic.Id and use it in the command Pic.Draw, but do i have to use Pic.Screenload, has anyone done this before? If anyone has done this before, give me some tips on how to do this, email the way to this mailbox: tom_frank23@hotmail.com
Archived topic from Iceteks, old topic ID:2393, old post ID:20262
Neoson wrote: i am doing this virtual city, and i need to upload a car into the city and make it move horizontally, how am i gonna do this, tried Pic.Id and use it in the command Pic.Draw, but do i have to use Pic.Screenload, has anyone done this before? If anyone has done this before, give me some tips on how to do this, email the way to this mailbox: tom_frank23@hotmail.com
Did you, perchance, read ANY of the other posts in this thread?
No-one here knows squat about turing
Archived topic from Iceteks, old topic ID:2393, old post ID:20263
funny thing is... i'm a cs major and our major teaches us java, not c++ or any other useful programming language. i mean i wouldn't mind knowing java better than i do, but please... c++ is the most common powerful programming language used, and they only offer 1 serious class. why teach only java?
Archived topic from Iceteks, old topic ID:2393, old post ID:20906
Yeah it is weird that they do that. I'll have to learn javascript sooner or later though, at least the basics since I'll need it for my forum software that I'm working on. Or I can steal code that I find but it's better to be original.
Oh and welcome aboard.
Archived topic from Iceteks, old topic ID:2393, old post ID:20907
Honk if you love Jesus, text if you want to meet Him!
floored wrote: c++ is the most common powerful programming language used
exactly - it's most common language, they already have enough people who know it Besides, C++ is getting outdated. Fast It's only good for those optimized, system spesific (oftern internal) apps. It is much more fun to program in modern languages
Red Squirrel wrote: I'll have to learn javascript sooner or later though
Java and javascript are two compleatly different things - don't mix them up
Oh, I understand it's portability is nice, I just have a better time using Flash and Shockwave and wasnot to get the job done. They load up faster on all the machines I tested on, and run faster on the slower machines I tested it on.
As for being hardware independant, I've seen flash used on PDAs and other electronics, and I'm sure they could put it on anything they wanted with a little bit of effort. (Although with Sun open-sourcing java in the future, it'll have the leg up).
Archived topic from Iceteks, old topic ID:2393, old post ID:20967
Yeah my main pet peeve with java is how it locks up the whole computer when 1 page is loading and it has a java applet. I have to wait like a few minutes before it responds and by that time I already hit reset or ctrl+alt+delled my way out, and know never to go to that site again.
Archived topic from Iceteks, old topic ID:2393, old post ID:20969
Honk if you love Jesus, text if you want to meet Him!
I would nt mind it actually... we have no programming classes at my school... but why oh why do they teach turing instead of like c++ or something?! Assembly would be cool too!
. It's quite simple really. Why is turing taught? Because it's THAT easy. The teachers know NOTHING about programming, so they take the easiest syntax available. When I learnt turing in grade 10 (Ya, I see your point, why didn't we learn C++ DUH ), I knew MORE than my teacher (And that's pretty pitiful). Basically, not many people (Expecially in Timmins) knows how to program successfully in C++ and Java and any in depth programming language. So that's the reason they teach turing in school. I always wanted to go up to one of the teachers, show them some java code and tell them to explain what it does .
Archived topic from Iceteks, old topic ID:2393, old post ID:22434
The impression I get, though I grew up in the states and have had very little exposure to Turing, is that it's being taught because it has a relatively powerful library (especially for graphics), and that it has a syntax like Pascal, but simplified.
A lot of teachers have quite a bit of experience with Pascal. Until fairly recently it was the teaching language of choice. The problem is that Pascal has a bit of overhead that can be difficult in teaching programming to those with no computer science experience.
When you demonstrate "Hello, world!" you want to be able to show students:
put "Hello, world!"[code]
Rather than:
[code]program HelloWorld;
begin
WriteLn('Hello, world!')
end.[code]
Because it's hard to explain why you need the "program HelloWorld;" and "begin", and "end." and why you need parentheses and the "Ln" in "WriteLn". Also, you then have to explain why the file needs to be called "HelloWorld.pas".
Of course, Turing's acceptance was probably also aided by the fact that most school's paid for Borland's Pascal compiler, and things like the open source Free Pascal Compiler didn't exist. Teachers and schools didn't think as much about the circumstances of adopting a proprietary language and being tied to a single company, because they'd been doing it for years.
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:2393, old post ID:22477[/size][/color]
Furball wrote: I always wanted to go up to one of the teachers, show them some java code and tell them to explain what it does .
That would be fun! Actually I never programmed java before, but I assume the syntax is like java script, which is like C++ so I could maybe possibly make out what it does.
dosseg
.model small
.stack 100h
.data
hello_message db 'Hello, World!',0dh,0ah,'$'
.code
main proc
mov ax,@data
mov ds,ax
mov ah,9
mov dx,offset hello_message
int 21h
mov ax,4C00h
int 21h
main endp
end main
[code]
:biglaugh:
[color=#888888][size=85]Archived topic from Iceteks, old topic ID:2393, old post ID:22482[/size][/color]
Honk if you love Jesus, text if you want to meet Him!