Debug C/C ++ code with vc6 Parameters

Source: Internet
Author: User
1. Preparations

Use vc6 to create a c file,CodeAs follows:

# Include <stdio. h> int main (INT argc, char * argv []) {int I; for (I = 1; I <argc; I ++) printf ("% S % s", argv [I], (I <argc-1 )? "": ""); Printf ("\ n"); Return 0 ;}
2. Set Parameters

Enter a string in program arguments and separate them with spaces.

 

3. Set the breakpoint to start debugging.

Press F5 and enter argv [1] and argv [2] In the observation window in the lower right corner to view the parameter string.

 

 

4. Release the version ProgramRun with Parameters

Choose build> batch build> rebuild all from the menu.

You can generate the release program and copy the program to the directory to be executed.

Run the program with parameters to see the execution result.

 

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.