摘要: To 十进制二进制: >>> int('110', 2) -> 6八进制: >>> int('10', 8) -> 8十六进制: >>> int('10', 16) -> 16 >>> int('1A', 16) -> 26To 十六进制:十进制: >>>hex(12) -> ‘0xc’二进制: >... 阅读全文
posted @ 2014-08-21 08:49 宋桓公 阅读(312) 评论(0) 推荐(0)
摘要: 废话不多说,直接上程序: 1 #include 2 using namespace std; 3 4 class Animal 5 { 6 public: 7 Animal() 8 { 9 cout eat();36 return 0;37 }首先Anim... 阅读全文
posted @ 2014-07-14 20:17 宋桓公 阅读(445) 评论(0) 推荐(0)
摘要: 最近在看小甲鱼的视频,有段程序是这么写的: 1 #include 2 #include 3 4 class Pet 5 { 6 public: 7 Pet(std::string theName); 8 ~Pet(); 9 10 static int getCount(... 阅读全文
posted @ 2014-07-12 09:39 宋桓公 阅读(1005) 评论(0) 推荐(0)
摘要: 1: strL.Format("%x", 12); //将数字12转换成,16进制字符(C),存于strL 2: strH.Format("%x",12); //将数字12转换成,16进制字符(C),存于strH 3: strHL... 阅读全文
posted @ 2014-04-18 14:54 宋桓公 阅读(1776) 评论(0) 推荐(0)
摘要: 所关联的变量常见有两种,一种就是控件变量,一种就是数字变量。 为控件关联变量的方法也有两种,一种是通过软件工具添加,一种是手动添加代码。软件工具添加,方便简单,但是根据软件的版本不同,以及不同的空间将出现不同的问题,所以手动添加才是王道! 先介绍通过软件工具添加:选择你想关联的控件,单击右键并选择... 阅读全文
posted @ 2014-04-18 11:16 宋桓公 阅读(9639) 评论(1) 推荐(1)