-
C\c++ Borland 5.02
i am having a problem with the statement printf
for some reason it wont work in borland 5.02 but fprintf will
i try to define something and it wont work can someone help me?
#define REVERSE fprintf("\033[Jm")
the bloody fprintf wont be recognized what am I to do???
-
What do you mean not recognized? What is the error message?
fprintf requires a FILE* as first parameter.
-
ok well just checked now and it works. this is the code
----------------------------------------------
# include <stdio.h>
# define REVERSE printf("\033[7m")
# define NORMAL printf("\033[0m")
# define CLS printf("\033[2J")
void main()
{
CLS;
REVERSE;
printf("1. A");
NORMAL;
printf("verage");
}
-----------------------------------------
why does dos when i run the .exe display this
<-[2J<-[7m1. A<-[0average
i understand why it displays the 1. A average
but whats with the other crap? does dos not support that macros?
**bee please check your PM
thanks