0

Hey Everyone.
Is there any way to make a sub? For example there's int main(), can I make something else like int menu() and sort of link int main to int menu? I have no idea how to do this.:-/

5
Contributors
8
Replies
9
Views
9 Years
Discussion Span
Last Post by Laiq Ahmed
0

> There's 50 pages, but I'll try and look throught them....
I'd be surprised if you couldn't find an example on every page.

0

Thanks, but is there any way to link to a function or something? not just using it for something like: Add() and stuff.

0

What I understand from your question is that, you want your int menu() function to be the entry point of your program, in C99 Standard its defined that the int main() and int main (int argc, char* argv[]) OR int main (int argc, char** argv) should be the starting point of any program in C, but few compilers let is configurable you can change the options and able to set the entry point to another function like int menu or so.
hope I get your question correctly.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.