我写过的最蠢的代码是?

发布于:2023-09-27 ⋅ 阅读:(123) ⋅ 点赞:(0)

前言

你猜对了,我就是为这个来的
在这里插入图片描述
所以,还是看完吧

代码之嵌套循环

作为一个爱搞电脑的人,最喜欢用C++来自己写烤鸡程序

#include<bits/stdc++.h>
using namespace std;
int main()
{
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	while(1)
	//这里不多放了,我搞了1万多行。 
	return 0;
}

结果······
在这里插入图片描述
懂得都懂······o(╥﹏╥)o

代码之多线程

本来我的烤鸡代码是没错的

#include <iostream>
#include <thread>
void f()
{
	for (int i = 0; i < 1e9; i++);
}
int main()
{
	std::jthread t1(f);
	std::jthread t2(f);
}

就是,我用的是C++ 5
在这里插入图片描述
你看他笑的多开心啊!
结果······
在这里插入图片描述

代码之你好

不用我多说

#include<bits/stdc++.h>
using namespace std;
int main()
{
	while(1)
	{
		cout<<"你好";
	} 
	return 0;
}

在这里插入图片描述
《iPhone15将在9月22号发布》
《CPU型号后面的字母是什么意思?(AMD篇)》
《CPU型号后面的字母是什么意思?(intel篇)》

本文含有隐藏内容,请 开通VIP 后查看