零目一掣~~求求求

查看: 5120|回复: 5
项目中的一个进度条不知道怎么做,求帮助
阅读权限80
在线时间 小时
附件中的进度条不知道怎么做,求帮助,项目中急用
}VLBJBQ7%VI5EEY(SM9PXO7.jpg (0 Bytes, 下载次数: 26)
圆环进度条
16:50 上传
打赏列表共打赏了0次
还木有人打赏~
阅读权限80
在线时间 小时
楼主能能分享下不&
阅读权限80
在线时间 小时
//
//&&MyCircleProgress.h
//&&myjuchgengdai
//
//&&Created by 刘峰 on 15/4/11.
//
//
#ifndef __myjuchgengdai__MyCircleProgress__
#define __myjuchgengdai__MyCircleProgress__
#include &iostream&
#include &CrossApp.h&
USING_NS_CC;
class MyCircleProgress: public CAView
{
public:
& &
& & MyCircleProgress();
& &
& & virtual ~MyCircleProgress();
& &
& & static MyCircleProgress* createWithFrame(const CCRect& rect);
& & virtual bool initWithFrame(const CCRect& rect);
& &
& & CC_PROPERTY(unsigned int, m_iProgress, Progress);
& & CC_PROPERTY_PASS_BY_REF(CAColor4F, m_cMidBackGroundColor, MidBackGroundColor);// 背景颜色,中间层
& & CC_PROPERTY_PASS_BY_REF(CAColor4F, m_cDoneColor, DoneColor);// 完成的进度颜色
& & CC_PROPERTY_PASS_BY_REF(CAColor4F, m_cUnDoneColor, UnDoneColor);// 未完成的进度颜色
& &
& & void updateImage();
& &
& & virtual void visit();
& &
& & virtual void onEnterTransitionDidFinish();
& &
protected:
& & bool m_bUpdateI
& &
& & CALabel* progressL
& &
& & CCDrawNode*
& &
& & unsigned int m_iR
& &
#endif /* defined(__myjuchgengdai__MyCircleProgress__) */
//
//&&MyCircleProgress.cpp
//&&myjuchgengdai
//
//&&Created by 刘峰 on 15/4/11.
//
//
#include &MyCircleProgress.h&
MyCircleProgress::MyCircleProgress():
m_iProgress(0),
m_cUnDoneColor(ccc4f(220.0/255.0, 225.0/255.0, 228.0/255.0, 1)),
m_cDoneColor(ccc4f(87.0/255.0, 194.0/255.0, 228.0/255.0, 1)),
m_cMidBackGroundColor(ccc4f(1, 1, 1, 1)) {
& &
}
MyCircleProgress:: ~MyCircleProgress(){
& &
MyCircleProgress* MyCircleProgress::createWithFrame(const CCRect& rect){
& & MyCircleProgress* progress = new MyCircleProgress();
& & if (progress && progress-&initWithFrame(rect))
& & {
& && &&&progress-&autorelease();
& && &&&
& & }
& & CC_SAFE_DELETE(progress);
& & return NULL;
}
bool MyCircleProgress::initWithFrame(const CCRect& rect){
& &
& & if (!CAView::initWithFrame(rect,ccc4(255, 255, 255, 0))) {
& && &&&
& & }
& &
& & this-&m_iRadius = rect.size.width / 2 - 4;
& &
& & this-&progressLable = CALabel::createWithFrame(CADipRect(-rect.size.width/2, -rect.size.height/2, rect.size.width, rect.size.height));
& & progressLable-&setTextAlignment(CATextAlignmentCenter);
& & progressLable-&setVerticalTextAlignmet(CAVerticalTextAlignmentCenter);
& & progressLable-&setColor(ccc4(79, 95, 111, 255));
& & progressLable-&setFontSize(24 * CROSSAPP_ADPTATION_RATIO);
& & char str[100] = {0};
& & sprintf(str, &%d&, m_iProgress);
& & progressLable-&setText(string(str) + &%&);
& &
& & this-&stencil = CCDrawNode::create();
& & stencil-&setCenterOrigin(CADipPoint(rect.size.width/2, rect.size.height/2));
& & this-&stencil-&addSubview(progressLable);
& & this-&addSubview(stencil);
& &
void MyCircleProgress::setProgress(unsigned int var) {
& & CC_RETURN_IF(m_iProgress == var);
& & m_iProgress =
& & this-&m_bUpdateImage =
}
unsigned int MyCircleProgress::getProgress() {
& & return m_iP
}
void MyCircleProgress::setMidBackGroundColor(const CAColor4F& var) {
& & m_cMidBackGroundColor =
& & this-&m_bUpdateImage =
& &
const CAColor4F& MyCircleProgress::getMidBackGroundColor() {
& & return m_cMidBackGroundC
& & this-&m_bUpdateImage =
}
void MyCircleProgress::setDoneColor(const CAColor4F& var) {
& & m_cDoneColor =
& & this-&m_bUpdateImage =
& &
const CAColor4F& MyCircleProgress::getDoneColor() {
& & return m_cDoneC
}
void MyCircleProgress::setUnDoneColor(const CAColor4F& var) {
& & m_cUnDoneColor =
& & this-&m_bUpdateImage =
& &
const CAColor4F& MyCircleProgress::getUnDoneColor() {
& & return m_cUnDoneC
}
void MyCircleProgress::onEnterTransitionDidFinish() {
& & CAView::onEnterTransitionDidFinish();
& & if (m_bUpdateImage) {
& && &&&m_bUpdateImage =
& && &&&this-&updateImage();
& & }
}
void MyCircleProgress::visit() {
& & if (m_bUpdateImage) {
& && &&&m_bUpdateImage =
& && &&&this-&updateImage();
& & }
& & CAView::visit();
}
void MyCircleProgress::updateImage() {
& & CCPoint cir[360];
& & for (int i=0; i&360; i++) // 360
& & {
& && &&&float x = cosf(i * M_PI/180.f) * m_iR
& && &&&float y = sinf(i * M_PI/180.f) * m_iR
& && &&&
& && &&&cir[i] = CADipPoint(x, y);
& & }
& &
& & CCPoint cir2[360];
& & // 四舍五入计算进度
& & int progressAngle = int((360*m_iProgress/100.f) + 0.5);
& & for (int i=0; i&progressA i++) // 360
& & {
& && &&&float x = cosf(i * M_PI/180.f) * m_iR
& && &&&float y = sinf(i * M_PI/180.f) * m_iR
& && &&&
& && &&&cir2[i] = CADipPoint(x, y);
& & }
& &
& & CCPoint cir3[360];
& & for (int i=0; i&360; i++) // 360
& & {
& && &&&float x = cosf(i * M_PI/180.f) * (m_iRadius - 2);
& && &&&float y = sinf(i * M_PI/180.f) * (m_iRadius - 2);
& && &&&
& && &&&cir3[i] = CADipPoint(x, y);
& & }
& &
& & // 最外层的圆形(灰色填充色)
& & stencil-&drawPolygon(cir, 360, m_cUnDoneColor, 4, m_cUnDoneColor);
& & // 中间层(蓝色填充色)
& & stencil-&drawPolygon(cir2, 360, m_cDoneColor, 4, m_cDoneColor);
& & // 最里层的圆形(白色填充色)
& & stencil-&drawPolygon(cir3, 360, m_cMidBackGroundColor, 0, m_cMidBackGroundColor);
& & char str[32] = {0};
& & sprintf(str, &%d&, m_iProgress);
& & this-&progressLable-&setText(string(str) + &%&);
阅读权限120
在线时间 小时
你既然期望辉煌伟大的一生,那么就应该从今天起,以毫不动摇的决心和坚定不移的信念,凭自己的智慧和毅力,去创造你和人类的快乐。
阅读权限50
在线时间 小时
感谢分享!
500元悬赏!H5游戏《愚公移山》游戏架设..
微擎+微赞通用 人人商城V2 2.9.4 全解密开源版
此为unity3D开发完整无措源码学员们有福啦!
特别声明(务必查看!)
1、Unity3D Particle Ri
今天发布款收来的完整的金皇冠2改版的源码,源码
相信这款源码一定很多人追求吧太阳城棋牌源码真
| 联系方式
COPYRIGHT(C)2015 ZHONGQINGLONGTU NETWORK CO.LTD ALL RIGHTS RESERVED.ICP备号-4
北京中清龙图网络技术有限公司标准答案:暂无
答案解析:(1)方法一:用试误法
设债券资本成本为i
959=1000×6%×(P/A,i,5)+1000×(P/F,i,5)
由于目前市价959元(折价),因此内含报酬率高于6%,可用7%测试:
1000×6%×(P/A,7%,5)+1000×(P/F,7%,5)=959.01
因此到期收益率(税前债券资本成本)等于7%
税后负债资本成本=7%×(1-24%)=5.32%
股票资本成本=5%+0.875×8%=12%
资本结构权数:负债价值=959×100=95900万元
股权价值=22.38×1万元
总价值:319700万元
负债比重==30%
权益资金比重=70%
加权资本成本=5.32%×30%+12%×70%=10%
债券资本成本=1000×6%×(1-24%)/959=4.75%
股票资本成本=5%+0.875×8%=12%
资本结构权数:负债价值=959×100=95900万元
股权价值=22.38×1万元
总价值=319700万元
负债比重==30%
权益资金比重=70%
加权资本成本=4.75%×30%+12%×70%
(2)项目评价使用的含有风险的折现率=目前加权平均资本成本+项目风险溢价
=10%+2%=12%
或:=9.83%+2%=11.83%
(3)项目的初始投资=800-(800-500)×24%+
=2478万元
(4)项目的年经营现金净流量
折旧=5万元
项目的年经营现金净流量=净利润+折旧
=(30×200-30×160-400)×(1-24%)+125=733万元,
付现成=160×30+400-75万元
项目的年经营现金净流量=税后收入-税后付现成本+折旧×所得税率
=200×30×(1-24%)-5075×(1-24%)+125×24%
  =733万元
(5)固定资产账面价值=5=375万元
5年后处置设备和土地的税后现金净流量=出售收入-出售收益×所得税率
=出售收入-(出售收入-固定资产账面价值-土地账面价值)×所得税率
=600-(600-375-500)×24%=666万元
5年后回收的现金流量=666+750=1416万元
(6)项目的净现值=733×(P/A,12%,5) +1416×(P/S,12%,5)-2478
=733×3.×0.
或:项目的净现值=733×(P/A,11.83%,5)+1416×(P/S,11.83%,5) -2478
=733×3.62+8-2478
=985.13(万元)
本题选自:
leonh** 回复
20584**:这道题目如果选择B其实也是正确的,根据我国统计局的数据来做的报告,是不靠谱的
leonh** 回复
20584**:这道题目如果选择B其实也是正确的,根据我国统计局的数据来做的报告,是不靠谱的
相关试题:
如需更多试题请下载
相关考试软件
维普考试系列软件是由维普公司研发并推广的一系列自助考试辅导软件,该软件诣在帮助参与各类考试的考生通过考试软件自助进行模拟考试,自我检测和复习考题,本考试软件包含海量的试题试卷,供考生选用,软件安装简便,使用效率高,是参加公司战略与风险管理考试考生的理想选择...
相关考试资讯这一款插座利用我们的触觉,简单地解决这样一个难题,它不仅实用,而且非常有趣。在我看来,这款插座的所在价值远远超出了它本来想要解决问题,因为它还能照顾视觉障碍者的使用!这是一个下意识的行为,它隐藏着甚至行为发出者都不清楚或没有意识到的需求(即人的行为在具有明显的目的的同时,也会伴随着一些连人自己也没有意识到的目的,也可以称之为伴随性的目的,也可以称之为隐性的目的)。这些设计里蕴含的朴素、真挚的情感在心灵深处打动着使用者。人性化产品设计的朴素无华平静地影响着我们的生活,默默地为我们服务,让我们获得愉悦体验,让我们的生活变得更加美好 的翻译是:The outlet with our sense of touch, simply solve a problem, it is not only practical, but very interesting. In my view, this socket value far beyond where it wanted to solve the problem, because it also can take care of the visually impaired to use! This is a subconscious behavior that hides the beh 中文翻译英文意思,翻译英语
请在下面的文本框内输入文字,然后点击开始翻译按钮进行翻译,如果您看不到结果,请重新翻译!
这一款插座利用我们的触觉,简单地解决这样一个难题,它不仅实用,而且非常有趣。在我看来,这款插座的所在价值远远超出了它本来想要解决问题,因为它还能照顾视觉障碍者的使用!这是一个下意识的行为,它隐藏着甚至行为发出者都不清楚或没有意识到的需求(即人的行为在具有明显的目的的同时,也会伴随着一些连人自己也没有意识到的目的,也可以称之为伴随性的目的,也可以称之为隐性的目的)。这些设计里蕴含的朴素、真挚的情感在心灵深处打动着使用者。人性化产品设计的朴素无华平静地影响着我们的生活,默默地为我们服务,让我们获得愉悦体验,让我们的生活变得更加美好
选择语言:从
罗马尼亚语
罗马尼亚语
正在翻译,请等待...
The outlet with our sense of touch, simply solve a problem, it is not only practical, but very interesting. In my view, this socket value far beyond where it wanted to solve the problem, because it also can take care of the visually impaired to use! This is a subconscious behavior that hides the beh
正在翻译,请等待...
This section plug uses our sense of touch, solves this kind of difficult problem simply, not only it practical, moreover extremely interesting.In my opinion, this section plug far exceeded it in the value to want to
相关内容&a秋季产品销售培训 Autumn product sale training & a邓广飞 Deng Guangfei & a我没有见过别人 I have not seen others & a多媒体技术迅速兴起、蓬勃发展 The multimedia technologies start, the vigorous development rapidly & aWhat I do need clothes 正在翻译,请等待... & a你想参加哪个俱乐部? 你想参加哪个俱乐部? & a威克姆(达西父亲的管家的儿子,和莉迪亚发生关系,由于得到钱才同意与莉迪亚结婚) Wickham (darcy father's steward's son, has relations with Lydia, because obtains money only then to agree and Lydia marries) & a大部分同学认为在学校不用带手机 Majority of schoolmates thought does not use the belt handset in the school
& aI’m 17 years old and high school student. 正在翻译,请等待... & a他养成了走路回家的习惯 He has formed the habit which walks goes home & a2-Propanol, 1-methoxy- 2丙醇, 1甲氧基 & a农民工安全教育 The peasant laborer educates safely & aBurgemeester van De bestelwagen van Burgemeester & a我认为演讲就应该是即兴的 I thought the lecture should be extemporaneously & adragon boat festivel
moon festivel chinees new year itc 龙小船festivel月亮festivel chinees新年itc & aApplications are open until 16 December 2011 for commencement 应用是开放的直到日为开始 & a? ? & aI'm sorry that i can't understand last sentense T^T 我抱歉我不可能了解前sentense T^T & abut guess we’ll crye first of May. 但猜测我们首先意志crye 5月。 & a不仅拥有许多美国乡村音乐前辈有的优秀气质, Not only has the outstanding makings which many US country music senior has, & ayou can not imagine how much i am missing you you can not imagine how much i am missing you & a贺州是一个多民族聚集的地区,充满民族风情,还有许多美丽的景观引人入胜。 He Zhou is the area which more than nationalities gather, the fill nationality character and style, but also some many beautiful landscapes are fascinating. & aF:P1033.cpp(22) : error C2601: 'fn' : local function definitions are illegal F :P1033.cpp (22) : 错误C2601 : ‘fn’ : 局部功能定义是非法的 & a我可以等你,但是希望你最终能够选择我成为你的男朋友 I may wait for you, but hoped you finally can choose me to become you the boyfriend & aFurther enhances English to hear the read-write ability 进一步提高英语听见读写能力 & aThe Cabinet Office is leading work to deliver a market and supplier strategy to ensure that the ICT Strategy is fully supported commercially, and that the ICT market is aligned to government priorities 内阁办公室是提供市场和供应商战略的主导的工作保证商业充分地支持ICT战略,并且ICT市场对政府优先权被排列 & a我可以等你,但是希望你最终能够选择我成为你的另一半 I may wait for you, but hoped you finally can choose me to become you another one half & a福建省福州市湖滨小学五年级1班 吴尹畅 Fujian Province Fuzhou Lake front Elementary school 5th class 1 class of Wu Yin is smooth & a这一款插座利用我们的触觉,简单地解决这样一个难题,它不仅实用,而且非常有趣。在我看来,这款插座的所在价值远远超出了它本来想要解决问题,因为它还能照顾视觉障碍者的使用!这是一个下意识的行为,它隐藏着甚至行为发出者都不清楚或没有意识到的需求(即人的行为在具有明显的目的的同时,也会伴随着一些连人自己也没有意识到的目的,也可以称之为伴随性的目的,也可以称之为隐性的目的)。这些设计里蕴含的朴素、真挚的情感在心灵深处打动着使用者。人性化产品设计的朴素无华平静地影响着我们的生活,默默地为我们服务,让我们获得愉悦体验,让我们的生活变得更加美好 This section plug uses our sense of touch, solves this kind of difficult problem simply, not only it practical, moreover extremely interesting.In my opinion, this section plug far exceeded it in the value to want to &根据机器人的步距和输入的程序分别求得每一步所走的距离,然后相加即可得到完成一次程序走过的路程是多少;根据其步距和与之间的距离设计程序即可,但本题答案不唯一;设机器人完成舞蹈节目要进行次程序,然后根据其所走路程最长不能大于米列出有关的不等式,从中找到最大的整数值即可.
由程序可知,机器人完成一次程序走过的路程为;程序可修改为(如右图)设机器人完成舞蹈节目要进行次程序,依题意得,,即,解得,机器人完成舞蹈节目最多要进行次程序,每跨一步用时秒,机器人完成舞蹈节目应在分钟.
本题考查了勾股定理的应用,特别是在网格中利用其所形成的直角经常利用勾股定理求相应的线段的长.
3896@@3@@@@勾股定理的应用@@@@@@258@@Math@@Junior@@$258@@2@@@@三角形@@@@@@52@@Math@@Junior@@$52@@1@@@@图形的性质@@@@@@7@@Math@@Junior@@$7@@0@@@@初中数学@@@@@@-1@@Math@@Junior@@$3767@@3@@@@一元一次不等式的应用@@@@@@250@@Math@@Junior@@$250@@2@@@@不等式与不等式组@@@@@@50@@Math@@Junior@@$50@@1@@@@方程与不等式@@@@@@7@@Math@@Junior@@$7@@0@@@@初中数学@@@@@@-1@@Math@@Junior@@
@@52@@7##@@50@@7
第三大题,第7小题
求解答 学习搜索引擎 | 某校科技小组为参加央视《百科探秘》栏目的我爱机器人论坛,设计制作了由四个机器人进行舞蹈表演的节目.如图是四个机器人A,B,C,D在6×8在网格(每个小正方形的边长为1米)中表演前的位置,每个机器人由1名小组成员操控,按如图所示的程序同时同样运动,每一步都踩在格点上,步距不小于1米,小于2米.(1)求机器人A完成一次程序走过的路程长;(2)若要使输入点A,输出的点是D点所在的位置,请修改程序;(3)由于机器人能量有限,每个机器人走过的路程长不超过100米,在已知程序下,若每跨一步用时0.5秒,机器人完成舞蹈节目最多要进行几次程序(可用计算器计算)?用时大约几分钟以内?

我要回帖

更多关于 现今零元的致富的项目 的文章

 

随机推荐