Originally Posted by Razzle
The so-called code is crap. (Sorry if that sounds harsh, but it is really, really, crap. Crap on a stick, wrapped in crap.) Besides the missing variables and syntax errors, the sequence is, simply, nonsense.
You are telling us that you don't know what it is supposed to do? Where did you get the code? Found it under a cabbage leaf? The stork brought it? (That's a rhetorical question. I don't want an answer.)
Does that sound too
harsh? Well, since you
are asking us
what it is supposed to do, I am assuming that you didn't write it, so you shouldn't be offended. At least that's the way I see it.
I can't imagine that looking at two dozen lines of nonsense can lead to understanding of the language or its applications. Can't you find some real code from a tutorial or a textbook or class notes (or something
) to study?
My recommendation: Get some "real" code. Compile it. Execute it. Study it. Make modifications and see if you can make sense out of the results.
After studying whatever source material was available wherever you got the code, if there are parts that you don't understand, please post again and ask specific questions. There are lots of folks here who like to help (really) but we gotta have something to work with. Not c*** (Oh, great! Now
the swear filter kicks in.)