
*Ahem*. Don't blame me, I had to. Anyways, the other real meat. Programming. So, in recent news, it's raining. Oh wait, that is SNOWFALL. Snowfall program. L!o!L!o!L!11oneoen (pulling a Mark here.) We recently did a snowfall sorting program. It was really easy at first, since all you had to do was this thing called a pointer sort. Or so I thought. The pointer sort was pretty simple, and here is the concept behind it. When you have large tables of information, switching them around would be quite hard, especially if your switching books on the table just to switch part of what is on the table. This is where pointers come in.
You point at what you want, without changing any information of what you are sorting. This saves processor power and memory, making your program run faster and allowing the end user to have a more enjoyable experience. Sorting arrays, for snowfall. Must be quite fun. Anyways.
The only problem is, this question asked us to display the results on another form. I didn't realize that his sample example didn't have it. So me being me, wanting my 110% (WHICH I DID NOT GET *AHEM*) I spent about 3ish hours perusing the world wild web in search of a non retarded developer. Not to say they are retarded, but they seem to use the most ridiculously indirect methods I have ever seen, or just cheat instead of answering the poor stupid man's question.
Long story short, thanks to a little ingeniousness of my own, I found a method. I created a public void on my second form, and on it's creation, the first form would call it, sending over the grid to the second. It was absolutely beautiful. Then I found out Roy had come on MSN, so I decided to tell him that he should do it, or he will lose marks. And I, being me, was doing to ransom my answer for the cost of McDonald's. Then he sent me Mr. C's program, effectively shutting down my bargaining positioning.
To top it off, I had to completely redo my program at about 11 in the night because I had not used structures, and my program was ridiculously bulky. (Sorts, Quick sort, Shell all in first, and Shell on second form.) Thus did my weekend (more specifically Sunday night) sucked. Ah well, hopefully I shall get that 110% (if not, I hope Mr. C reads this and has a change of heart. Good bye dear readers.
No comments:
Post a Comment