Followed codes runs properly with Eclipse but when i run on Dev C++ IDE i am getting followed error;
City.cpp:6: error: expected primary-expression before '{' token
City.h
#include <string>
using namespace std;
#ifndef CITY_H
#define CITY_H
class City
{
public:
City();
string arrCity[10];
};
#endif // CITY_H
City.cpp
#include <string>
#include "City.h"
City::City()
{
arrCity[10] = {"Tbilisi", "Batumi", "Kutaisi", "Gori", "Poti"};
}