Lab 01
Lab 01
1/4
National Chiao Tung University UEE1302(1066) Laboratory Manual 01
Department of Electrical Engineering September 17, 2012
Computer Intelligence on Automation (C.I.A.) Lab Prof. Hung-Pin(Charles) Wen
//File:_lab_1-1.cpp
#include_<iostream>
using_namespace_std;
↵
int_main()
{
____cout_<<_”Hello,_world!”_<<_endl;
↵
____return_0;
}
To switch from the insert or visual mode to the command mode, type <Esc>.
To switch from the command mode to the insert mode type one of
i switch to insert mode before the current position
a switch to insert mode after the current position (append)
I jump to the first non-blank character in the current line and switch to the insert
mode
A jump to the last character of the current line and switch to the insert mode
To switch from the command mode to the visual mode type one of
v switch to the visual mode (character oriented)
V switch to the visual mode (line oriented)
Ctrl-v switch to the block-visual mode (select rectangles of text)
All commands that take a range (for example substitution, delete, copy or indentation)
work with the visual mode too.
Related instruction
i,l,o,O,a,A,r,R Normal mode to Insert mode
:,/ Normal mode to Command mode
hjkl Move the cursor to the left, down, up, right, respectively.
These also take a count: '8l' moves the cursor 8 letters to the
right.
2/4
National Chiao Tung University UEE1302(1066) Laboratory Manual 01
Department of Electrical Engineering September 17, 2012
Computer Intelligence on Automation (C.I.A.) Lab Prof. Hung-Pin(Charles) Wen
wWbB Move forward ('w' and 'W') or back ('b' and 'B') by a word.
'w' and 'b' treat anything non-alphanumeric as a word
delimiter; 'W' and 'B' honor only white space.
}{ Move to end of current or previous paragraph, respectively.
)( Move to end of current or previous sentence, respectively.
xX Delete the current word or the word before the cursor.
dd Delete a line.
u Previous step
3/4
National Chiao Tung University UEE1302(1066) Laboratory Manual 01
Department of Electrical Engineering September 17, 2012
Computer Intelligence on Automation (C.I.A.) Lab Prof. Hung-Pin(Charles) Wen
>./exercise_1-1 ↵
I_am_Jeremy Lin.
My_student_number_is_9923501.
I_like_C++_programming_very_much.
>
Instruction Help
man_<required_instruction>
>man_mv ↵
cat_<required_instruction>
4/4