幽默:程序员的进化
高中时期
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 无删改 仅以此纪念陈皓(左耳朵耗子)
由于昨天码云宕机,今天要提交代码。 刚才进行了如下操作: 如果直接 pull merge 的话提示没有冲突 使用 pull --rebase 以后有冲突,但是发现前两天的本地…
1 、各个大中厂内核网络开发,纯 C 语言开发岗位也要做 leecode 题目吗? 2 、日常用的都是纯 C ,要是做 leecode ,没有 C++的 STL ,应该很难做吧…
1. 先前我问了一下,如果使用 cf 不考虑大陆,数据中心选择哪里好,后面我将我原有的 go 服务使用 worker 重写后, 速度比以前提高太多。 2. 这个服务我自己做了…
合速度