From 33e584ab5cf394fcecaf8e277ca7156345e4eda4 Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Wed, 27 Jul 2022 19:31:14 +0800 Subject: [PATCH] :memo: add doc to help you create `visual studio` project. --- README.md | 2 ++ doc/README_zh.md | 2 ++ doc/vs.md | 9 +++++++++ 3 files changed, 13 insertions(+) create mode 100644 doc/vs.md diff --git a/README.md b/README.md index 8ff3290..74ff242 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,8 @@ If you think `-O3` isn't that safe and stable, you could choose: > > mingw32-make stable-release-mingw +You could create project in `Visual Studio` by this way: [CLICK](./doc/vs.md). + ## __How to Use__ First we should learn how to write and run a program using this language, diff --git a/doc/README_zh.md b/doc/README_zh.md index 05002bd..f5fa575 100644 --- a/doc/README_zh.md +++ b/doc/README_zh.md @@ -92,6 +92,8 @@ __`linux/macOS/Unix`__ 平台直接使用make即可: > > mingw32-make stable-release-mingw +你可以在`Visual Studio`中用这种方式来创建项目:[点击跳转](../doc/vs.md)。 + ## __使用方法__ 首先我们要通过[__教程__](#教程)知道这个语言的语法以及如何使用这个解释器来运行nasal程序。 diff --git a/doc/vs.md b/doc/vs.md new file mode 100644 index 0000000..f1ebbfd --- /dev/null +++ b/doc/vs.md @@ -0,0 +1,9 @@ +# How to Create VS project | 如何创建VS工程 + +1. Get code from this repo using `git`. | 用`git`从这个仓库获取代码。 + +2. In Visual Studio, click `File`->`New`->`Project From Existing Code...`. | 在VS的界面,点击文件(F)->新建(N)->从现有代码创建项目(E)。 + +3. Select `Visual C++`->`Next`->choose `project file location`->write the `project name` at ease->`Finish`. | 选择创建`Visual C++`项目->下一步->项目文件位置选择你下载的代码存放的文件夹->填项目名称,随便写->完成。 + +4. Click `Source Files` in `Search Solution Explorer` at left, right click `main.cpp`, compile. | 点开左侧解决方案资源管理器中的`Source Files`,右键点击`main.cpp`,编译。