Category : ascii

How to read an ASCII STL file cubea.stl to print it to a file output.dat? I wrote a part of the program, but this main.cpp doesn’t work. I’m probably missing some programs in main.cpp. main.cpp #include <ctype.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "cubea.stl" #include "output.dat" #define MAXLINE 128 #define PSLD "SOLID" #define PNML ..

Read more

#include <stdio.h> int main() { char c = 125; c = c + 10; printf("%d", c); return 0; } The output of this code is -121. How this output is -121? Can you please explain? If I add 100 instead of 10 with c then output is -31. Why? Source: Windows Que..

Read more