•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the C++ section within the Software Development category of DaniWeb, a massive community of 423,804 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,735 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our C++ advertiser: Programming Forums
Views: 312 | Replies: 8
![]() |
The forum is littered with examples, it shouldn't take too long to find something.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
•
•
•
•
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.
Well if you wanna make subs as you call them read functions for c++
This link below might help.
http://www.devarticles.com/c/a/Cplus...ons-in-C-plus/
User, n. The word computer professionals use when they mean "idiot." ~Dave Barry
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation:
Rep Power: 11
Solved Threads: 185
> 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.
I'd be surprised if you couldn't find an example on every page.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
Do not PM me for help; You'll be ignored, or told to learn to read.
Do not ask me if I'm muslim - I'm not. Nor do I care about yours or anyone else's mysticism. Religion is a matrix, take the RED PILL.
•
•
Join Date: Oct 2006
Location: the Netherlands
Posts: 1,776
Reputation:
Rep Power: 11
Solved Threads: 185
•
•
Join Date: Jun 2006
Posts: 81
Reputation:
Rep Power: 3
Solved Threads: 8
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.
hope I get your question correctly.
![]() |
•
•
•
•
•
•
•
•
DaniWeb C++ Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Passing arrays between subs (VB.NET)
- can you hook a computer up to a receiver for surround sound? (Troubleshooting Dead Machines)
- Tell us about yourself! (Community Introductions)
- 1000 MB Space 100 Gigs file transfer Unlimited Subs-Email 3.50 mo.With Cpanel (Web Hosting Deals)
- File parsing in 'C' (C)
- need help to debugg this code please! (C++)
- passing arrays in visual basic (Visual Basic 4 / 5 / 6)
- adding totals in listboxes (Visual Basic 4 / 5 / 6)
Other Threads in the C++ Forum
- Previous Thread: Run C# from C++
- Next Thread: Returns null pointer



Linear Mode