When using the GCC compiler for program development, we often encounter some problems in the compilation process, such as why the “-c” option is added, and why the generated executable file cannot be executed. This blog will introduce these problems in detail, and give corresponding codes and explanations to help readers better understand the “-c” […]
Tag: argc
Example explanation of the line parameters (argc, argv) of the main function
Directory foreword 1. Problem description 2. The meaning of line parameters 3. Topic application 1. Code (focus on Chinese comments) 2. Execute the test Foreword When doing the problem set–plurality of CS50 Week3, I encountered two line parameters (int argc, string argv[]) in the main function, which caused the code to be unclear at once. […]