include #include #include // for various functions of strings like gets or puts #include // for files #include #include #include void starting(); void typing(); void openfile(char *); void newfile(char *); void print(char i[],int x,int y); char ch ; char s[20]; char xs[20]; char ys[20]; void main() { clrscr(); textmode(BW40); print(" MY NOTEPAD ",3,14); print(" Presented",6,14); print(" By ",7,17); print("Tyler Levell",8,13); textmode(BW80); starting(); typing(); getch(); } void starting() { textcolor(1); textbackground(WHITE); clrscr(); for(int i=0 ;i<45;i++) {if(i==0||i==44) cout<<"||"; else if(i==4) cout<<" ctrl+O(Open file)"; else if(i==24) cout<<" ctrl+n(New file)"; else cout<<"=";} gotoxy(80,24); cout<79) {row++;col=col-79; } continue; case 72 : row--; //upper arrow key continue; case 77 : col++; continue; //right arrow key case 75 : col--; continue; //left arrow key case 80 : //down arrow key row++; continue; case 14 : clrscr(); //to creat new file ctrl+n cout<<"Enter File`s Path "; gets(s); newfile(s); starting(); break; case 15 : clrscr(); //to open existing file ctrl+o cout<<"Enter file`s path to be open :" ; gets(xs); starting(); openfile(xs); continue; case 11 : clrscr(); gotoxy(20,3); cout<<"~`~`~`~`~ HELP PORTION ~`~`~`~`~"; gotoxy(20,4); cout<<"Following Are the Keys Used in My-Note PAD : "; int za=10; for(int i=0;i<46 ;i++ ) { gotoxy(za,5); cout<<"=";za++;} za=6; for(i=0;i<15;i++) {gotoxy(10,za); cout<<"|"<