For the following lines of code:
#include<iostream>
#include<fstream>
#include<string>
void telephonebill();
void add();
void edit();
void readFile();
void display();
string names[100];
string addresses[100];
int tn[100];
int numCalls[100];
int trunkCalls[100];
int numMobCalls[100];
int isdnNum[100];
int dueD[100];
int paymentD[100];
int numC = 0;
I am getting these lines of error:
1>Project.cpp(12): error C2146: syntax error : missing ';' before identifier 'names'
1>Project.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Project.cpp(12): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Project.cpp(13): error C2146: syntax error : missing ';' before identifier 'addresses'
1>Project.cpp(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>Project.cpp(13): error C2086: 'int string' : redefinition
1>Project.cpp(12) : see declaration of 'string'
1>Project.cpp(13): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
What is the problem with the declaration of these arrays?