求求大神>:-<

您的举报已经提交成功,我们将尽快处理,谢谢!
耐心等着啊,一会就好了。希望对你有帮助。
这个序列号 应该是收费的 没有免费的午餐的 。
大家还关注
(window.slotbydup=window.slotbydup || []).push({
id: '2081942',
container: s,
size: '1000,60',
display: 'inlay-fix'求大神指点哪里错了_百度知道
求大神指点哪里错了
#include&string&#include&iostream&class Student{public: Student(int n,string nam,char s) {num=n; name= sex=s; cout&&&Constructor called.&&&}~Student(){cout&&&Destructor called.&&&void display(){cout&&&num:&&&name&& cout&&&name:&&&name&& cout&&&sec:&&&sex:&&endl&&} private: int num: char name[10]; }; int main() {Student stud1(10010,&Wang_li&,'f');
stud1.display();
能帮我改谢谢
提问者采纳
#include&string&#include&iostream&class Student{public: Student(int n,string nam,char s) {num=n; name= sex=s; cout&&&Constructor called.&&&}~Student(){cout&&&Destructor called.&&&}
//要加反括号}void display(){cout&&&num:&&&name&& cout&&&name:&&&name&& cout&&&sec:&&&sex&&endl&&}
//间sex冒号要 private:
//冒号改号 //字符数组改字符串 }; int main() {Student stud1(10010,&Wang_li&,'f');
stud1.display();
提问者评价
太给力了,你的回答完美地解决了我的问题,非常感谢!
来自团队:
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求大神解释下面这JS的代码_百度知道
求大神解释下面这JS的代码
题每段代码注注释&!DOCTYPE html PUBLIC &-//W3C//DTD XHTML 1.0 Transitional//EN& &&&&html xmlns=&&&&head&&meta http-equiv=&Content-Type& content=&text/ charset=utf-8& /&&style&&/style&&/head&&body&&p&30行JS能干&/p& &script& var ctx = document.body.appendChild(document.createElement(&canvas&)).getContext('2d'); var i, j, k, a = [], w = ctx.canvas.width = 550, h = ctx.canvas.height = 240, r = Math.random, p = Math.PI; setInterval(function(){
ctx.fillStyle = &rgba(0, 0, 0, .5)&;
ctx.fillRect(0, 0, w, h);
while(i--){a.push({x:w/2,y:h/6,r:r()*3,c:&#fff&,t:0,vx:r()*10-5,vy:r()*-5})}
for(i = a.length-1;i &= 0;i--){
ctx.fillStyle=k.c;
ctx.beginPath();
ctx.arc(k.x, k.y, k.r, 0, p*2)
ctx.fill();
k.r -= .01;
if(k.y&h){k.y=h;k.vy*=-.5;k.r+=.005;}
k.r & 0 && a.splice(i, 1);
} }, 17); &/script&&/body&&/html&
提问者采纳
Canvas&象表示&HTML&画布元素html5控件/**document.createElement(&canvas&)创建canvas控件*&创建canvas控件添加页面document.body.appendChild()*&getContext(&#39;2d&#39;)返用于画布绘图环境目前唯参数2d,未*&能<img class="word-replace" src="/api/getdecpic?picenc=0aD2维啊<img class="word-replace" src="/api/getdecpic?picenc=0add3维嘛.*/var&ctx&=&document.body.appendChild(document.createElement(&canvas&)).getContext(&#39;2d&#39;);//画布宽度w&=&ctx.canvas.width&=&550//画布高度h&=&ctx.canvas.height&=&240//返01间伪随机数能0总于1r&=&Math.random//圆周率p&=&Math.PI;//setInterval函数表示重复执行某行,17表示重复示行毫秒数//设置画布填充颜色ctx.fillStyle&=&&rgba(0,&0,&0,&.5)&;//绘制矩形ctx.fillRect(0,&0,&w,&h);//循环给数组A添加象元素,x轴y轴c颜色,t高度&i&=&10;&while(i--){a.push({x:w/2,y:h/6,r:r()*3,c:&#fff&,t:0,vx:r()*10-5,vy:r()*-5})}&//循环绘制路线&&for(i&=&a.length-1;i&&=&0;i--){&&//路线&&ctx.beginPath();&&//创建曲线&&ctx.arc(k.x,&k.y,&k.r,&0,&p*2)&&//填充前绘图(路径)&&ctx.fill();&&//面代码态改变轨迹重复执行步骤打达烟花效
提问者评价
其他类似问题
为您推荐:
其他2条回答
2l像说,应该html5画刷
貌似是让&p&运动的代码
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁求大神帮忙,解决这个问题,可以的话我还可以追加悬赏!!_百度知道
求大神帮忙,解决这个问题,可以的话我还可以追加悬赏!!
&style&.right4{
height:200
background-color:#999;
input{ background-color:#CCC;}&&#47;style&&script type=&text&#47;javascript&&window.onload=function(){
var btn=document.getElementsByTagName(&#39;a&#39;);
var adiv=document.querySelectorAll(&#39;#right4&#39;);
var bdiv=document.getElementsByClassName(&#39;right1&#39;);
var cdiv=document.getElementsByClassName(&#39;right2&#39;);
var ddiv=document.getElementsByClassName(&#39;right3&#39;);for(var i=0;i&btn.i++)
btn[i].index=i;
btn[i].onclick=function()
bdiv.style.display=&#39;none&#39;;
cdiv.style.display=&#39;none&#39;;
ddiv.style.display=&#39;none&#39;;
for(var i=0;i&btn.i++)
adiv[i].style.display=&#39;none&#39;;
adiv[this.index].style.display=&#39;block&#39;;
}}&&#47;script&&body&&div class=&right1&&123456&&#47;div&&div class=&right2&&&a href=&#&&1&&#47;a&&a href=&#&&2&&#47;a&&a href=&#&&3&&#47;a&&a href=&#&&4&&#47;a&&a href=&#&&5&&#47;a&&a href=&#&&6&&#47;a&&a href=&#&&7&&#47;a&&&#47;div&&div class=&right3&&123456&&#47;div&&div class=&right4& id=&right4&&1&&#47;div&&div class=&right4& id=&right4&&2&&#47;div&&div class=&right4& id=&right4&&3&&#47;div&&div class=&right4& id=&right4&&4&&#47;div&&div class=&right4& id=&right4&&5&&#47;div&&div class=&right4& id=&right4&&6&&#47;div&&div class=&right4& id=&right4&&7&&#47;div&我想概思路求神帮忙达效点击right2数字候right1right2right3全部消失显示right4且点击1则right4显示1 点击2显示2
写本身问题id作元素唯标识能够重复都少idright4且种需要遍历用jQuery简单用原js比较复杂且点击事件逆说点击某right4显示其都消失知道要种效实现复杂right2写&div class=&right2&&&a href=&javascript:& onclick=&#39;showright4(&1&)&#39;&1&/a&&a href=&javascript:& onclick=&#39;showright4(&2&)&#39;&2&/a&&a href=&javascript:& onclick=&#39;showright4(&3&)&#39;&3&/a&&a href=&javascript:& onclick=&#39;showright4(&4&)&#39;&4&/a&&a href=&javascript:& onclick=&#39;showright4(&5&)&#39;&5&/a&&a href=&javascript:& onclick=&#39;showright4(&6&)&#39;&6&/a&&a href=&javascript:& onclick=&#39;showright4(&7&)&#39;&7&/a&&/div&right4写&div class=&right4& id=&right4-1&&1&/div&&div class=&right4& id=&right4-2&&2&/div&&div class=&right4& id=&right4-3&&3&/div&&div class=&right4& id=&right4-4&&4&/div&&div class=&right4& id=&right4-5&&5&/div&&div class=&right4& id=&right4-6&&6&/div&&div class=&right4& id=&right4-7&&7&/div&js引入jQuery文件写function showright4(val){
//别隐藏right
$(&.right1&).hide();
$(&.right2&).hide();
$(&.right3&).hide();
//显示应right4
$(&#right-&+val).show();}
其他类似问题
为您推荐:
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁源代码翻译,求大神_百度知道
源代码翻译,求大神
问题:&&#47;label&
&select id=&question_select&&
&option value=&请叫我——&&请叫我——&&#47;option&
&&#47;select&
&label&答案:&&#47;label&
&input type=&text& name=&answer& id=&question_value&&#47;&
&span class=&hint none& id=&question_hint&&答案确请重新输入&&#47;span&
&span class=&error&&&&#47;span&
&&#47;form&
&p class=&links&&&a class=&btn_v2& id=&question_submit& href=&javascript:;& data-cmd=&answer_send& data-click=&answer.sure&&确定&&#47;a&&&#47;p&
&p class=&access_tips&&&i class=&ico_apply&&&&#47;i&
&a href=&javascript:;& data-cmd=&apply_request& data-click=&application_access.button&&申请访问&&#47;a&&&#47;p
提问者采纳
代码翻译看采纳哦
代码里又没有,怎么会知道!!!!我只会翻译代码,不会猜答案。。。。
提问者评价
其他类似问题
为您推荐:
其他1条回答
我咋觉越越像QQ空间 逗B 玩意设置问题问题名字叫 请叫我
输入答案答案确
没 点申请访问
......................我压根没输入过
反正这就像是一个QQ空间 有访问限制的页面吧
恩,能看出来吗?
你的意思是看出答案来?不能!!!!
源代码的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁

我要回帖

更多关于 &amp;lt;&amp;gt 的文章

 

随机推荐