Functions please help.

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;
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.
1
2
3
4
 
convertMulti(rands, dollars, pounds); 
 cout << "R" << rands << " is converted to " << euros 
 << " euros and " << dollars << " dollars." << endl << endl;

Last edited on
You haven't addressed MikeyBoy's point #2.
Topic archived. No new replies allowed.