• 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

  • 相关阅读:
    k8s环境搭建--基于minik8s方法
    k8s环境搭建--基于kubeadm方法
    Ubuntu 搭建简单的git server
    国密算法--Openssl 实现国密算法(加密和解密)
    国密算法--Openssl 实现国密算法(基础介绍和产生秘钥对)
    Hyperledger Fabric 1.1 -- Policy 构成
    Pycharm 2018.2.1-2018.1
    6-5 链式表操作集
    6-4 链式表的按序号查找
    6-3 求链式表的表长
  • 原文地址:https://www.cnblogs.com/aprilapril/p/2764470.html
Copyright © 2020-2023  润新知