Dev-based command-line debugging

Source: Internet
Author: User

This is useful in using the main function parameter.

    • Find the Dev-cpp installation location in the computer (perhaps C:\Program Files(x86) )

    • Poke in, in the Dev-cpp directory inside search bin folder address, and remember (or do not remember also line, wait to use again to find =.=)

    • Right-click My Computer, select Properties

    • Select Advanced System Settings

    • Select environment variable (in the lower part of the popup box)

    • Point Path after Dot edit

    • Put the first ones 地址 and 加上\bin的地址 all new into this box

    • Various OK Save ~

    • Menu key +r input cmd open command line
    • The input g++ -o exeName CppFileAddress address can be dragged into the
    • Then enter EXEName to execute
      • Like what
//2.cpp#include <iostream>int main(){    std::cout<<"Hello World"<<std::endl;    return0;}

fighting~

Other than that
Mac is a lot easier.

References and other versions how to use

The recent Huawei Challenge (the main function passed in parameters) uses
you can clear the result first and see if it works .

There are some places that are not clearly written.

Someone really is. Copy it up.

Then I'll throw it in the c:/root directory and show it again HHH

Why haven't you reacted yet?

Dev-based command-line debugging

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.