//
// main.m
// -OC-3
//
// Created by lanqs on 14/12/20.
// Copyright (c) 2014年 . All rights reserved.
//
#import <Foundation/Foundation.h>
#import "Tools.h"
typedef struct {
NSInteger num;
NSInteger score;
}Student;
int main(int argc, const char * argv[]) {
@autoreleasepool {
#pragma mark - 1、将字符串中的数字去掉,字母转为大写:@“0go08o32d”
// NSString *string = @"0go08o32d";
// NSString *newstring = [string uppercaseString];
// NSMutableString *string1 = [NSMutableString stringWithFormat:@""];//新建一个空的可变字符串
// for (int i = 0; i < string.length; i ++) {
// char ch = [newstring characterAtIndex:i];
// if (ch >= 'A' && ch <= 'Z' ) {
// [string1 appendFormat:@"%c",ch];//添加字符,组成字符串
// }
// }
// NSLog(@"%@",
OC-3
最新推荐文章于 2022-05-23 11:06:51 发布