I am trying to make a reference program that you can use to access any element of the periodic table based on its name, symbol, atomic number, or atomic mass. It is more than one file, and I need a way to return to main if the user wants to. How can I do that without actually making a function call to main()? all i want to do is make the program restart from the very beginning.
Rickay
-5
Junior Poster in Training
Recommended Answers
Jump to Postmain() IS the entrypoint of the program. Its like saying, "I would like to ride around the block on a bike, but skip getting on the bike".
Why is it more than one file? Can you combine all the functions into one file, or just use headers to contain …
Jump to PostI am using headers to include all of the functions, but I cannot wrap a loop around an entire program that is contained in more than one file. But I figured it out, I made a duplicate function called main1() and included the same syntax as that in main(), and …
All 6 Replies
dylank
0
Junior Poster in Training
Rickay
-5
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
Rickay
-5
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
dylank
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.