帮我看看急

ifineedhelp ifineedhelp 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
#include <iostream>
template <class A>
{
private:
<A> *p;
<A> size;
<A> _number;
//定义数据
public:
A(<A> size=20,<A> _number=10,<A> *p=0);
~A();
bool fuzhi(<A> *p);
bool insert(int i,int x);
bool shanchu1(int i);
bool find(int i);
bool shanchu(<A> *p);
//对其私有成员操作的函数接口
}
bool <A>::fuzhi(<A> *p)
{
<A> *p=new <A>[size];
for(int a=0;a<10;a++)
{
<A> *p[a]=a+1;
}
return 1;
}
bool <A>::insert(int i,int x)
{
if(i<0||i>size||i==0)
{
return 0;
}
else if(_number>size)
{
return 0;
}
else if(i>0||i<=_number)
{
int b;
i=b;
_number++;
for(int c=1;c<=_number-i;c++)
{
*p[b]=*p[b+c];
}
return 1;
}
else if(i>0||i<=size||i>_number)
{
x=*p[i];
_number++;
}
}
bool <A>::shanchu1(int i)
{
if(i<0||i>size)
{
return 0;
}
else if(_number=0)
{
return 0;
}
else if(i>0||i>_number||i<=size)
{
cout<<"点不存在"<<endl;
return 0;
}
else if(i>0||i<=_number)
{
0=*p[i];
_number--;
}
}
bool <A>::find(int i)
{
if(i<0||i>_number||_number=0)
{
return 0;
}
else if(i>0||i<=number)
{
cout<<"*p[i]="<<*p[i]<<endl;
}
}
bool <A>::shanchu(<A> *p)
{
delete [] *p;
return 1;
}
int main()
{
int i=10;
int x=30;
<int> duixiang;
if(duixiang.fuzhi)
{
cout<<"true"<<endl;
}
if(duixiang.insert)
{
cout<<"true"<<endl;
}
if(duixiang.shanchu1)
{
cout<<"true"<<endl;
}
if(duixiang.find)
{
cout<<"true"<<endl;
}
if(duixiang.shanchu)
{
cout<<"true"<<endl;
}
return 0;

}
厄 刚刚学完C++。。写了个 数据结构的类帮我看看哪里错了。。用VC6.0 给我报出40个错下面的错误信息
C:\Documents and Settings\user\桌面\6825602.cpp(18) : error C2059: syntax error : '<end Parse>'
C:\Documents and Settings\user\桌面\6825602.cpp(19) : warning C4091: '' : ignored on left of 'bool' when no variable is declared
C:\Documents and Settings\user\桌面\6825602.cpp(19) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(19) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(19) : error C2039: 'fuzhi' : is not a member of '`global namespace''
C:\Documents and Settings\user\桌面\6825602.cpp(20) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\user\桌面\6825602.cpp(20) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\user\桌面\6825602.cpp(28) : warning C4091: '' : ignored on left of 'bool' when no variable is declared
C:\Documents and Settings\user\桌面\6825602.cpp(28) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(28) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(28) : error C2039: 'insert' : is not a member of '`global namespace''
C:\Documents and Settings\user\桌面\6825602.cpp(29) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\user\桌面\6825602.cpp(29) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\user\桌面\6825602.cpp(55) : warning C4091: '' : ignored on left of 'bool' when no variable is declared
C:\Documents and Settings\user\桌面\6825602.cpp(55) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(55) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(55) : error C2039: 'shanchu1' : is not a member of '`global namespace''
C:\Documents and Settings\user\桌面\6825602.cpp(56) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\user\桌面\6825602.cpp(56) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\user\桌面\6825602.cpp(76) : warning C4091: '' : ignored on left of 'bool' when no variable is declared
C:\Documents and Settings\user\桌面\6825602.cpp(76) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(76) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(76) : error C2039: 'find' : is not a member of '`global namespace''
C:\Documents and Settings\user\桌面\6825602.cpp(77) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\user\桌面\6825602.cpp(77) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\user\桌面\6825602.cpp(87) : warning C4091: '' : ignored on left of 'bool' when no variable is declared
C:\Documents and Settings\user\桌面\6825602.cpp(87) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(87) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(87) : error C2039: 'shanchu' : is not a member of '`global namespace''
C:\Documents and Settings\user\桌面\6825602.cpp(88) : error C2143: syntax error : missing ';' before '{'
C:\Documents and Settings\user\桌面\6825602.cpp(88) : error C2447: missing function header (old-style formal list?)
C:\Documents and Settings\user\桌面\6825602.cpp(96) : error C2143: syntax error : missing ';' before '<'
C:\Documents and Settings\user\桌面\6825602.cpp(97) : error C2065: 'duixiang' : undeclared identifier
C:\Documents and Settings\user\桌面\6825602.cpp(97) : error C2228: left of '.fuzhi' must have class/struct/union type
C:\Documents and Settings\user\桌面\6825602.cpp(99) : error C2065: 'cout' : undeclared identifier
C:\Documents and Settings\user\桌面\6825602.cpp(99) : error C2297: '<<' : illegal, right operand has type 'char [5]'
C:\Documents and Settings\user\桌面\6825602.cpp(99) : error C2065: 'endl' : undeclared identifier
C:\Documents and Settings\user\桌面\6825602.cpp(101) : error C2228: left of '.insert' must have class/struct/union type
C:\Documents and Settings\user\桌面\6825602.cpp(103) : error C2297: '<<' : illegal, right operand has type 'char [5]'
C:\Documents and Settings\user\桌面\6825602.cpp(105) : error C2228: left of '.shanchu1' must have class/struct/union type
C:\Documents and Settings\user\桌面\6825602.cpp(107) : error C2297: '<<' : illegal, right operand has type 'char [5]'
C:\Documents and Settings\user\桌面\6825602.cpp(109) : error C2228: left of '.find' must have class/struct/union type
C:\Documents and Settings\user\桌面\6825602.cpp(111) : error C2297: '<<' : illegal, right operand has type 'char [5]'
C:\Documents and Settings\user\桌面\6825602.cpp(113) : error C2228: left of '.shanchu' must have class/struct/union type
C:\Documents and Settings\user\桌面\6825602.cpp(115) : error C2297: '<<' : illegal, right operand has type 'char [5]'
Error executing cl.exe.

