幽默:程序员的进化
高中时期
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 无删改 仅以此纪念陈皓(左耳朵耗子)
Python 中如何禁用( disable )某些函数? 由于项目背景的原因,前辈写的某些函数,让后来的开发者禁用、慎用,如何通过门禁检查,能拦截住 各位大佬,有什么好的办法吗…
java 开发idea 的许可快到期了有 github copilot 授权不知道 vs code 开发 java 怎么样,有长期使用的大佬说一下吗,或者之前长期使用 idea…
第一是今年开发岗哀鸿遍野,裸辞了可能根本没 hc ,第二是在一线也混了挺久,感觉有点累。 想回老家一段时间,父母也可以安排工作,而且家里的房子是崭新的别墅大 house ( …