帮忙找错,看不出来啊

Phoenix_FuliMa Phoenix_FuliMa 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
输出名字都有错,为什么啊


#include <iostream>
using namespace std;

typedef enum coltype
{
TYPE_TIME = 0,
TYPE_INT,
TYPE_DOUBLE,
TYPE_STRING
}Coltype;

typedef enum colunit
{
UNIT_1,
UNIT_2,
UNIT_3
}Colunit;

struct col_info
{
char *name;
Coltype type;
Colunit unit;
double precision;
long long scope;
};

int main()
{
struct col_info *col1 = new struct col_info;
col1->name = "col1fff";
col1->precision = 0.0;
col1->scope = 10;
col1->type = TYPE_TIME;

struct col_info *col2 = new struct col_info;
col1->name = "col2";
col1->precision = 0.0;
col1->scope = 10;
col1->type = TYPE_INT;

struct col_info *col3 = new struct col_info;
col1->name = "col3";
col1->precision = 0.0;
col1->scope = 10;
col1->type = TYPE_STRING;

cout<<col1->name<<endl;
cout<<col2->name<<endl;
cout<<col3->name<<endl;

system("pause");
return 0;
}
...全文

相关推荐

ACM 离线判断工具找错工具

ACM 离线判断工具找错工具 包含一个文本比较器。。和一个离线的判断工具。可以帮你快速找出错误。

single992

Web前端开发中找错的基本思路

本文给大家分享了在制作web前端页面的时候,找错、查错以及解决错误的方法,非常的详细,这里推荐给大家,希望对大家能有所帮助。

weixin_38731385

触屏Java游戏 触屏超级找错.jar(含截图+源代码 )

触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游戏 触屏超级找错.jar(含截图+源代码 )触屏Java游

金枝玉叶9

大班优秀游戏教案《找错》润新教育.txt

大班优秀游戏教案《找错》润新教育.txt

rucizui123456

找错小游戏《找茬》。。。。。。。。。。

.................................................................................

linqiucai
评论 2
收藏 已收藏
分享
返回顶部
Phoenix_FuliMa
C++ 语言 65,214 成员 250,514 内容