谁能把data68/66 67 68的文件发我一下嘛

有谁能帮我把下面的C语言程序改成c++程序吗?_百度知道
有谁能帮我把下面的C语言程序改成c++程序吗?
程序是这样的:#include&stdio.h&struct elem{
elem *};void main(){
//head指向链表头元素。tail指向链表最后元素,tempP是个临时存放地址 //frontP指向即将删除元素的前一个元素,deleteP指向将要删除的元素 elem * head,*tail,*tempP,*frontP,*deleteP; head=tail=NULL; //读取信息 scanf(&%d&,&temp); while(-1!=temp) {
if(head==NULL)
tail=head=
head-&data=
head-&next=NULL;
tempP-&data=
tempP-&next=NULL;
tail-&next=tempP;
tail=tempP;
scanf(&%d&,&temp); } //删除偶数 tempP= while(NULL!=tempP) {
if(0==tempP-&data%2)
if(tempP==head)
head=tempP-&
//找到偶数的前一个数,该数的next指向偶数的
for(frontP=NULL!=frontP;++frontP)
if(frontP-&next==tempP)
frontP-&next=tempP-&
dele憨鸡封课莩酒凤旬脯莫teP=tempP;
tempP=tempP-&
if(0==deleteP-&data%2)
delete deleteP; } //打印数据 tempP= while(NULL!=tempP) {
printf(&%d\n&,tempP-&data);
deleteP=tempP;
tempP=tempP-&
delete deleteP; }}
提问者采纳
//C++程序:#include&iostream&using&namespace&struct&elem{&&int&&&elem&*};void&main(){&int&//head指向链表头元素。tail指向链表最后元素,tempP是个临时存放地址&//frontP指向即将删除元素的前一个元素,deleteP指向将要删除的元素&elem&*&head,*tail,*tempP,*frontP,*deleteP;&head=tail=NULL;&//读取信息&cin&&&&&while(-1!=temp)&&{&&if(head==NULL)&&{&&&&&tail=head=new&&&&&head-&data=&&&&head-&next=NULL;&&&}&&&else&&{&&&&tempP=new&&&&&tempP-&data=&&&tempP-&next=NULL;&&&tail-&next=tempP;&&&tail=tempP;&&&}&&&cin&&&&&}&//删除偶数&tempP=&while(NULL!=tempP)&{&&&if(0==tempP-&data%2)&&&{&&&&&if(tempP==head)&&&&{&&&&&&head=tempP-&&&&}&&&&&else&&&&{&&&&&&//找到偶数的前一个数,该数的next指向偶数的&&&&&&for(frontP=NULL!=frontP;++frontP)&&&&&&{&&&&&&&if(frontP-&next==tempP)&&&&&&{&&&&&&&&&frontP-&next=tempP-&&&&&&&&&&&&&&&&}&&&&&&}&&&&&}&&&&}&&&deleteP=tem憨鸡封课莩酒凤旬脯莫pP;&&&tempP=tempP-&&&if(0==deleteP-&data%2)&&&&delete&deleteP;&}&//打印数据&tempP=&while(NULL!=tempP)&&{&&&&cout&&&&tempP-&data&&&&&&&deleteP=tempP;&&&tempP=tempP-&&&&delete&deleteP;&&}}
不行啊,我自己也是这样子改的,但是输出会出现停止工作
你用的什么编译器,我用的VC6不会出现这样的情况啊,完美运行!
我用的devc++
然后提交到系统上的时候也说编译错误
系统上现在说格式错误。。。
已经是C++了怎么还会格式错误呢?搞不懂了
我也不懂,没事还是谢谢你啦😂
提问者评价
太给力了,你的回答完美地解决了我的问题,非常感谢!
来自团队:
其他类似问题
自己改: 首先是头文件: #include &iostream& #include &cmath憨鸡封课莩酒凤旬脯莫&
#define M 10 应改为: const int M = 10;
最后,把你的过程抽象成为一个对象,为之构建一个类,用OO的方法写代码。
知道智能回答机器人
我是知道站内的人工智能,可高效智能地为您解答问题。很高兴为您服务。
为您推荐:
其他1条回答
你这能改也也只有输出的函数可以改了,但是改起来说简单也简单,说难也难.因为太多输出的了,工作量很大.你把#include换成#include没有.h然后在main函数前面加上usi憨鸡封课莩酒凤旬脯莫最后把所有printf改成cout&&,然后再把printf函数的那两个括号删除即可.如果要输出数字,如:printf(&%d&,12);那么需要把字符串截断,然后用&&连接即可,如:printf(&\t\t|您一共玩了%d次|\n&,win+lose+he);cout&&&\t\t|您一共玩了&&
c语言程序的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁哪位好人大侠有劲舞团 data 066.acv (66 67 68都缺失),给我传个 谢谢了啊,哪位好人大侠@qq.c_百度知道
哪位好人大侠有劲舞团 data 066.acv (66 67 68都缺失),给我传个 谢谢了啊,哪位好人大侠@qq.c
提问者采纳
考答案 待足几时足,知足自足。求闲何日闲,偷闲便闲
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁您所在位置: &
&nbsp&&nbsp
格林威尔-UniView DA Network Management Platform Unsr Manul.doc77页
本文档一共被下载:
次 ,本文档已强制全文免费阅读,若需下载请自行甄别文档质量。
文档加载中...广告还剩秒
需要金币:50 &&
你可能关注的文档:
··········
··········
UniView? DA
Network Management Platform
User Manual
800-810-9292 Content
1 Overview 1
1.1 Introduction 1
1.2 System Structure 1
1.3 Technical Parameter 3
1.4 Interface Protocol 3
2 Start up and Log in UniView? DA 5
2.2 Shut down
UniView? DA Server 6
2.3 Start up UniView? DA Client 7
3 Topology Management 8
4 Fault Management 22
5 Performance Management 37
5.1 Overview 37
5.2 Basic Concept 37
5.3 Function Introduction 38
6 Security Administration 40
6.1 Overview 40
6.2 Basic Concept 41
6.3 User Administration 41
6.4 User Group Administration 47
6.5 Administration Domain 49
6.6 User Operation Log 53
6.7 Change Password 53
6.8 Manage User Right 55
7 Resource Management 57
7.1 Overview 57
7.2 Device List 57
7.3 Card List 59
7.4 Empty Slot list 60
7.5 Port List 61
7.6 Fiber Management 62
7.7 Business User and Business Group 63
8 Data Base Backup and Restore 64
8.1 Overview 64
8.2 Auto Backup Data 64
8.3 Manual Backup Data 66
8.4 Backup Data Restore 67
9 System Maintenance and Setup 68
9.1 Overview 68
9.2 Monitor Network Management NM
Server Information 68
10.1 Overview 70
10.2 Unable to display device reporting information 71
10.3 Clue to duplication of name when creating topology object 71
10.4 Unable input IP address when creating topology object 72
11 SNMP Knowledge Introduction 72
11.1 Overview 72
11.2 SNMP Basic Principle 72
11.3 MIB Management Information Base
11.4 SNMP five information types 74
Introduction
UniView? DA Network Management System of GW Technologies CO., LTD is uniform and integrated network management platform. UniView? DA is an important operational and maintainable method to each function domain and customer of telecommunication network.
UniView? DA is distributed and integrated network management system of intelligent edge network. UniView? DA has network management function of network element and partial network, it can manage transmission, switch and
正在加载中,请稍后...Hi,这是的腾讯微博,立即登录并收听,新鲜动态尽收眼底!
(@XL007HH)
在她的广播中搜索
Copyright & 1998 - 2016 Tencent. All Rights Reserved}

我要回帖

更多关于 h61 h67 z68 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信