background
学一点点c语言,然后学学javaweb,Pythonweb的东西。编程弄久了本来枯燥,然后就想干啥干啥吧。编程累了就学学rt,rt没意思了就来看看编程。b站找了个视频,我感觉适合真正的0基础计算机小白来看,我好歹也是摸过代码写过脚本的,那进度我受不了。于是就找了电子版的书看,反正视频也是基于书讲的,书看不明白就去看看他视频的讲解。这样下来学习效率应该会快很多。看到书第二章,发现有习题,于是就做了做,蛮简单的。希望编程学习之路都那么简单吧,哈哈哈~简单记录下我手搓的代码。
1
#include <stdio.h>
int main(void) { printf("w3l kin\n"); printf("w3l\nkin\n"); printf("w3l "); printf("kin"); return 0; }
|
2
#include <stdio.h>
int main(void) { printf("w3lkin\n"); printf("china"); return 0; }
|
3
#include <stdio.h>
int main(void) { int age=18; int day=age*365; printf("my age is:%d\n",age); printf("我来到这个世界%d天了",day); return 0; }
|
4
#include <stdio.h>
int jolly(void){ printf("For he's a jooly good fellow!\n"); }
int deny(void){ printf("Whic nobody can deny!"); }
int main(void) { jolly(); jolly(); jolly(); deny(); return 0; }
|
5
#include <stdio.h>
int br(void){ printf("Brazil Russia,"); }
int ic(void){ printf("India China,\n"); }
int main(void) { br(); ic(); ic(); br(); return 0; }
|
6
#include <stdio.h>
int main(void) { int toes=10,toes2=toes*2,toess=toes*toes; printf("原本的数值是%d\n数值的两倍是%d\n数值的平方是%d",toes,toes2,toess); return 0; }
|
7
#include <stdio.h>
int smile(void){ printf("smile!"); }
int main(void) { smile(); smile(); smile(); printf("\n"); smile(); smile(); printf("\n"); smile(); return 0; }
|
8
#include <stdio.h>
int two(void){ printf("two\n"); }
int one_three(void){ printf("one\n"); two(); printf("three\n"); }
int main(void) { printf("starting now:\n"); one_three(); printf("done!"); return 0; }
|