幽默:程序员的进化
高中时期
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 无删改 仅以此纪念陈皓(左耳朵耗子)
我的笔记本电脑系统是 win 11 ,里面有非常重要的资料。 电脑没有第二个硬盘位置,目前插的硬盘是 M.2 2280 512GB ,快用满了。把这款 512GB 换成新买的…
有大佬有 pdf 转图片的解决方案么? 尝试解决: 尝试用 fitz + cgo 来读取 pdf 然后转成 png ,但是在编译 fitz 的时候就有问题了。编译的头文件跟 …
我想买个骁龙的笔记本,具体来说是荣耀的 Magicbook 14 Art 骁龙版,但是我不确定这个笔记本的兼容性如何,不联网的我没法测试。是否能通过在路由端禁用个别 IP 或者…
合速度