#include <iostream>
#include<libpq-fe.h>
using namespace std;
typedef struct student
{
char name;
double number;
char sex;
complex test;
}student;
在数据库里面我已经定义好一个complex类型了,报错说缺少类型说明符。难道我还需要在程序里面再把complex定义写出来吗?求指点
#include<libpq-fe.h>
using namespace std;
typedef struct student
{
char name;
double number;
char sex;
complex test;
}student;
在数据库里面我已经定义好一个complex类型了,报错说缺少类型说明符。难道我还需要在程序里面再把complex定义写出来吗?求指点
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货