___my code blocks int 4bytes
___set main paramter ,your input starts from argv[1]
argv[0] is, by convention,the name by which the program was invoked(eg, 路径\temp.exe).
With code::blocks you can set your command line arguments like this in the menu:
Project > Set programs' arguments...
___________________________________________----
------------------Debug shortcut------------------------
debug: F8
continue debugging: ctrl + F7
step over a code block: F7
step into a code block: shift+F7
step out of a code block: ctrl+shift+F7
toggle breakpoint: F5
run to cursor: F4
previous error: Alt+F1
next error: Alt+F2
completing code shift+D
------------------------------------------------------------------------------------------
2. Workspace interface and structure
2.1 workspace and projects
In CodeBlocks, multiple projects can be open.
Complex software systems consist of components which are managed in di
erent Code-Blocks projects. Furthermore, with the generation of such software systems, there are
often dependencies between these projects.
Example
A project A contains fundamental functions which are made available to other projects in
the form of a library. Now, if the sources of this project are modied, then the library has
to be rebuilt. To maintain consistency between a project B which uses the functions and
project A which implements the functions, project B has to depend on project A. The
necessary information on the dependencies of projects is stored in the relevant workspace,
so that each project can be created separately. The usage of dependencies makes it also
possible to control the order in which the projects will be generated. The dependencies for
projects can be set via the selecting the menu 'Project' !'Properties' and then clicking
the 'Project's dependencies' button.
2.2
1.11.4 Switching between perspectives
By using the command line option --personality=ask during the start of CodeBlocks,dierent settings can be selected.
To save a perspective, select the menu 'View' !'Perspectives' !'Save current' and enter a
name at <name>.
The command 'Settings' !'Editor' !'Keyboard shortcuts' !'View'!'Perspectives' !'<name>' allows a keyboard shortcut to be defined for this process.
This mechanism makes it possible to switch between dierent views by simply using hot keys.
Note:
Another example is editing a file in Full Screen mode without symbol
bars. You can create a perspective such as 'Full' and assign a hot key
for this purpose
2.3
1.11.5 Switching between projects
Alt-F5 Activates the previous project from the project view.
Alt-F6 Activates the next project from the project view.
F11 Switches within the editor between a source le <name>.cpp and the corresponding header le <name>.h
----------------------------