I have this program that I can't get to work. It is suppose to make a user made dictionary then print it back out ( have not gotten around to that part yet) When I try to run it I get a wntdll.pbd not loaded error thing that pops up ( see screenshot)There are no other errors or anything.
#include <iostream>
#include <string>
using namespace std;
int numItems;
void userInput(string *terms, string *def) {
for (int i = 0; i < numItems; ++i) {
cout << "Enter Term: ";
cin >> terms[i];
cout << endl;
cout << "Enter Def for that term: ";
cin >> def[i];
cout << endl;
}
}
void outputdef() {
}
int main() {
cout << "How many Items do you want: ";
cin >> numItems;
cout << endl;
string *ptrTerms = new string[numItems];
string *ptrDef = new string[numItems];
userInput(ptrTerms, ptrDef);
delete ptrTerms;
delete ptrDef;
}
I don't know if it is actually a file problem or a code problem. Thanks for the help.
Edit: Even after following instructions on other post it still throws erros. The error it shows is in delete_scalar.cpp.