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:
I grew up a Star Trek fan and never watched Star Wars movies. To this day I've not watched most Star Wars movies. As a result I rarely get these references, I have no idea what this post means.
Given the popular reactions these get I have to accept I missed out.
Spotify really have turned in to a butthole of a company. Assuming this isn't a bug then this is a low act for Premium users.
Honestly, YT Premium which includes YT Music is a genuine alternative.
In any event, the internet enshitification continues unabated...next up, the banning of VPN's.
This is why skepticism and fully reviewed science is the only path to truth.
It isn't rigid in its beliefs, rather it changes its views based on scientific discoveries.
Recent Achievements
JuvenileDelinquent earned a badge Dedicated
DrWankel earned a badge First Post
DrWankel earned a badge Reacting Well
Supreme Spray LV earned a badge Week One Done
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