so this is what i would like to do is use this function OpenTextInputFileAndOpenTextOutputFile to open text files
but i get am error in man for key, argc, argv in my functions that i an calling, also do need char*argv in my main function
Yeah, this should work, you're declaring all your variables and handle the args to main() correctly.
The only thing is that I believe fstreams are non-copyable, so DecodesAndOutputsToFile must take them by reference.
To use codeboxes, either use the <> button on the right of the input box, or do this:
[code]CODE HERE [/code]
EDIT: That declaration is only inside the scope of the " OpenTextInputFileAndOpenTextOutputFile" function, so main() won't have access to it. Also, the function won't have access to argv, since this is inside main()'s scope. You should go over this: http://www.cplusplus.com/doc/tutorial/functions/
Also, get used to using concise function names. Holy crap.
Last edited on
Topic archived. No new replies allowed.
You are using a version without Ads of this website. Please, consider donating: