主题 : 怎么获取lineedit里面输入的数字啊 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 13670
精华: 0
发帖: 67
金钱: 335 两
威望: 67 点
综合积分: 134 分
注册时间: 2010-01-27
最后登录: 2017-09-13
楼主  发表于: 2010-07-31 19:26

 怎么获取lineedit里面输入的数字啊

好像接收到的事字符串  
怎么把它转化为 int或long int型的啊
请知道的指点下啊
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-07-31 21:22
strtol()?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."