- 博客(2)
- 资源 (3)
- 收藏
- 关注
原创 C++中RGB转换为ARGB
RGB :是24位的颜色值,高八位为R,中间八位为G,后八位为B。ARGB:是32位的颜色值。高八位为A,次八位为R,再次八位为G,最后八位为B。转换使用如下方法,我是先调颜色对话框取色,然后转化:COLORREF col;CColorDialog colorDialog;if (IDOK == colorDialog.DoModal()){col= col
2015-06-18 11:32:44
4212
青蛙跳级方案数递归求解
青蛙跳级方案数递归求解
void main()
{
int n;
steps = 0;
cout<<"input the steps number:";
cin>>n;
count_steps(n);
cout<<"the total number:"<<steps<<endl;
int a=jump(n);
cout<<"the total number:"<<a<<endl;
}
2013-11-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人