This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Messages - ztrumpet
Pages: 1 ... 280 281 [282] 283 284 ... 385
4216
« on: May 19, 2010, 05:20:09 pm »
I was thinking of in the far future actually overwriting the operating system tokens with axe tokens as an option in the parser, but I don't know how hard that would be.
I know there's some code to do this in Mirage1.0: http://brandonw.net/calculators/savethewhales/Builderboy, this is progressing nicely! I really like how it's turning out. Once this is done, I'm pretty sure I'll use it, as it's pretty nice. I really like the line indent feature. Keep up the awesome work!
4217
« on: May 19, 2010, 05:05:19 pm »
Did I just get rickrolled in C#? That's awesome.
4218
« on: May 19, 2010, 04:59:54 pm »
Imagine a project of 6k lines of this and the migraine it would cause, even if its faster. Also, comments are always a good idea whenever clever code is employed.
I can imagine; I just printed out the source to The Penguin 77's Tetris Marathon (64 pages) and Quigibo's Puyopuyo (49 pages) in an attempt to learn Asm. It's pretty cryptic, but it's fast. (*ZTrumpet is just weird... )Despite the comment I just made, I completely agree with you, necro. I should have probably commented and coded better earlier. #include <fstream> #include <iostream>
void main() { char string[25]; char header[5][10] = { {"Name"}, {"Address"}, {"City"}, {"State"}, {"ZIP Code"} };
int offset = 0; file_ptr.open("ADDRFILE.DAT", ios::in); if (file_ptr) { do { file_ptr.get(string, 25); file_ptr.ignore(80, '\n'); if (!file_ptr.eof()) cout << header[offset % 5] << ":" << string << "\n"; ++ offset; } ...etc
So I guess the main point here is, don't over-complicate things, and remember that portability is an issue. Other than that, I would like to say good job on taking the incentive to go above and beyond the accepted normalities; keep the drive going!
Halifax, that's pretty great code! Thanks for sharing it, and I think it better than my version. Awesome job! What kind of class is it?
It's an introduction to C++ that I'm taking. As you can tell, we are learning about data files right now.
4219
« on: May 18, 2010, 09:40:46 pm »
Well what I think Quigibo is saying is that during the calculations and such to determine the point you are multiplying something by 256. Then when you go to display it's something like Pt-On(X/256,Y/256,Pic1. I'm not sure but that is what it sounded like to me.
That's basically what it is. If I were to explain, I'd say it's stored as a big number, 256 times what you've got it at now. (ex: (0,0) is (0,0) but (1,2) is stored as (256, 512) ) You calculate on it with those large numbers to give you 256 times the precision. When you display it, you divide be 256 just as Meishe showed. Did this make sense?
4220
« on: May 18, 2010, 09:29:09 pm »
If he does it again just turn in one of your calc games to him instead since he apparently knows TI-BASIC
I showed him Exodus a couple of weeks ago. I got the same response. Text sprites FTW!
4221
« on: May 18, 2010, 04:39:17 pm »
I like the idea of SortA( and SortD(. Those would be useful in Axe!
4222
« on: May 18, 2010, 04:35:02 pm »
Yoi Yoi two are being sillies...
4223
« on: May 18, 2010, 04:29:31 pm »
I think I should point out before my teacher gets bashed too bad that he was the teacher that taught me TI-Basic...
4224
« on: May 18, 2010, 04:27:15 pm »
This's cool. Personally, I'm not going to be in there much, but it's great that people can speak in their native tongues. Great addition!
4225
« on: May 18, 2010, 04:19:32 pm »
He's a really awesome programmer! I really like his Tetris Marathon, Stopwatch, and Orbit programs. The games are really fun!
4226
« on: May 17, 2010, 10:08:21 pm »
well you can use the stat plot draw types to do the full 16 bit AND/OR/XOR i belive, so you should only have to change the original commands to the new ones.
I think this will work. After all, the commands were just renamed and replaced.
4227
« on: May 17, 2010, 10:06:43 pm »
That code isn't hard to follow at all, and its not very complex. But I have a feeling what your teacher is complaining about is that you made it very "C style" instead of "C++ style". They want to train you to stick with the C++ commands and not do those efficient workarounds becasue eventually you're going to be dealing with abstract objects and your code will no longer be portable when instead of strings you have classes and instead of characters you have child objects.
Okay, that's probably why he did it. He likes to have us program certain exercises in a certain way because it'll help us later on. Thanks for the info!
4228
« on: May 17, 2010, 05:45:41 pm »
Sorry you had to downgrade your project.
Nah, it's fine, as it only took me 10 more minutes.
4229
« on: May 17, 2010, 05:21:41 pm »
Nice job DJ! The highest I can get on Orbit is 19. Thanks for showing it, as it's a really fun game!
4230
« on: May 17, 2010, 05:09:26 pm »
This sounds pretty good. Great job jcw!
Pages: 1 ... 280 281 [282] 283 284 ... 385
|