Multi-Precision Arithmetic by C++ with no
use of assembler
SN library Copyright (C) 1999-2018 K.Tsuru
Reference of keyboard functions
ErrorPuts, ErrorPut
function "ErrorPut(s)(s);" outputs string s to "stderr".
form
#include "wait.h"
inline void ErrorPuts(const char* msg); //add '\n' at last
inline void ErrorPut(const char* msg);
Wait
function "Wait(s);" outputs string s to "stderr" and a message
"Press 'a' and <Enter> key to abort / <Enter> key to continue."
#include "wait.h"
inline void Wait(const char* msg = NULL);
Ending
function "Ending();" outputs a message to "stderr"
"Program ended. Hit any key."
#include "wait.h"
inline void Ending();
For comfortable operation
If your compiler has "conio.h" , please rewrite
#define CONIO_EXIST 0
as
#define CONIO_EXIST 1
in "Sn32\include\wait.h". Then non ANSI functions "getch()"
and "kbhit()" becomes used. Maybe it is necessary to remove
the "under ANSI C/C++" e.g. "-ansi" option to normally compile
a file which includes
the above functions.
GetInt, GetLong, GetDouble, GetString
function "GetTYPE()" returns a number whose type is TYPE
inputted from keyboard.
form
#include "getnum.h"
int GetInt(); //int type
long GetLong(); //long type
double GetDouble(); //double type
char* GetString(); //string, free length. See "smplogx.cpp" for
usage.