Hi all,
I have a function that calculated two int values. I call the function only by using a string and calculated those two int values. I want to return that two int values from the function when I call it with a string.
Look at the following function,
One of my friend say i can do it as above. using the bool type return value. Can you guys give me a help how to do that.Code:bool CharWordCount(string rtf, int& word_count, int& char_count) { // Body of the function // do the processing and find the number of chars and // number of words of the string }


Reply With Quote
