幽默:程序员的进化
高中时期
10 PRINT "HELLO WORLD"
20 END
大学新生
program Hello(input, output)
begin
writeln(\'Hello World\')
end.
高年级大学生
include
int main(void)
{
printf("Hello, world!\n");
return 0;
}
职业新手
#include
void main(void)
{
char *message[] = {"Hello ", "World"};
int i;
for(i = 0; i < 2; ++i)
printf("%s", message[i]);
printf("\n");
}
职业老手
#include
#include
using namespace std;
class string
{
private:
int size;
char *ptr;
string() : size(0), ptr(new char[1]) { ptr[0] = 0; }
string(const string &s) : size(s.size)
{
ptr = new char[size + 1];
strcpy(ptr, s.ptr);
}
~string()
{
delete [] ptr;
}
friend ostream &operator
转载于酷壳CoolShell 无删改 仅以此纪念陈皓(左耳朵耗子)
家用环境,防止物业突然修变压器, 之前的 H1000M 在一次突然停电后就无法开机了,国网赔了 150 , 自己添点 180 米上了个 UPS ,该有的都有感觉还可以。 好…
Table of Contents 分享最近阅读的书藉清单(二) Calculus Made Easy How to Design Programs Teach Yourse…
python 中有 GIL 所以不支持多个线程同时运行,那协程又是什么和线程的区别是什么 en.wikipedia.org/wiki/Coroutine super…
合速度