this is my program
这是我的计划
#include <ncurses.h>
int main( int argc, char *argv[] )
{
initscr();
FILE *fd;
char *ProgFile;
ProgFile = argv[1];
printw(ProgFile);
refresh();
fd = fopen(ProgFile,"rb");
if( fd==NULL )
{
printw("error");
perror ("The following error occurred");
refresh();
}
else
{
printw("bin file loaded: '%s'",ProgFile);
refresh();
}
getch();
endwin();
return 0;
}
#include <ncurse