#import int main(int argc, const char * argv[]) { @autoreleasepool { /* 第1题 字符串中的world替换为i bookan wisdom */ // NSString *str1=@"hello w...
分类:
Web程序 时间:
2016-01-10 14:12:25
阅读次数:
167
#import int main(int argc, const char * argv[]) { @autoreleasepool {NSString *str=[[NSString alloc]initWithString:@"a"];NSString *str1=[[NSString all....
分类:
其他好文 时间:
2016-01-09 13:46:10
阅读次数:
176
NSString *str1 = @"BeiJing";NSString *str2 = @"beijing";//全部转为大写NSLog(@"%@",[str1 uppercaseString]);//全部转为小写NSLog(@"%@",[str1 lowercaseString]);//首字母大...
分类:
其他好文 时间:
2016-01-08 13:07:46
阅读次数:
179
//整型转换字符串 进行封装int a=100;NSNumber*intNumberA=[NSNumber NumberWithInit:a];//字符串转换成整型NSString*str1=@"158";NSInterger num1=[str1 integerValue];
分类:
编程语言 时间:
2016-01-07 10:22:15
阅读次数:
168
代码:#import int main(int argc, const char * argv[]) { @autoreleasepool { NSString *str1=@"158",*str2=@"39"; int num1=[str1 intValue]; ...
分类:
其他好文 时间:
2016-01-07 08:53:49
阅读次数:
379
#include #include #include /* mystrcpy: 复制字符串from 中的字符到字符串to, 包括空值结束符。*//* mystrcmp: 比较字符串str1 and str2 返回值 解释 less than 0 str1 is less than str2 e...
分类:
其他好文 时间:
2016-01-07 07:46:05
阅读次数:
254
#import 2 3 int main(int argc, const char * argv[]) { 4 @autoreleasepool { 5 //判断字符串前缀 6 NSString *str1=@"iOS-study"; 7 ...
分类:
其他好文 时间:
2016-01-06 21:49:29
阅读次数:
145
1 #import 2 3 int main(int argc, const char * argv[]) { 4 @autoreleasepool { 5 //判断字符串前缀 6 NSString *str1=@"iOS-study"; 7 ...
分类:
其他好文 时间:
2016-01-06 21:42:37
阅读次数:
124
在python中有很多字符串连接方式,今天就在这里具体总结一下: ①.最原始的字符串连接方式:str1 + str2②.python 新字符串连接语法:str1, str2③.奇怪的字符串方式:str1 str2④.% 连接字符串:‘name:%s; sex: ' % ('tom', 'male')...
分类:
编程语言 时间:
2016-01-05 18:39:02
阅读次数:
156
string str5=Application.StartupPath;//获取启动了应用程序的可执行文件的路径,不包括可执行文件的名称。string str1 =Process.GetCurrentProcess().MainModule.FileName;//可获得当前执行的exe的文件名。st...