From: P DOT Koshevoy AT m DOT cc DOT utah DOT edu (Paul Koshevoy) Newsgroups: comp.os.msdos.djgpp Subject: Re: Virtual memory exceeded in `new' - leave2.cpp (0/1) Date: Thu, 19 Sep 1996 06:20:27 GMT Organization: University of Utah Lines: 460 Message-ID: <51s33m$8ei@news.cc.utah.edu> References: <51s2qo$8ei AT news DOT cc DOT utah DOT edu> NNTP-Posting-Host: ctsasync55.cc.utah.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Here is the source code: #include #include #include #include #include #include #include "question.h" #include extern char * my_pick4(char *, char *, char *); extern char * get_part(char *, int, int); extern int my_strncmp(char *, char *, int, int); extern void report_error(char *); extern char * get_skeeps(char * sample,char * sample2, int &n); extern char * get_sample(char ** content, int num); extern char * get_sample2(char ** content, int num); extern void show_sample(char * sample, int pos, int len); extern void move_cur_to(int x,int top); extern void move_cur_from(int x); ofstream debug("debug.txt",ios::out); int check(char ** content, int num, char * buff) { for(int i=0; i4) x--; else if(top>0) { top--; show_sample(sample,sample2,top,len); } continue; } if(key==right) { move_cur_from(x); if(x+1<77 && x+1