Hey there!
When coding programs and trying to separate them into functions I usually get stuck to make the program flow from function to function. I really want to know how you guys code the programs, how do you separate them and make them work? Do you make functions called: "Get", "Set"? Here's something I was coding just to try to learn how to make the program move with functions.
hiya.
I'm not really sure what you mean sorry. I can see you've written 2 functions, one called "generateArithmetic" and one called "generateNumber", but you don't actually seem to use them at all.
1. You ask the user for 2 names. And that's it.
2. You have a function that generates a number based on a "current level". I dont know what that is.
3. you have another function that is supposed to return a character, but you always return zero.
4. you have another function that checks a level but does not.
So yea, I appreciate it's unfinished code, but based on the fact you've told us nothing and all the main is doing is asking for 2 strings (and none of your functions actually take 2 strings), what exactly do you want your program to do?
You define strings and have no string header the sting Libary is part of the C++ standard libary
And the flow of functions normally calls and returning the value and using it in main function or printing text from another function using void which returns nothing
So what is the purpose of the programme and I might be able to tell you how the flow of functions work
@mutexe:
I'm not trying to finish the code, nor trying to do something which I can't do in the code. I was just showing an example of functions going to other functions. I was just curious if I'm doing it 'right', I'm only asking more experienced programmers if they use typical functions to "get" values, "set" values (like classes), and what's the best method to return to something such as a function.