本帖最后由 reinvent 于 2014-9-10 16:58 编辑
代码参考- #import <Foundation/Foundation.h>
- NSArray * kickOff10(NSArray *array)
- {
- NSMutableArray * mArray = [NSMutableArray array];
- [mArray addObjectsFromArray:array];
- [mArray removeObject:@10];
- return mArray;
- }
- int main()
- {
- NSArray *array = @[@"dfd", @"fefewf", @10, @"fefewfew", @10];
- NSLog(@"%@", kickOff10(array));
-
- return 0;
- }
复制代码
|