八品高手 请教c++高手,帮忙改改,急用,线上等,谢谢了!

请教c++高手,帮忙改改,急用,线上等,谢谢了!
请教c++高手,帮忙改改,急用,线上等,谢谢了!
这个程式有很多问题,但是太简单导致我不知道你的明确意图。
1.void * pv=pd;是可以赋值的,但是用pv->x就错了,因为pv不能识别结构体找不到X的位置。
2.void * pv=pd;Base2 * pd=static_cast<Base2* >(pv);如果你想把Derived指标转成Base2指标,强转就可以了,Base2* pf = (Base2*)pd;
3.cout<<pd->y<<" "<<pd->y<<endl;上面出现两个pd,编译器不知道使用哪一个,就算要用,肯定是同一个。
我估计一下你是不是想要这样子:
Derived* pd=new Derived;
pd->x=1;
pd->y=2.0f;
void * pv=pd;多余
Base2 * pf = (Base2*)pd; Base2 * pd=static_cast<Base2* >(pv);都是强转
cout<<pf->y<<endl;
delete pd;
return 0;
请教高手帮我翻译,急用,线上等,谢谢了!
Weather alert
Aording to the Guangdong Provincial Meteorological Observatory news, recently continuous heavy rain to rainstorm weather during this period, please minimize out as far as possible to stay indoors or in a safe place, please also note that the pany and home security.
The following Shenzhen city for nearly a week weather forecast, for reference.
If you need any help, please the first time with the human resources department or your boss to contact.
请高手帮忙翻译,急用,线上等,谢谢了!
很荣幸代表ABC公司向你告知以下的雇用协议: 此协议视以下条件而定(您通过我们必须的药检,我们收到您的大学档案抄本,以及其它任意您想也许想申明的可能事件)
帮忙改改c++啊 线上等急!
怎么提问的都不把话说明白呢?
1、你程式的要求是什么?集合a中如果本身有重复元素那么在求并的时候也要求剔除吗?并集里要求不能有重复元素吗?
2、上来把程式描述一下都是干什么的,什么要求。什么都不说还得让别人自己看
我看了一下你的程式求并的地方。程式本身没错,主要是你没对head1进行自检,也就是说head1中如果有重复元素的话那么并集就会有重复元素
感觉有帮助就评价一下吧
求c++高手帮我改改这个程式,谢谢了
我快晕了,我复制的时候复制错了,现在如下
在cout<<"资料长度为:"<<sise_1<<endl; 后面加上umber=0;sise_2=0;=0;因为每次返回要初始化
#include<iostream.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
void Return();
主函式
void main()
{
Return();
}
double sum=0,l,fsum,tf,t,b,p,j,bzca,ssum;
int n;
int sise_1,sise_2=0;
int ,ci,umber=0,chy[50];
char cs[400];
把资料还原的函式
void huanyuan()
{
cout<<"请输入您要计算的资料并以‘,’隔开"<<endl;
cin>>cs;
sise_1=strlen(cs);
cout<<"资料长度为:"<<sise_1<<endl;
umber=0;每次返回初始化
sise_2=0;每次返回初始化
=0;每次返回初始化
for (ci=0;ci<sise_1;ci++)
{
if(cs[ci]!=',')
umber++;
else
{if (umber>0&&umber<8)
sise_2++;
switch (umber)
{case 0:--;break;
case 1:chy[]=(cs[ci-1]-48);break;
case 2:chy[]=(cs[ci-2]-48)*10+(cs[ci-1]-48);break;
case 3:chy[]=(cs[ci-3]-48)*100+(cs[ci-2]-48)*10+(cs[ci-1]-48);break;
case 4:chy[]=(cs[ci-4]-48)*1000+(cs[ci-3]-48)*100+(cs[ci-2]-48)*10+(cs[ci-1]-48);
break;
case 5:chy[]=(cs[ci-5]-48)*10000+(cs[ci-4]-48)*1000+(cs[ci-3]-48)*100+
(cs[ci-2]-48)*10+(cs[ci-1]-48);
break;
case 6:chy[]=(cs[ci-6]-48)*100000+(cs[ci-5]-48)*10000+(cs[ci-4]-48)*1000+(cs[ci-3]-48)*100+
(cs[ci-2]-48)*10+(cs[ci-1]-48);
break;
case 7:chy[]=(cs[ci-7]-48)*1000000+(cs[ci-6]-48)*100000+(cs[ci-5]-48)*10000+(cs[ci-4]-48)*1000+(cs[ci-3]-48)*100+
(cs[ci-2]-48)*10+(cs[ci-1]-48);
break;
default:
cout<<"第"<<+1<<"个数超过范围"<<endl;
--;break;
}
++;umber=0;
}
}
for(=0;<sise_2;++)
cout<<"chy["<<<<"]="<<chy[]<<endl;
cout<<"="<<<<endl;
}
void Return()
{
cout<<"基本资料的操作:"<<endl;
cout<<"1-把资料还原"<<endl;
cout<<"2-关闭程式"<<endl;
int choice;
char ch;
for(;;)
{
cin>>choice;
if(choice==2) break;
else if(choice==1)
{
system("cls");清屏
huanyuan();
cout<<"你想返回选单选项吗?(是的话按 'Y',否则按N):";
cin>>ch;
if(ch=='Y'||ch=='y')
{system("cls");
Return();}
if(ch=='N'||ch=='n')
{ system("cls");
break;}不是continue
}
else
cout<<"You center a worng number"<<endl;break;
}
}
请高手大侠 帮忙翻译下谢谢了 急用啊 线上等
我自己翻译的!
查了字典
Abstract: In the late 1980s, China's securities market after the formal establishment, reform and restructuring of state-owned enterprises listed as the most effective way, the stock market has also bee the most important state-owned enterprises financing platform. For a long time, many of China's listed panies in a strong impulse to expansion of investment under the general suffering from a "fund of hunger and thirst," refinancing psychological impulse is growing, financing a growing number of neglected their core capability development. Through analysis of the status quo and re-financing capacity of the enterprise's core training, financing and discussed further their core capabilities in enterprise development in an important role.
谁能帮忙译一句话。请教高手,急用,线上等,谢谢!
to whom it may concern,
This is to certify XXX, an employee of our pany, whose id card is ........On October 15th 2007, he has been an manager of human resource department in our pany. He is assigned或者是(invited) to go to NewYork in UA to join human resource conference held by the headquarters yearly and will return on Sep 10th 2008.
Our pany will cover all the cost he had, including air ticket, hotel expense, and living fee. We promise he will obey the law during his traveling and return on time.
是签证用吧?
请各部门/区域负责人按要求填写部门/区域内各员工的”奖金记录表”
Please each section/district a representative director to fill in each employee's"cash award record" inside the section/district aording to the request
对于Leviton来说长期的战略目标是通过我们商业的每一个元件来侵略性地扩大我们的全球足迹.随着这种国际的增长,我们目前的职员有一个另人兴奋和独一无二的机会来参与到我们新的"侨民专案"中.这个适应新情况的专案会提供给你在全球我们扩张我们的商业业务的地区去参与到不论长期或短期的任务的机会