随笔分类 - linux
记录Linux知识
摘要:第一条编译差异比较:c中的参数计算顺序. 例如:printf("i=%d , i++=%d",i,i++);vs输出结果为4,3.但是xcode为:3,3总结,vs参数右计算,xcode参数左计算.第二条编译差异比较:printf("result= %d . i=%d",i+++j,i); vs和xcode对++的计算顺序是相同的.
阅读全文
摘要:浮点小数,除非特殊声明(后缀加f)否则,objc 会按double处理。long int x=1234234l;//后缀加L或者llong long int x =1234123ll;//后缀加ll,表示特定的扩展,这样保证至少有64位的精度。long double us_deinfate_20004;//long同样可以修饰 doubleus_definfate_20004=3223.234e+23L;//要显示double的值,需要用后缀L。%Lf 用浮点数计数法显示 long double。%Le用科学计数法显示。%Lg计算机在%Lf和%Le自行选择。short int 占用内存空间是i
阅读全文
摘要:CocoaTouch&iPhone SDKtools Xcode:is the development enviroment,And it's an editor as well ,And complie your aplications. InterfaceBuilder: which ia graphical tool for building your UI是构建用户界面的图形化工具。Framewordk Foundation UIKit UIKit which is the interface framework for the iPhone SDK And that&
阅读全文

浙公网安备 33010602011771号