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 - Munchor

Pages: 1 ... 189 190 [191] 192 193 ... 424
2851
Miscellaneous / Re: One File VS Multiple Files
« on: March 18, 2011, 03:27:27 pm »
I usually use many files, but it depends on the project, too.

That's right, if it's a simple projects, why would one use multiple files?

2852
TI Z80 / Re: BimBall -- AKA super wallball
« on: March 18, 2011, 03:27:01 pm »
Ooooh Ashbad, looks nice! I like the design, but the title screen, I think, could be improved =D

2853
Miscellaneous / Re: One File VS Multiple Files
« on: March 18, 2011, 02:59:23 pm »
My problem with using multiple files is that I don't know how to do it in most languages.

I know how to do it in Python and Java, TI-Basic and Axe, but nothing else.

2854
Miscellaneous / One File VS Multiple Files
« on: March 18, 2011, 02:40:12 pm »
Are you a multiple file user (Computer Programming or Calculator Programming)?

Or do you have 1000 lines in a single file?

What do you think is best?

Discuss.

----

I personally use a single file for pretty much everything, one file and print in each line debugging is for real man!
But organized code is best when using multiple files, I have to agree with that.

2855
BatLib / Re: BatLib Demo Programs
« on: March 17, 2011, 06:44:51 pm »
ooOHH nIIICE!

I really like the speed of BatLib programs and Basic Recode.

yeah, reading through the readme reminds me so much of the first time I read the Axe documentiation.  XD

Mentioning readme, I like the font and structure of Zeda's pdf files.

2856
BatLib / Re: BatLib
« on: March 17, 2011, 06:40:35 pm »
Nice Xeda, looking cooler and cooler!

2857
News / Re: IRC Channel -i Again
« on: March 17, 2011, 06:30:26 pm »
Sweet. Inviting people all the time then voicing them was getting kinda annoying... But still, that was necessary for a while.

We have an auto voicer now too :;)

2858
News / Re: IRC Channel -i Again
« on: March 17, 2011, 06:08:53 pm »
This is cool, any prediction on when OmnomIRC will be back?

2859
BatLib / Re: BatLib Demo Programs
« on: March 17, 2011, 05:32:42 pm »
ooOHH nIIICE!

I really like the speed of BatLib programs and Basic Recode.

2860
General Calculator Help / Re: Branch defined functions NSpire
« on: March 17, 2011, 05:12:17 pm »
I managed to do it.
Library_Button>>>3>>>Branch defined functions icon

Worked ;)

2861
Computer Programming / Re: C++ Questions
« on: March 17, 2011, 03:58:25 pm »
So, there are 2 ways of doing it:

Code: [Select]

#include <iostream>
#include <string>
#include <stdio.h>
 
using namespace std;
 
int main() {
    string helloW = "Hello World";
    int i=helloW.length();
    i=i-1;
    for (i;i>=0;i--)
    {
        if (i<helloW.length())
        {
             printf("%s",helloW[i]);       
        }
    }
    cout << helloW.length() << "/n";   
    cout << helloW << "/n";
    cin.get();
    return 0;
}

Code: [Select]
#include <iostream>
#include <string>
 
using namespace std;
 
int main() {
    string helloW = "Hello World";
    int i=helloW.length();
    i=i-1;
    for (i;i>=0;i--)
    {
        if (i<helloW.length())
        {
             cout << helloW[i];       
        }
    }
    cout << helloW << "\n";
    cin.get();
    return 0;
}

Note: That was not the problem, the problem was the 'i' and 'i-1' but telling me that actually made me realise what the error in this piece of code was.

EDIT:

Here is the final code to invert a string input by the user:

Code: [Select]
#include <iostream>
#include <string>
 
using namespace std;
 
int main() {
    string input = "";
    string finalString = "";
    getline(cin, input);
    int i=input.length();
    i=i-1;
    for (i;i>=0;i--)
    {
        if (i<input.length())
        {
             finalString+=input[i];
        }
    }
    cout << finalString;
    cin.get();
    return 0;
}

-------------------------------------
I know want to know how to slow down a C++ loop.

2862
TI Z80 / Re: DionJump: a DoodleJump clone for the calcs
« on: March 17, 2011, 02:57:13 pm »
I can make a screenie for you, here it is, but I highly recommend you to get WabbitEmu or another screenshot-featured emulator.

I think I tried all the keys, but I still couldn't move:

But there is a change I didn't try all the keys:



Note: I really like the menu.



2863
Computer Programming / Re: C++ Questions
« on: March 17, 2011, 02:51:23 pm »
well obviously this shows that I'm a nub in C++ and unfortunately can't help you :( hope someone else can, though.  Good luck with finding out where you went wrong!
I'm sure you're pretty good, but thanks anyways!

2864
General Calculator Help / Branch defined functions NSpire
« on: March 17, 2011, 11:49:37 am »
In the 8x Series I can:
Code: [Select]
Y1= (2.5X)(X>10)
Y2 = (5X)(X<=10)

This meaning:
If x>10, y=2.5x
If x<=10, y=5x

How can I do this on the nspire?

2865
TI Z80 / Re: [PROJECT] SimpleCS
« on: March 17, 2011, 11:06:08 am »
Now that I think about it, uploading it on Omnimaga is not possible, since we can only upload games here.

Pages: 1 ... 189 190 [191] 192 193 ... 424