Hello i bought a FX-CG 20 a year ago and I would like to program it but I have problem because I think the wiki is very confused.

If someone could explain how to use C++ in the prizm I would very grateful.

On the other hand if someone put a program like this but written for the prizm it would be great help for newbies.

Code:
int n1,n2;
cout<< "number one"<<endl;
cin>>n1;
cout<<"number two"<<end;
cin>>n2;

cout<<n1+n2;

before writing this I have read most of your posts on the forum but can not find something easy like this;

also I would like to know a similar command to io.read() to luaZM

thanks and sorry for my bad english.
A few points:
  • While some programmers use C++ with the Prizm, C++ support is very iffy, and the vast majority of us program for the Prizm in C
  • We don't have a complete stdlib or stdio, so console input and output is challenging. LuaZM implements most of that itself, with help from the [ur=http://www.cemetech.net/forum/viewtopic.php?t=8020]PrizmIO[/url] library by Juju
  • If you look on the Wiki, we also have information on routines that perform [url=http://prizm.cemetech.net/index.php?title=Text_and_Number_Input]text and number input
You're probably confused reading the wiki because it's not intended to teach C/C++, just help people already skilled in the languages to adapt their knowledge to the Prizm. Please keep following up here so we can help you!
thanks KermMartian ,
in the university we only learned to use a basic c++ and only used console input and output.
my programs do repetitive things but boring to do with paper and pencil like calculate simple three-phase circuits, and program useful to the university

thank you very much and excuse my ignorance
a doubt prizmIO is for C no?

I have programmed in lua a simple program but i have the problem with the console input because io.read() don't work and the lib of flyingfisch B2B says not enought memory,

are there an input comand thats works in lua?
Well actully my fork of libfxcg https://github.com/ComputerNerd/libfxcg implements much better console IO. You can do things such as fread from stdin and fgets and so on that allows you to get text input.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement