View Single Post
Old 03-24-2005, 03:45 PM   #6 (permalink)
redhead
Newbie
 
redhead's Avatar
 
Join Date: Jun 2002
Location: Denmark
Posts: 1,692
redhead is on a distinguished road
make some sort of check, which would say:
Code:
 if number N=P != N+1=P+1 then Error
The only way I could see this sort of code running without alot of if/then/else clauses would be to make an array or better yet a dynamic array or even better, making it C++, with the use <vector> and any sort of mapping() function onto that.
__________________
Don't worry Ma'am, We're university students, We know what We're doing.
-----
If you pull the pin, Mr.Grenade would no longer be your friend.
-----
01000111 01101111 00100000 01000011 00100000 00100001
redhead is offline   Reply With Quote