Windows弹出窗口:TeleDir.exe已停止工作(Code :: Blocks)

时间:2017-04-11 15:38:24

标签: c++ codeblocks

提前感谢您看一下。

当我尝试运行此程序时,我收到了Windows错误消息,我在C编写了Code :: Blocks。有趣的是它编译得很好,如果我降低了测试程序的上限,那么程序运行也很好。

详细说明:

当我尝试运行该程序时,首先我得到一个Windows弹出窗口,其中显示" X.exe已停止工作。 Windows正在检查问题的解决方案"。不久,这个更改为" X.exe已停止工作。一个问题导致程序停止正常工作。 Windows将关闭程序并在解决方案可用时通知您。 (关闭计划)"我单击关闭程序按钮,然后我看到命令提示符,其中显示"处理返回-1073741819< 0xC0000005>执行时间11.151 s按任意键继续"。

我有Windows 7-64位。

我正在使用GNU GCC编译器。

以下是代码:

COORD coord={0,0};
void gotoxy(int x,int y)
{
    coord.X=x;
    coord.Y=y;
    SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coord);
}

char *getname()
{ return name; }
char *getphno()
{ return mobile; }
int compare(char nm1[20])
{ if(strcmp(nm1,name)==0)
    return 1;
  else
    return 0; }
void update(char *nm,char *teleno){
strcpy(name,nm);
strcpy(mobile,teleno); }

char name[30];
char mobile[11];

public:
//MENU FUNCTIONS
void user_menu();  //to display the user menu
void admin_menu(); //to display the admin menu
void programmer_menu();

//WELCOME FUNCTIONS
void welcome();    //to display the welcome screen
void user();       //to display the user login
void admin();      //to display the admin login
void login();
void login1();
void programmer();

//OUTER FUNCTIONS
void add();        //to insert new number in TD
void display();    //to display all numbers in TD
void search();     //to perform searching in TD
void edit();       //to edit the Number in TD

//INNER FUNCTIONS
void showdata();   //to show data in TD
void search1();    //to search by name in TD
void search2();    //to search by number in TD
void modify();     //to modify the record of TD
void dele();       //to delete the record of TD
void code();       //to display the source code of TD
void password();

0 个答案:

没有答案
相关问题