Functions please help.

Apr 10, 2017 at 3:23pm
Is the following codes a valid function call?

61. convertMulti(rands, dollars, pounds);
62. cout << "R" << rands << " is converted to " << euros
63. << " euros and " << dollars << " dollars." << endl << endl;

and

69. convertMulti(rands, euros, dollars, pounds);
70. cout << "R" << rands << " is converted to " << euros
71 << " euros and " << dollars << " dollars and "
72. << pounds << " pounds" << endl;
Apr 10, 2017 at 4:16pm
1) Please use code tags when posting code, to make it readable:

http://www.cplusplus.com/articles/z13hAqkS/

2) How can we know, without seeing the declaration of the function, and the declarations of the arguments you're attempting to pass in?

Are you getting compilation errors? If so, show us what those errors are.
Apr 10, 2017 at 7:22pm
1
2
3
4
 
convertMulti(rands, dollars, pounds); 
 cout << "R" << rands << " is converted to " << euros 
 << " euros and " << dollars << " dollars." << endl << endl;

Last edited on Apr 10, 2017 at 7:23pm
Apr 10, 2017 at 8:04pm
You haven't addressed MikeyBoy's point #2.
Topic archived. No new replies allowed.