zoukankan      html  css  js  c++  java
  • code::blocks

    ___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

    ----------------------------

    http://blog.csdn.net/jgood/article/details/5252119

  • 相关阅读:
    抽象工厂例子
    学习boost::asio一些小例子
    boost::asio学习(定时器)
    共享内存
    网络流程图
    粘包
    端游服务器群
    38 写一个函数,求一个字符串的长度,在main函数中输入字符串,并输出其长度。
    37 有n个人围成一圈,顺序排号,从第一个人开始报数(从1到3报数),凡报到3的人退出圈子,问最后留下的是原来第几号那位.
    36 有n个整数,使其前面各数顺序向后移n个位置,最后m个数变成最前面的m个数
  • 原文地址:https://www.cnblogs.com/aprilapril/p/2764470.html
Copyright © 2011-2022 走看看