Damn, I am in dire need of sarcasm tag on this forum.
Actually you can do it: download gcc sources, find where main function referenced, change it to whichever you need, compile and you have non-standard compliant compiler which use something else as entry point insted of main().
That could be an option, yet I'm looking for a more logical solution
What do you mean by that?
For that matter, what do you mean by your original question? Every program must have an entry point, and that entry point is the main function. Please could you be more specific about what you're trying to achieve here?
That could be an option, yet I'm looking for a more logical solution
What do you mean by that?
For that matter, what do you mean by your original question? Every program must have an entry point, and that entry point is the main function. Please could you be more specific about what you're trying to achieve here?
Thanks for your reply Mike. I'm using this code to replace a dot for a comma and sets 2 decimal places (a specific program needs to use this cpp as a routine). This is based on an entry point. My question; how does this code look like if it doesn't make use of an entry point? In other words, not making use of the main function.
Excuse me if I'm not clear enough, I'm quite new with CPP :)
Thanks for your reply Mike. I'm using this code to replace a dot for a comma and sets 2 decimal places (a specific program needs to use this cpp as a routine). This is based on an entry point. My question; how does this code look like if it doesn't make use of an entry point? In other words, not making use of the main function.
I have no idea what you are trying to say! Can you please explain yourself, what are you attempting to do?