i have two questions,please dont tell me that i violate dani web ruls because of my long
questions thank u.
one:
i wrote a program in c,and i compiled it(in borland c),it had no errors(so far so good)
then i run it and errors such as:
linker error:undifined symbole_line in module
came up,now[waht can i do(britney spears] .
in bellow are some parts of my program.(sperate parts)
#include <graphics.h>
...................................................
¦ setcolor(RED);
¦ line(0,0,620,0);
¦ line(0,0,0,470);
¦
¦
¦
¦int gm=DETECT,gd;
¦void main(){
¦ initgraph(&gm,&gd,"d:\\newfol~1\\borlandc\\bgi");
¦
+-[¦]------------------------------ Message -----------------------------1-[?]-+
¦ Linking NO.EXE: ?
¦ Linker Error: Undefined symbol _line in module NO.CPP ¦
¦ Linker Error: Undefined symbol _setcolor in module NO.CPP ¦
¦ Linker Error: Undefined symbol _circle in module NO.CPP ¦
¦•Linker Error: Undefined symbol _initgraph in module NO.CPP ¦
and the other question.
#include<stdio.h>
void main (){
clrscr();
gotoxy(50,20);//one
printf("*");
gotoxy(0,0);//two
printf("*");
getch();
}
when i wrote this program,it printed two stars next to each outer in the end of page
then i changed the place of two gotoxy and,program wrote them in right place?!!
thnx a lot.