从数据库record里读出值 3个字段类型依次是 int varchar datetime
赋值时:
char cc[255];
int n = record[0];
cc = record[1];
Datetiem dat = record[2];报错如下3个:
error C2440: '=' : cannot convert from 'char *' to 'int'error C2440: '=' : cannot convert from 'char *' to 'char [255]'error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'char *' (or there is no acceptable conversion)
赋值时:
char cc[255];
int n = record[0];
cc = record[1];
Datetiem dat = record[2];报错如下3个:
error C2440: '=' : cannot convert from 'char *' to 'int'error C2440: '=' : cannot convert from 'char *' to 'char [255]'error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'char *' (or there is no acceptable conversion)
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货