Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit f99b493

Browse files
committed
upd: syntax update & rename the application name
1 parent 38de4a4 commit f99b493

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ As default, app.cpp has `main` function. You can start to develop from here.
88
Same as ususal C++ application, `main` function takes following parameters.
99
app.py has a function `main`
1010

11-
- int argc: The number of parameters. (including program name.)
12-
- char *argv[]: The array of char pointer.
11+
- `int argc`: The number of parameters. (including program name.)
12+
- `char *argv[]`: The array of char pointer.
1313

1414
## How to output result
1515
You can use `cout`, `printf`, etc.

README_ja.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ srcフォルダ以下の*.cppファイルを編集することでCLIアプリケ
99
通常のC++アプリケーションと同じです。
1010
main関数の引数として
1111

12-
- int argc: 引数の総数(プログラム名を含む)
13-
- char *argv[]: 引数の文字列を指すポインタの配列
12+
- `int argc`: 引数の総数(プログラム名を含む)
13+
- `char *argv[]`: 引数の文字列を指すポインタの配列
1414

1515
が渡されます。
1616

@@ -29,4 +29,3 @@ cout、printf等標準出力に出力する任意のメソッドが使用可能
2929
(出力ファイル名を変更した場合はenv/APP_COMMANDセクションも変更が必要です。)
3030

3131
buildをc++からclangに変更することで、(C++ではない)純粋Cアプリケーションも作成可能です。
32-

cli-template.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build:
2-
- c++ -o myapp.o src/*.cpp
2+
- c++ -o theapp.o src/*.cpp
33
files:
44
- .gitignore
55
- src/app.cpp
66
main: src/app.cpp
7-
command: ./myapp.o
7+
command: ./theapp.o

codecheck.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
build:
2-
- c++ -o myapp.o src/*.cpp
2+
- c++ -o theapp.o src/*.cpp
33
env:
4-
APP_COMMAND: ./myapp.o
4+
APP_COMMAND: ./theapp.o
55
test: mocha

0 commit comments

Comments
 (0)