recursion

If I'm wanting the integer returned from a function call in a variable to be used in a different function call.. for example
1
2
3
4
5
char xchar;
int intNum;
int wLvar = writeLine(xchar, intNum);  //how would i do this?
writeBlock(wLvar, lnum);


can i do this?
Last edited on
is writeLine() a function you made?
yes writeLine is and so is writeBlock
You would do it exactly as you did in your post. That is perfectly legal C++ code.

Also this has nothing to do with recursion.
yeah, i dont even understand the question here haha
yeah sorry the question isnt recursion but the problem im workin on is lol
well is your question resolved?
yup
Topic archived. No new replies allowed.