6825602.exe - 40 error(s), 5 warning(s)
...全文

相关推荐

【Python编程】Python文档字符串与代码文档化规范

内容概要:本文全面解析Python代码文档化的技术规范与工具链,重点对比Google风格、NumPy风格、Sphinx reStructuredText在文档字符串格式上的差异。文章从PEP 257文档字符串约定出发,详解__doc__属性的运行时访问、docstring的类型提示集成、以及Sphinx autodoc的自动API文档生成机制。通过代码示例展示type hints与docstring的互补使用、mkdocs的Markdown文档站点构建、以及pydoc的内置文档浏览器,同时介绍Sphinx的交叉引用(:func:/:class:)、扩展主题(Read the Docs)配置、以及doctest的文档示例自动验证,最后给出在开源项目、内部SDK、API网关等场景下的文档驱动开发(DDD)策略与文档即代码(Docs as Code)实践。 sjbzhibo.hqjxgs.com hntxmedia.com www.honglu-cy.com seriea-live-streaming.hnxskj.com cbalive.htne.com.cn

2601_97068698

毕业设计含文档和代码VB个人邮件处理系统(源代码+系统)

毕业设计含文档和代码VB个人邮件处理系统(源代码+系统)

zz_ll9023

证件照批量处理 - 批量证件照制作与换底色工具

一键批量导入照片,自动裁剪为标准证件照尺寸并替换红蓝白底色,支持自定义规格、名单映射与打包导出,快速完成团队证件照采集与制作。 主要功能:批量导入多张证件照原图、统一裁剪为标准证件照尺寸、一键替换红蓝白三色底色、内置一寸二寸等规格预设、按毫米自定义证件照尺寸、批量打包导出为压缩文件、按名单自动匹配人员信息、导入 CSV 花名册批量对应。 适用场景:证件照批量处理是一款面向企业人事、行政与摄影工作室的桌面端证件照制作工具。它把过去"一张张导入修图软件、手动裁剪、反复调整底色"的重复劳动,压缩为一次拖拽加一次点击:批量导入原始照片后,软件按所选规格统一裁剪、替换底色、排版并打包输出,让上百人的证件照采集在几分钟内完成。 说明:试用功能限制说明:本软件支持试用体验,批量处理按单次任务计算额度——每次批量任务最多可处理 5 个文件,并完整包含规格裁剪、底色替换、排版与打包导出等全部流程。当单次任务的文件数超过 5 个时,需先在软件内完成一次性功能授权,之后即可继续处理本次任务的全部文件;日常的单张处理与预览不受任何限制。

RPA知识课堂

旋转设备激光对中偏差与允许公差判定器

【适用方向】设备工程与通信协议 【工具用途】 「旋转设备激光对中偏差与允许公差判定器」用于半导体制造过程中的工程计算与分析, 帮助工艺、设备、质量与生产工程师快速完成日常数据处理工作。 【能解决什么】 · 免去手工Excel 反复整理与公式编写,直接导入数据即可出结果 · 计算过程透明,关键参数可按现场实际调整 · 输出图表与明细报表,便于直接用于汇报与存档 【包内内容】 · 工具源码(Python,可直接运行) · 使用说明(数据格式与操作步骤) · 依赖清单与示例数据 【适用人群】 半导体 FAB / 晶圆厂:工艺、设备、质量、IE、生产工程师; 以及 MES 与智能制造方向的技术人员。 【使用说明】 解压后按说明导入数据运行即可;工具在本地处理数据,不联网。

半导体智能制造 | MES工程师实战笔记

园区如何帮助企业精准对接政策?数字化智配服务解决方案.docx

科易网基于40亿+科创知识图谱数据库,深度探索AI技术在技术转移、成果转化、技术经纪、知识产权、产业创新、科技招商等垂直领域的多样化应用场景,研究科技创新领域的AI+数智化解决方案,推动科技创新与产业创新智能化发展。

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