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 ... 71 72 [73] 74 75 ... 424
1081
News / Re: Pegs for Nspire Released
« on: June 17, 2011, 07:22:01 pm »
Here is one that will eventually be available on the ticalc file page:

This is in Block Dude for the 83/84+ (SE), great job apcalc :D

1082
How about a JVM for TI-OS?

Sorry that's not so easy to do, especially because Z80 is very slow and even C is quite slow for Z80.

Oh and I mean by using pre-made Java/C Z80 Compilers.

1083
News / Re: Pegs for Nspire Released
« on: June 17, 2011, 07:19:24 pm »
In the Omnimaga Archives, it can be found here.

Also can anyone make an animated screenshot? I'd like it as I can only try it in my calculator tomorrow :)

Also nice job either way apcalc!

1084
Oh I forgot comments :P

@yrinfish: Well that seems right too.

1085
why not // ? is that already something?
* yrinfish checks the new wiki

ah, it is...

what about ./? the dot is a 'point' and .* for multiplication

I like ./ because it's fixed-point division.

And // is probably bad because of the way Quigibo made Axe.

1086
TI Z80 / Re: Axe Wiki
« on: June 17, 2011, 11:57:04 am »
I'll make a page on the different Axe releases.

That's a great idea.

Perhaps a warning of the problems with some of the releases (bugs)?

1087
Computer Programming / Re: Factorial Output
« on: June 17, 2011, 11:27:17 am »
He means you are not initializing X with a value, you are just going int X or double X, which creates the variable, but it holds no value.

Code: [Select]
double x;
scanf("%lf",&x);

I get it through input.

1088
This was quick, but it's going 1.0 now. I fixed a small bug in the title screen (pressing the up arrow in the menu would make the "pixel" in the game change position) that Scout pointed out. The dot is now controlled using either tab or enter (which also means that doing sharp rises when both are pressed is possible), because the arrow key is useless. I initially wanted the player to be able to hold the key, but because the way the OS deals with key signals is crap, it has no advantage. After all tab or enter are also more comfortable and precise. Now the player can return to the title screen at any moment by pressing ctrl + menu. I made some other minor changes and slightly changed the code. This way I have a stable and clean version to work on later. The new download links are on the website.

I just downloaded and tested, looking very good :D

1089
TI Z80 / Re: Axe Wiki
« on: June 17, 2011, 09:51:38 am »

1090
Jumpman 68K / Re: Jumpman
« on: June 17, 2011, 09:38:13 am »
Some of you may know that we have been trying to sell our house. Well... about 2 weeks ago someone decided to buy our house -- woo hoo! They told us we need to be out of our house by Wednesday June 22nd.

So, we have been been packing the house to get moved as well trying to find our new home. We found a new home about a week ago but we wont be able to move in to it until late this month. Yeah... we are going to be homeless for a week or two. I'm not looking forward to 2 independent moves though.

At some point, my life will slow down a bit. Then I will be able to finish up Jumpman.

I hope it turns all right and wish you good luck :)

1091
TI Z80 / Re: Axe Wiki
« on: June 17, 2011, 09:36:57 am »
Whoever wrote this should try to be more specific and scientific. This is programming (science) we're talking about, and vocabulary such as "whatever" and the "r1,r2,etc" should be more objective and precise.

Thank you

1092
Music Showcase / Re: La Porte du Soleil (new power metal song)
« on: June 17, 2011, 09:31:11 am »
This song is pretty cool, as most of yours DJ :) I'm on 1:11 and enjoying a lot!

1093
Computer Programming / Re: Factorial Output
« on: June 17, 2011, 09:16:15 am »
Well, you're not declaring x to be anything but null, so..

Oh I see, but I also tried this and get the same output:

Code: [Select]
#include <stdio.h>

int main();
double factorial(double n);

int main() {
   
    int n;
   
    scanf("%d",&n);
   
    int i;
    for (i=0;i<n;i++)
    {
        double x;
        scanf("%lf",&x);
        printf("%lf\n",factorial(x));
    }
   
    return 0;
}

double factorial(double n)
{
    if (n==0)
    {
        return 1;
    }
    double sum = 1;
    int i;
    for (i=n;i>0;i--)
    {
        sum = sum*i;
    }
    return sum;
}

1094
Computer Programming / Re: Factorial Output
« on: June 17, 2011, 03:00:26 am »
I see everyone, I tried this:

Code: [Select]
#include <stdio.h>

int main();
double factorial(int n);

int main() {
   
    int n;
   
    scanf("%d",&n);
   
    int i;
    for (i=0;i<n;i++)
    {
        int x;
        scanf("%d",&x);
        printf("%f\n",factorial(x));
    }
   
    return 0;
}

double factorial(int n)
{
    if (n==0)
    {
        return 1;
    }
    double sum = 1;
    int i;
    for (i=n;i>0;i--)
    {
        sum = sum*i;
    }
    return sum;
}

But it returns "inf" for all numbers :/

1095
Computer Programming / Factorial Output
« on: June 16, 2011, 05:38:03 pm »
I was trying to make a C Program that returns the factorial of a given number without using any libraries (besides stdio.h).

Code: [Select]
#include <stdio.h>

int main();
int factorial(int n);

int main() {
   
    int n;
   
    scanf("%d",&n);
   
    int i;
    for (i=0;i<n;i++)
    {
        int x;
        scanf("%d",&x);
        printf("%i\n",factorial(x));
    }
   
    return 0;
}

int factorial(int n)
{
    if (n==0)
    {
        return 1;
    }
    int sum = 1;
    int i;
    for (i=n;i>0;i--)
    {
        sum = sum*i;
    }
    return sum;
}

That's my code, the first line of input is supposed to be the number of inputs. Then for each input I output its factorial.

It works fine for me. However, this won't accept it. Any ideas?

Pages: 1 ... 71 72 [73] 74 75 ... 424