I've only done relatively simple console-based C++ programming and I've never used any parameters in the main() function. However, I see it quite frequently or every so often in sample or other people's code.
int main(int argc, char* argv[]) { ... }
What the hell is it for? :rolleyes: And why don't I see people actually using argc or the array argv[] in their program!
Thanks :yes: Hmm, there is probably no good reason I want to know this other than curiosity, heh... :rofl:
Hopefully this will fix the issue of no sound I have since last months stupid, and non-removable, Microsoft Corporation AudioProcessingObject Driver Update (1.0.3.56670)
It IS confusing!
What channel are you in on each device?
I'm guessing your 16GB device is on Experimental (formerly known as Dev) and your 128GB is on Beta.
First time clicking on a Sayan Sen article after he started making clickbait, vague headlines recently. Didn't read, just came here to say the headline doesn't look like very cheap, vague clickbait this time. Are you okay?
Recent Achievements
Supreme Spray LV earned a badge Week One Done
Genuinetonerink- Dubai earned a badge One Month Later
Genuinetonerink- Dubai earned a badge Week One Done
Question
fault
Hey,
I've only done relatively simple console-based C++ programming and I've never used any parameters in the main() function. However, I see it quite frequently or every so often in sample or other people's code.
int main(int argc, char* argv[]) { ... }What the hell is it for? :rolleyes: And why don't I see people actually using argc or the array argv[] in their program!
Thanks :yes: Hmm, there is probably no good reason I want to know this other than curiosity, heh... :rofl:
Link to comment
https://www.neowin.net/forum/topic/190198-c-int-mainint-argc-char-argv/Share on other sites
11 answers to this question
Recommended Posts