
This is a record of my first code in my university,
I opened it with GB18030 encoding
/*
* BelieveInYourself.c
*
* Created on: 2012-10-9
* Author: duchengqian
*/
#include<stdio.h>
main()
{
printf("Try Your Best To Be No.1!Believe In Yourself!");/*如果有一天,遇到了困难,就看看它*/
}
It's not perfect, but I love it. Built it with clang
$ clang BelieveInYourself.c BelieveInYourself.c:8:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int] main() ^ 1 warning generated.
And I also found this
/*
* TheSquare.c
*
* Created on: 2012-10-12
* Author: duchengqian
*/
#include<stdio.h>
int main()
{int a,s;
a=6;
s=6*6;
printf("%d",s);
}
Looks ugly.
I refactored them
/*
* BelieveInYourself.c
* Created on: 2012-10-9
* Author: duchengqian
*/
#include<stdio.h>
int main() {
printf("Try Your Best To Be No.1! Believe In Yourself!n"); /*如果有一天,遇到了困难,就看看它*/
return 0;
}
/*
* TheSquare.c
*
* Created on: 2012-10-12
* Author: duchengqian
*/
#include<stdio.h>
int main() {
int a,s;
a=6;
s=6*6;
printf("%d",s);
return 0;
}
It's really hard time. qwq
Almost seven years.




近期评论