摘要: #include <stdio.h>int main(){ unsigned char result = 1["night"]*2["girls"]+4["allnight"]; char *of_you = "Though you was strong enough and seem never died"; printf("You got %s", result+of_you); return 0;} 结果是:You got died解释:1["night"] 阅读全文
posted @ 2012-05-04 17:47 长虹落日 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#define N 19main(){ int i; for(i=0;i<=N;i++) { printf("%*.*s%-*.*s\n",N,i<=N/2?i:N-i,"*******************",N,i<=N/2?i+1:N -i+1,"*******************"); }} 如果写printf("%s","**********************")相信看得懂%m.ns中间的m.n是对%s的修饰 阅读全文
posted @ 2012-05-04 17:10 长虹落日 阅读(187) 评论(0) 推荐(0) 编辑