Code: Select all
char chr=-1;
printf("%c", chr);
Code: Select all
char chr=-1;
printf("%c", chr);
Code: Select all
char chr=7;
printf("%c", chr);
Well, as standard as Windows.h... It is not portable (that is for me all that I care) and certainly not ANSI C. You are just usually so pedantic about ANSI C...Wikipedia wrote:conio.h is a C header file used in old MS-DOS compilers to create text user interfaces. It is not described in The C Programming Language book, and it is not part of the C standard library, ISO C nor is it defined by POSIX.
that's exactly why I use it to create text user interfaces for the NXT.conio.h is a C header file used in old MS-DOS compilers to create text user interfaces.... This header declares several useful library functions for performing "console input and output" from a program. Most C compilers that target DOS, Windows 3.x, Phar Lap, DOSX, OS/2, or Win32[1] have this header and supply the associated library functions in the default C library...Some embedded systems use a conio-compatible library.[2]
what ????printf() doesn't display anything on your screen
Code: Select all
string str="test";
int i=567; float f=1.2345; char c='A';
printf("%s", str);
Wait(1000);
printf("%4d", i);
Wait(1000);
printf ("%6.3f", f);
Wait(1000);
printf("%c", c);
Wait(1000);
Code: Select all
//If Item is defined by the font, display it. Else, ignore it.
Item = *pString - ' ';
if (Item < Items)
Code: Select all
FontWidth = pFont->ItemPixelsX;
//Calculate X coordinate of the right edge of this character.
//If it will extend past the right edge, clip the string.
X += FontWidth;
Users browsing this forum: No registered users and 19 guests