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

Pages: [1] 2
1
Calculator C / Re: Simple calculator program
« on: April 16, 2013, 02:32:49 pm »
On the computer, you could do it better, by using a proper prototype for main(), returning a value, making the variables local to main - you probably compiled this snippet with a lenient compiler and without warning switches ;)
(for extra bonus points, check for overflow on the result of the addition)

On the Nspire, you could input strings somehow (by reading the keyboard's keys), and use, for instance, strtoul to convert the string to an integer. The NspireIO lib should save you some work, BTW :)

Can you write me a start code? :) because I'm a very beginner and I don't know how do it :)

Thank you

2
Calculator C / Simple calculator program
« on: April 16, 2013, 02:04:42 pm »
Hi :)

I want to develop a little program that asks me two input numbers (eg. 5 & 10). And do some calcs on it...

Eg. User enter two numbers (eg. a=5, b=10), program give user a numeric output (a + b = 15)

I know how do it in C:
Quote

    #include <stdio.h>
    int a,b,c;
    main ()

        {
        scanf("%d",&a);
        scanf("%d",&b);
        c=a+b;
        printf("%d\n",c);
        }



But I don't know how do it in C (with Tinspire libraries). Anyone could give me a code example? I'm a C noob :P

Thank you

3
Where are the links?

on first post. Under "Download" text

4
Released v 1.0.1. Changelog:

- Environment variables installer rewritten. Now fully working! :)

5
yes, maybe I created something useless but I released it here because I thought that It could be useful for somebody...

I had necessity to create an alternative to Ndless IDE because it can't build files :S Maybe it's a configuration problem of my environments variables (but I can still compile files from CMD & my program)

Meanwhile I released version 1.0 :) I hope you'll appreciate it :)

P.S. I removed adfly links. I didn't think that could be a problem :S I'm truly sorry

P.S. (2) DJ_o & aeTIos thanks for support and encouragement

P.S. (3) :P aeTIos : I live in Italy. Here "Simone" is a male name :) but, thanks for the question :D

6
Calculator C / Re: [RELEASE][WIN] Nspire's C Little Magic compiler
« on: March 14, 2013, 05:53:09 pm »
Hi,

Sorry to be so unpleasant, but what is the goal of such a program to replace the F7 key on the Ndless SDK if you still have to get the other depedencies ?
And by the way, Ndless SDK does not require a custom installation of MinGW nor yagorto. Everything is linked now.

yes, you're right but I have a lot of problems with ndless IDE (Scite IDE) and I can't get it to work :\ and I'm not the only one :(


7
Calculator C / Re: [RELEASE][WIN] Nspire's C Little Magic compiler
« on: March 14, 2013, 05:18:08 pm »
:)
Thank you. Unfortunately this program still require a development environment setted up correctly :( but I'm working on a solution! My goal is develop a program that doesn't need libraries, msys, MinGW, etc... :) Something that helps users to develop without any installation :P

for compiling problems:

I just...
1) uninstalled everything related with Ndless, Yagarto, MinGW, etc. with revo uninstaller
2) removed path references with PATH editor
3) reinstalled all (minGW,Ndless bin path, Yagarto,Msys)
4) Added bin folder, from Ndless SDK, to path environments list
5) :)

8
Calculator C / [RELEASE][WIN] Nspire's Little Magic compiler [LUA/C]
« on: March 14, 2013, 04:26:32 pm »
Hello everyone :)

I've just solved all my compiling problems so I decided to develop a new simple program that helps windows users to build C programs for ti Nspire:)
It still require a windows pc with sdk environment setted up correctly.

That's the first version, so it may contain bug :) Suggestions are also accepted ;)
The next version will contain a compiling error log & other features :P

ATTENTION: "this program is released 'as is' and there are no working guarantees. I'm still developing it :)

________________________________________________________________________________________________________________
USE
________________________________________________________________________________________________________________

Just click "compile" button, select folder where files reside and leave the program to compile files itself.
If everything works correctly you'll find a .tns file inside your program folder :)

________________________________________________________________________________________________________________
SCREENSHOT
________________________________________________________________________________________________________________










Select folder



Result



________________________________________________________________________________________________________________
DOWNLOAD
________________________________________________________________________________________________________________

http://www.mediafire.com/?czb2o1s0fkodfov [v 1.0.1]

________________________________________________________________________________________________________________
CHANGELOG
________________________________________________________________________________________________________________

Quote
Changelog:
- 1.0.1 - March 16, 2013
   - Environment variables installer completely rewritten!
- 1.0 - March 15, 2013
   - New menu
   - LUA language compatibility
   - Environment variables installer (Still in Beta, I'm still developing it)
   - Install button. Push this button to download a "mini-pack" with all programs/libraries that you need :)

- 0.1 - First release -  March 14, 2013



________________________________________________________________________________________________________________
DONATE
________________________________________________________________________________________________________________

If you like this program please consider to make a donation :)

Bitcoin Address: 138sK3nZ3yJDooYcFMXUHciawwSu9YUQ2

Thank you :)

9
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 14, 2013, 12:12:59 pm »
SOLVED :D

How I did:
1) uninstalled everything with revo uninstaller
2) removed path references with PATH editor
3) reinstalled 3 programs:
- MinGW
- Yagarto
- Msys
4) added bin folder, from Ndless SDK, to path environments
5) FIXED:D

Thank you ;)

10
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 13, 2013, 02:58:51 pm »
a Ti nspire basic program? :| what program should I use? ;)

Sorry, I'm a noob :S

11
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 13, 2013, 02:16:56 pm »
I'm trying to compile hello.c in /samples/hello directory


12
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 13, 2013, 01:29:10 pm »
Try to re-configure stuff, I think you haven't set it up correctly though you say you did.

I reinstalled it 100 times :( I don't know what to do now D:

the compiling stops because of this fatal error:  "fatal error: os.h: No such file or directory"....

:(((

13
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 13, 2013, 01:04:42 pm »
fatal error, no such file os.h :(

14
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 13, 2013, 12:27:13 pm »
hmm using Msys when I type:

" nspire-gcc " it reply:

<<arm-elf-gcc.exe: no input files >>

so....PATH works ;)

15
Calculator C / Re: [problem] TI NSPIRE C compile error
« on: March 13, 2013, 11:47:50 am »
I've also tried to follow this tutorial on command line TNspire compiling (http://ourl.ca/6330)

but it gave me errors that you can see on first post.

:(

Pages: [1] 2