Calculator Community > Calculator C

How to get input from user in ndless sdk ?

<< < (2/7) > >>

Vogtinator:

--- Quote ---for the GUI
I still in the start and I don't know anything of them
So I wish you recommend me anyone of them to start learn it
I need a simple gui .
--- End quote ---
Well, if text is enough you can use nspire-io to display text at specified positions and move using the cursor keys. Or if you want 2d graphics, use nSDL, nGC, n2DLib or nGL.

Mohammed Elborolossy:
Edited (I make some edit in the code but still has a problem)
The code is :
#include <os.h>
#include <iostream>
#include <stdlib.h>
#include <libndls.h>
using namespace std;
int main() {
   cout<<"!!!Hello World!!!";
   int x ;
   cin>> x;
   cout<<"The  value is :" << x ;
   return 0;
}
The compile result :
>C:\ndless-sdk-v3.6-r53.464a532/mingw-get/msys/1.0/bin/sh -l -c 'PATH="$PATH":\'/C/ndless-sdk-v3.6-r53.464a532/ndless/bin:/C/ndless-sdk-v3.6-r53.464a532/yagarto/bin\' C_INCLUDE_PATH="$C_INCLUDE_PATH":\'/C/ndless-sdk-v3.6-r53.464a532/ndless_pc/include\' LIBRARY_PATH="$LIBRARY_PATH":\'/C/ndless-sdk-v3.6-r53.464a532/ndless_pc/lib\' \'/C/ndless-sdk-v3.6-r53.464a532/ndless/bin/nspire-gcc\' -Os -c hello.cpp'
>Exit code: 0

The Build result :
Please choose a name for the program below.
Makefile created. You can now build with the 'make' command or Ndless Editor's Tools>Build command.
mkdir -p .
nspire-ld-bflt hello.o -o ./First.tns  --cpp
c:/ndless-sdk-v3.6-r53.464a532/yagarto-20121222/bin/../lib/gcc/arm-none-eabi/4.7.2/../../../../arm-none-eabi/bin/ld.exe: warning: cannot find entry symbol lf2flt; defaulting to 00000000
Built.

When i test it on emu (I'm already install ndless on  emu and check before i run the prog.)
apper a message that prog. not supported
other thing the cpp file is 1 kB
The TNS file is 4.1 MB ? it seems large 

Vogtinator:
That's expected, to use libstdc++ you have to use the new SDK.

Mohammed Elborolossy:

--- Quote from: Vogtinator on November 18, 2014, 04:02:04 am ---That's expected, to use libstdc++ you have to use the new SDK.

--- End quote ---
I still has the same problem
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
Thanks in advance

Vogtinator:

--- Quote ---I tried the two version from  the official ndless site
--- End quote ---
They're both the old sdk. The new SDK is on Github.


--- Quote ---If you Anyone has the (Ndless sdk) and work fine with c++ and emulator please upload the folder
--- End quote ---
Windows? Cygwin?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version