1、const关键字有什么含义?下面的声明都是什么意思?
a、const int a
b、int const a
c、const int * a
d、int * const a
e、int const * a const
2、static有什么用途( 至少举两种)
3、找错误
a:void test1()
{
charstring[10];
char* str1 ="0123456789";
strcpy(string, str1 );
}
b:void GetMemory(char **p, int num )
{
*p = (char *)malloc( num );
}
void Test( void )
{
char *str =NULL;
GetMemory(&str, 100 );
strcpy( str,"hello" );
printf( str );
}
4、用c语言写一个排序算法(冒泡、选择等皆可)
5、自己写函数,实现strlen功能
6、简述OC的内存管理要点
7、说说你对arc的理解,扼要说明strong和weak的作用
8、objective中有多重继承吗?没有的话有什么替代?
9、写代码片段 ,用仿射矩阵api实现对于一个view进行缩放1倍
10、写一个Person类的单例方法,并说明单例的作用
11、写一个代码片段输入一个字符串“20130322152832”,输出一个NSDate类型的对象,
打印该对象输出2013-03-22 15:28:32
12、写一个sql语句,从Student表中查找出 score 大于80分的人。