C++ Console Lesson 48: The main() Function

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
10,765
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Sep 9, 2010

http://xoax.net/

Additional info:
http://xoax.net/comp/cpp/console/Lesson48.php

In this C++ video tutorial, we explain the various versions of the main() function and demonstrate how to pass arguments to the main() function.


Please refer all questions to our forum:
http://xoax.net/forum/

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 1 dislikes

Link to this comment:

Share to:

Top Comments

  • Wow, very nice! Thank you very much, finally someone has described how to pass in and why to pass in the strings :-)

  • Very good indeed, glad you come back with new video and don't listen to stupidity come from frustration

see all

All Comments (18)

Sign In or Sign Up now to post a comment!
  • In Windows 7, is not behaving as expected (at least in my computer)

    the endl appear not to be working you can see the Argument1, an Argument2 but not into a new line (Why)? everything is pileup together

  • short main()?

  • I love this viedo verymuch

  • @SuperFeimer according to stroustrup, NO! just NO!.

  • @t2thei no, main should return a value! main is an integer function, it should return an integer.

  • C++ Win32 Lesson 12 please.

  • @Techn0Junki3

    some compilers might complain about the void but main() doesn't need a return 0; even if it's int main(). the standard says it, main() doesn't need a return.

  • @Techn0Junki3 The only time you need main to return a value is if you need another program to know if your program did something properly. But since there is no way someone that isn't working on a MAJOR program you don't need it. Things that return value are usually only used in OS functions.

  • isnt void main() considered bad programming????

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more