Question
I keep encountering these errors in my code and I'm not sure how to get around it. Error: Code: #include #include using namespace std; //
I keep encountering these errors in my code and I'm not sure how to get around it. Error:
Code:
#include
// Function declarations void getInput(string* &word, string* &def, int n); void output(string* &word, string* &def, int n);
int main() { int n;// Number of words string* word; string* def; cin.ignore(); //ignore buffer getInput(word, def, n); output(word, def, n);
return 0; }
// Function definitions void getInput(string* &word, string* &def, int n) {
cout > n; string* word = new string[n]; ; // array to store words string* def = new string[n]; // array to store definitions
for (int i = 0; i
void output(string* &word, string* &def, int n) { cout Code Description C2082 redefinition of formal parameter 'word Project Project4 Project4 File lab_5 am4125.cpp lab 5 am4125.cpp Line Suppression State 36 37 C2082 redefinition of formal parameter 'def
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started