int main(int argc, char* argv[ ]) vs int main()

Started by
7 comments, last by Rob Loach 20 years, 11 months ago
Is there any noticable difference? I''m currently using just int main() for convenience. - Rob Loach Current Project: Go Through Object-Oriented Programming in C++ by Robert Lafore "Do or do not. There is no try." - Yoda
Rob Loach [Website] [Projects] [Contact]
Advertisement
There''s no difference if you don''t want to use the command line parameters....

[twitter]warrenm[/twitter]

One doesnt work with arguments (?)
New question!!

int main() { ... }

vs

short main[] = {1, 2, 3, 4, 5, 6};

I do dis:


  void main(){}  


It kicks major-league ass.
It''s also not allowed by the C++ standard.

How appropriate. You fight like a cow.
Clicky.
quote:Original post by kordova
Clicky.

Given Fucho''s recent posts, it''s clear he programs in C++.

How appropriate. You fight like a cow.
I assumed that, but provided it as evidence for your statement. Cheers!

This topic is closed to new replies.

Advertisement