1 Star 0 Fork 0

Admin / text_cpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
text_3.cpp 796 Bytes
一键复制 编辑 原始数据 按行查看 历史
Admin 提交于 2024-05-16 16:22 . 作业c++(3)
#include <iostream>
using namespace std;
/*bool isPalindrome(int num) {
if (num < 0 || (num % 10 == 0 && num != 0))
return false;
int reversedNum = 0;
while (num > reversedNum) {
reversedNum = reversedNum * 10 + num % 10;
num /= 10;
}
return num == reversedNum || num == reversedNum / 10;
}
int main() {
int num;
std::cout << "请输入一个整数:";
std::cin >> num;
if (isPalindrome(num))
std::cout << num << " 是回文结构。" << std::endl;
else
std::cout << num << " 不是回文结构。" << std::endl;
return 0;
}*/
int main()
{
/*int a = 0;
int b;
a = (a == (a == 1));
std::cout <<a;*/
int x = 10;
int y = (x++,x++,x++);
std:: cout << x << " " << y;
return 0;
}
1
https://gitee.com/small-c_2_0/text_cpp.git
git@gitee.com:small-c_2_0/text_cpp.git
small-c_2_0
text_cpp
text_cpp
master

搜索帮助