ผมเขียนใน Microsoft Visual C++6.0 ครับแต่เขียนเป็นภาษาซีโปรแกรมผมจะเป็น เช่น Test.c ตอนผมเขียนโปรแกรมธรรมดา ที่ใช้แค่ #include "stdio.h" ก็ complie ได้ปกติครับ แต่พอเขียนโปรแกรมที่ ต้องใช้ getch,clrscr, ดังตัวอย่างละครับ ทำไมไม่ผ่าน ต้องแก้ไขอย่างไรครับ รบกันผู้รู้แนะนำด้วยนะครับ ว่ามันเกิดจากอะไร แก้อย่างไรครับ
#include "stdio.h"
#include "conio.h"
void main()
{
char ch;
clrscr();
printf("Enter Charactern:");
ch=getch();
printf("nDisplay%c",ch);
getch();
}
ส่วนที่ฟ้อง error ครับ
--------------------Configuration: to - Win32 Debug--------------------
Linking...
to.obj : error LNK2001: unresolved external symbol _clrscr
Debug/to.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
to.exe - 2 error(s), 0 warning(s)


Reply With Quote
