May 18, 2012 at 5:43pm UTC
Hi every1
i have more than one application(codes) - calculator,converter,math functions. so how could i compile them together and display a list for the user to chose one of the functions? so that the user can select a function and run that selective code ?
Thanks in forward
Last edited on May 18, 2012 at 5:44pm UTC
May 18, 2012 at 6:03pm UTC
By putting the code for them in different functions and calling those functions as required.
May 18, 2012 at 6:31pm UTC
oh not this again .. i need to know how exactly
May 18, 2012 at 6:40pm UTC
amazing.
Really, don't ever try to learn to code. Obviously you'll never do. (with this attitude)
Last edited on May 18, 2012 at 6:44pm UTC
May 18, 2012 at 6:59pm UTC
was that hard ??
;)
have to work
Peace Volk and Thx
May 18, 2012 at 7:06pm UTC
It was clearly beyond your abilities.
Last edited on May 18, 2012 at 7:07pm UTC
May 18, 2012 at 7:35pm UTC
Last edited on May 18, 2012 at 7:36pm UTC
May 20, 2012 at 7:54pm UTC
guys one more Q
how can i call the main menu the int main ?
its not working
if (input == '0')
{ int main(); }
to go back to the menu
Last edited on May 20, 2012 at 8:08pm UTC
May 20, 2012 at 8:03pm UTC
You're not allowed to call main from your code.
And that isn't a function call.
May 20, 2012 at 8:08pm UTC
in this case how could i allow the user to display the choices again ??
May 20, 2012 at 8:11pm UTC
In your quest to learn C++, I'm sure you've come across the concept of a loop. This would be a great time to employ it.
May 20, 2012 at 8:28pm UTC
yeah it would be grater to tell me how : (
hmm i cant call the main so how can i employ looop
Last edited on May 20, 2012 at 8:33pm UTC
May 20, 2012 at 8:46pm UTC
i didn't use Switch so should i write it again in Switch Statement ?
May 20, 2012 at 8:52pm UTC
i dont want to post my code here for public cause its home work ;)
May 20, 2012 at 9:24pm UTC
If you don't want to post your code on a public forum, please stop wasting the time of those who might help you in the public forum. Pay for a tutor. Use the search function. Learn to google. Exercise your brain.