- 1

Who can help with this code

#include <iostream> using namespace std; // prototype int add(int arg1, int arg2) ; double add(double arg1, double arg2) ; string add(string arg1, string arg2) ; int main(){ // variable Declaration /* Initializing and invoking the add() function. */ return 0; } int add(int arg1, int arg2) { return (arg1 + arg2) ; } double add(double arg1, double arg2) { return (arg1 + arg2) ; } string add(string arg1, string arg2){ string result = arg1 + arg2; return result; }

2nd Feb 2021, 7:29 AM
potus
potus - avatar
4 Answers
+ 1
What's the problem you are facing here ? Most of the stuff is already done for you, all you have to to is to call the functions with correct parameters.
2nd Feb 2021, 7:41 AM
Arsenic
Arsenic - avatar
2nd Feb 2021, 7:43 AM
Arsenic
Arsenic - avatar
+ 1
Ight thanks
2nd Feb 2021, 7:44 AM
potus
potus - avatar
0
Can you help with that please?
2nd Feb 2021, 7:42 AM
potus
potus - avatar