C++小弟我在全局类中定义了一个二维string数组,在构造函数中赋值的时候出现有关问题

C++我在全局类中定义了一个二维string数组,在构造函数中赋值的时候出现问题
#include "stdafx.h"
#include "Counts.h"
#include <string>
#include "fstream"
#include<iostream>
#include<stdio.h>
#include<ctime>
#include<conio.h>
#include <iomanip>
#include "Count3.h"
using namespace std;

int index=0;

int admin=0;

int mytickets=0;

string countNo[300];

string countPwd[300];

string countMyticket[300][20]; //我已定的票


Counts::Counts()
{

for(int j=0;j<300;j++)
{
countNo[j]="0";
countPwd[j]="0";
for(int i=0;i<20;i++)
{
countMyticket[j][i] ="无";
}
}
}

C++小弟我在全局类中定义了一个二维string数组,在构造函数中赋值的时候出现有关问题
------解决思路----------------------
这个string赋值应该没问题的
------解决思路----------------------
string("无”)这么试试
------解决思路----------------------
看起来编译器有点老。 
试试:

std::string tmp("无");
countMyticket[j][i] =tmp;

------解决思路----------------------
string是不是在哪里被定义成char了? 

用全称std::string, 去掉using namespace std;
------解决思路----------------------
VC6 还有这个BUG?

------解决思路----------------------
引用:
VC6 还有这个BUG?

贴的代码和实际代码不一致,截图看看
------解决思路----------------------
引用:
Quote: 引用:

看起来编译器有点老。 
试试:

std::string tmp("无");
countMyticket[j][i] =tmp;


VC6.0因为现在实训要用这个编译器

用了您的方法之后错误变成了:
error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or t
here is no acceptable conversion)

要怎样解决呢


std::string countMyticket[300][20] ;
------解决思路----------------------
vc6.0 没问题啊,测了
------解决思路----------------------
摒弃string
使用char []