write_and_run_your_programs
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
write_and_run_your_programs [2018/05/14 18:44] – yutaka | write_and_run_your_programs [2018/05/14 19:05] – yutaka | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Write and run your programs ====== | ====== Write and run your programs ====== | ||
+ | |||
+ | By Yutaka Masuda | ||
In the course, we will use a remote server to write and run (execute) your program. | In the course, we will use a remote server to write and run (execute) your program. | ||
Line 107: | Line 109: | ||
* When starting the editor, you are in the command mode which accept the command to action such as exit the program, save a file, search a text etc. | * When starting the editor, you are in the command mode which accept the command to action such as exit the program, save a file, search a text etc. | ||
- | * To input the text, push '' | + | * To input the text, push a single key '' |
- | * To save the file, hit Esc key to come back to the command mode, type '': | + | * To save the file, push '' |
* To edit the file again, push '' | * To edit the file again, push '' | ||
* You have to move to the edit mode and come back to the command mode repeatedly to finish the program. Then type '': | * You have to move to the edit mode and come back to the command mode repeatedly to finish the program. Then type '': | ||
- | |||
- | {{: | ||
You should know which which model are you currently working. | You should know which which model are you currently working. | ||
+ | |||
+ | {{: | ||
Hints: | Hints: | ||
- | * If you get lost, hit the Esc key (on the top left of the keyboard) a few times so you will move to the command mode. | + | * If you get lost, hit the '' |
- | * The simplest way to quit vi: hit the Esc key many times, type '': | + | * The simplest way to quit //vi//: hit the Esc key many times, type '': |
===== Write, compile, and run the first program ===== | ===== Write, compile, and run the first program ===== | ||
Line 145: | Line 147: | ||
Let's compile it. | Let's compile it. | ||
// | // | ||
- | We have a compiler, named '' | + | We have a compiler, named '' |
+ | We would use a different compiler so please ask the lecturer which compilers are available. | ||
Call the compiler with your source file. | Call the compiler with your source file. | ||
- | | + | |
If there is no problem, you will not get any message from the compiler. | If there is no problem, you will not get any message from the compiler. | ||
Line 176: | Line 180: | ||
The following example creates '' | The following example creates '' | ||
- | | + | |
You can execute it. | You can execute it. | ||
Line 189: | Line 193: | ||
This is useful when you compile modules and subroutines in a separate file. | This is useful when you compile modules and subroutines in a separate file. | ||
- | | + | |
write_and_run_your_programs.txt · Last modified: 2024/03/25 18:22 by 127.0.0.1