Basic knowledge

来源:互联网 发布:数据库更新语句 编辑:程序博客网 时间:2024/06/07 13:55

GNU compiler:

G++ ProgramTest.cc -o ProgramTest(Unix)

Default no "-o" parameter compile to a.out

G++ ProgramTest.cc -o ProgramTest.exe(Windows)

Default no "-o" parameter compile to a.exe

Microsoft compiler:

Cl -GX ProgramTest.cpp

 

All c++ program files:

.cc .cxx .cpp .cp .c

 

Unix command example:

$ CC prog1.cc

$ a.exe

$ ./a.out

$ echo $?

 

Windows:

C:/>Echo %ERRORLEVEL%

 

 

 

Terminology:

argument

block

buffer

built-in type( int, etc.)

cerr

cin

class

class type

clog

comment

condition

cout

curly brace("{", "}")

data structure

edit-compile-debug

end-of-file

expression

for statement

function

function body

function name

header

if statement

iostream

istream

library type

main function

manipulator(e.g. std::endl)

member function

method

namespace

ostream

parameter list

preprocessor directive

return type

source file

standard error

standard input

standard library

standard output

statement

std

string literal"agdasgdghhdaelwektjq..."

uninitialized variable

variable

while statement

()operator

++operator

+=operator

.operator

::operator

=operator

<<operator

>>operator

==operator

!=operator

<=operator

<operator

>=operator

>operator

0 0
原创粉丝点击