Show Posts

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
TI Z80 / Re: TI Basic Editor
« 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! ;D

4217
Introduce Yourself! / Re: Hi there
« on: May 19, 2010, 05:05:19 pm »
Did I just get rickrolled in C#?  That's awesome. :D

4218
Computer Programming / Re: My schoolwork got rejected...
« 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. ;D  It's pretty cryptic, but it's fast. :D  (*ZTrumpet is just weird... ;D )
Despite the comment I just made, I completely agree with you, necro. :)  I should have probably commented and coded better earlier. :)

Code: [Select]
#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! ;D

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
Portal X / Re: Portal X
« 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
Computer Programming / Re: My schoolwork got rejected...
« 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 :P
I showed him Exodus a couple of weeks ago.  I got the same response. ;D
Text sprites FTW! ;D

4221
Axe / Re: [UPDATE] Speed Order Program
« on: May 18, 2010, 04:39:17 pm »
I like the idea of SortA( and SortD(.  Those would be useful in Axe! ;D

4222
Miscellaneous / Re: Birthday Posts
« on: May 18, 2010, 04:35:02 pm »
Yoi
Yoi two are being sillies... :D

4223
Computer Programming / Re: My schoolwork got rejected...
« 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... ;D

4224
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! ;D

4225
Other Calculators / Re: 16-Level Grayscale
« 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! ;D

4226
TI Z80 / Re: Phoenix: Axe Version
« 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
Computer Programming / Re: My schoolwork got rejected...
« 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! :D

4228
Computer Programming / Re: My schoolwork got rejected...
« 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. ;D

4229
Nice job DJ!  The highest I can get on Orbit is 19.  Thanks for showing it, as it's a really fun game! ;D

4230
Music Showcase / Re: Jungle - Deeper
« on: May 17, 2010, 05:09:26 pm »
This sounds pretty good.  Great job jcw! :D

Pages: 1 ... 280 281 [282] 283 284 ... 385