简体   繁体   English

如何开始? 使用C的简单文本编辑器

[英]How to get started? Simple text editor with C

I have to do a simple text editor using the c language. 我必须使用c语言做一个简单的文本编辑器。 But I don't know how to get started. 但是我不知道如何开始。 The program should begin with a blank screen, waiting for the user to write something. 该程序应以黑屏开始,等待用户写东西。 The user is also able to move the cursor using the arrow keys and the user is also able to load text files to the program from his hard drive and also make a text file of something the user has written in the program. 用户还可以使用箭头键移动光标,并且还可以从其硬盘驱动器将文本文件加载到程序中,还可以创建用户已在程序中编写内容的文本文件。 He can load something by pressing CTRL-O or he can press CTRL-S to save something followed by the name of the text file. 他可以通过按CTRL-O加载某些内容,也可以按CTRL-S来保存某些内容,后跟文本文件的名称。 Our professor said that we have to use the library screenUtils to make the cursor move. 我们的教授说,我们必须使用库screenUtils来移动光标。 How should I start? 我应该如何开始? I'm trying to make this work for 3 hours but nothing really works. 我正在尝试使此工作持续3个小时,但没有任何效果。

Our professor said that we have to use the library screenUtils to make the cursor move. 我们的教授说,我们必须使用库screenUtils来移动光标。 How should I start? 我应该如何开始?

I would start by reading the documentation for this library. 我将从阅读该库的文档开始。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM