0 Members and 2 Guests are viewing this topic.
HiI'm a new user and my calc is TI Nspire CX CAS First: How can i write code in c++ not c ?
Second :I'm good in c++ but i can't make input from user how can i do this ?
Third : I write a code in c and I use "scanf()" to take input from user and when I test it on emulator , the emulator stuck what the problem ?
Forth : What is the important include that i should write before the program ? " the program contains input from user "
Fifth and least : is there any tutorial "pdf or videos " for programming ti nspire cx cas ? can I make a GUI app ?
Use nspire-io, directly or indirectly. The new SDK at https://github.com/ndless-nspire/Ndless has nspire-io support built-in, just look at samples/newlib.You can use scanf, std::cin, ifstream, whatever you like.
It waits for serial input. By default std* are the first UART.
Fifth and least : is there any tutorial "pdf or videos " for programming ti nspire cx cas ? can I make a GUI app ?There is only http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux. You can use some graphics libs like nSDL, n2dlib or nGL or rip an existing program apart and use its GUI stuff, like pyWrite.
Thank you for replyQuoteUse nspire-io, directly or indirectly. The new SDK at https://github.com/ndless-nspire/Ndless has nspire-io support built-in, just look at samples/newlib.You can use scanf, std::cin, ifstream, whatever you like.What is the header file that i will include it will be "#include <nspire-io> ?
QuoteIt waits for serial input. By default std* are the first UART.This is my code (I still learning and test small codes)#include <os.h>int main() { printf ("!!!Hello World!!!"); int x ; scanf("%d" , &x); printf ("The value is : %d" , x) return 0;}What is the problem for this code (The prog not start to write an input)
QuoteForth : What is the important include that i should write before the program ? " the program contains input from user "I mean what is the main (#include <>) that without it the app doesn't run ?
QuoteFifth and least : is there any tutorial "pdf or videos " for programming ti nspire cx cas ? can I make a GUI app ?There is only http://hackspire.unsads.com/wiki/index.php/C_and_assembly_development_introduction_on_Linux. You can use some graphics libs like nSDL, n2dlib or nGL or rip an existing program apart and use its GUI stuff, like pyWrite.can you give me link contains example for GUI code ?
Thanks in advance
for the GUII still in the start and I don't know anything of them So I wish you recommend me anyone of them to start learn itI need a simple gui .
That's expected, to use libstdc++ you have to use the new SDK.
I tried the two version from the official ndless site
If you Anyone has the (Ndless sdk) and work fine with c++ and emulator please upload the folder
Cygwin is a program which gives a unix-like mini environment to a Windows user. It installs some binaries, a folder with the structure of a Linux distribution, a shell ( a command line program, like command invite) and you have a similar environement as a Linux should be.
After this code "./build_toolchain.sh" and after download i get two errors and try to solve them but not success