- 博客(3)
- 收藏
- 关注
原创 字符串比较,连接
#include int strcompare(char *s1,char *s2) { while(*s1==*s2&&*s1!='\n') { s1++; s2++; } return(*s1-*s2); } char *strcap(char s1[],char s2[]) { i
2014-09-23 21:31:06
252
原创 日本国旗
#import "drawpicture.h" @implementation drawpicture - (void)drawRect:(CGRect)rect { CGContextRef context = UIGraphicsGetCurrentContext(); CGContextMoveToPoint(co
2014-09-22 22:13:23
542
原创 递归求fibonacci的第n项
#include int fn(int n) { int g=0; if (n==1||n==2) g=1; else g=fn(n-1)+fn(n-2); return(g); } int main() { int c=0; printf("Please input c:"); scanf("%d",
2014-09-19 20:12:50
453
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人