这几天我在Ubuntu上工作。当我使用 gcc 编译 C 程序时,出现错误conio.h不存在。我想使用clrscr()和getch()发挥作用。你能告诉我这个头文件在linux中的替代品吗?
我正在尝试用C语言编写程序(Windows中的代码::块).我已经添加了下面的头文件,它编译没有错误,但是当它运行代码时,它会抛出一个错误未定义的引用gotoxy.找到完整的代码.我遇到gotoxy语句时会出现错误.
# include<stdio.h>
# include<conio.h>
# include<malloc.h>
# include<stdlib.h>
# include<windows.h>
#include<dos.h>
struct node
{ int data;
struct node *link;
};
void append(struct node **,int);
void in_begin(struct node **,int);
void del(struct node **,int);
void in_middle(struct node **,int,int);
int count(struct node *);
void display(struct node *);
char ans;
int main()
{ struct node *p; /* p can be said as the head or a start ptr */
p=NULL;
/* Printing the menu */
int num,loc;
char choice;
do
{ //clrscr();
printf("PROGRAM …Run Code Online (Sandbox Code Playgroud)