Hey all,
I was wondering since there are Objects, Classes, Properties, Events and Methods and the like in OOP what is a main function, is that like
Also, what does it do?Code:int main ()
Thanks.
If you are referring to a language like C. The main function is a special function that is run first when a program executes. One usually tries to manage the other functions and the rest of the program from the main function. Wiki has some readings: http://en.wikipedia.org/wiki/Main_function_(programming)
Perfection of means and confusion of ends seem to characterize our age. Albert Einstein
C++ is not restricted to pure OOP. You would do better to think of it as procedural programming that supports OOP, rather than just as OOP. int main() is simply a function.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks