Question: (c++) You need to write a program similar to NOTEPAD. The program will allow the user to type anything he/she wants. Letters, digits, special characters.

(c++) You need to write a program similar to NOTEPAD. The program will allow the user to type anything he/she wants. Letters, digits, special characters. In as many rows as he/she wants.

The user then can save the text he/she wrote, then later on load it to continue working on. Your program should allow the user to do the following:

-Navigate the screen using the arrow keys (go up if there is text above the cursor and down if there is text below cursor, right if there is text on the right side of cursor and left if there is text on left side of cursor: linked list)

-Cursor can not go outside screen.

-User can save the document on disk in text format

-User can load item from a file into the editor. So if I have my own TEXT file, I can load it into your editor to read it and edit it

-User can manipulate text by adding, deleting, copy/pasting....etc.

-Display a menu with the options/commands the user can use to operate your editor

**Make sure you use your own code, do not use any reserved functions from external libraries.

Use this code to manipulate the interface:

#include "stdafx.h"

#include

#include

using namespace std;

void gotoxy(int x, int y) {

COORD pos = { x, y };

HANDLE output = GetStdHandle(STD_OUTPUT_HANDLE);

SetConsoleCursorPosition(output, pos);

}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!