- 👋 Hi, I’m @sYstemk1t
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
systemk1t / learn Goto Github PK
View Code? Open in Web Editor NEWDevil Training
Devil Training
#define EOF (-1)
),即-1。int c1 = NULL;
这种写法,虽然本身是合法的(本质上#define NULL (0)
),但看起来很别扭,NULL一般只用来给指针型变量赋值或初始化,表示空指针。getchar(c)
错误,getchar的标准函数签名是int getchar();
,你这样写编译不会报错吗?程序执行的结果正确吗?while ((len - getline(line, MAXLINE)) > 0)
写错了吧,你是想写 while ((len = getline(line, MAXLINE)) > 0)
吧,自己测试过结果吗?不能只保证编译通过啊。 else if (c == '\'' || c == '""')
这个'""'是什么?单引号引起来的只能是一个字符,转义字符只是写起来是两个字符,实际上本身表示一个字符,比如'表示',\t表示水平制表符4-1你根本就没编译测试吧?至少你第八行一个笔误getcahr()
就出卖了你。我已经强调很多次了,写程序最重要的是把它run起来,不要求你的程序多么健壮鲁棒,但你基本的测试用例得过吧,bug得解吧?你这个代码问题太多了,基本的测试都不能通过,把它修正,PLEASE!
4-2是单链表的demo,程序运行大体没问题,可以看出你还是下了功夫的,没有敷衍了事。你初学数据结构,且C语言也仅仅用了两个月,所以我不要求你完全独立完成,但希望你能真的搞懂每个接口函数的代码实现,另外,我的单链表的内存图画好了吗?
D888A手滑写错了吧,应该是D888H,另外add al,al之后AX确实是D810H啊,你觉着哪里错了呢?
add ah,ah AX = D882H
add al,6 AX = D888A
add al,al AX =D810H ;算错了,没有仔细看,只计算低八位
完成的很好,自己做了很多研究,望继续保持!
虽然WinSDK中GUI这一部分对你来说用处不大,且现在的环境也没有人直接用原生SDK写GUI程序了,但对于初学者来说,原汁原味才是最好的。日后无论是学已经过气的MFC、还是常青树QT甚至是过渡到.Net,都极有裨益。
char *str1 = "hello"; //"hello"是字符串常量,str1是char*类型,即C风格字符串,str1指向"hello"的第一个字符。
char str2[6] = "hello"; //str2是字符数组,是个变量,str2里存储的是连续的'h','e','l','l','o','\0'六个字符
3.搞懂前置自增/减和后置自增/减的区别。
https://github.com/sYstemk1t/Learn/blob/master/1Week/Assembly/第一章/进制转换.md#二进制转十六进制
最后一行的0010 1101 结果为2D不是2B
return n;
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.