
bool函数使用
#include <iostream> #include <vector> #include <string> using namespace std; bool set(int &x,int &y); int main() { int y_size; int x_size = 3; cout << "please enter y_size:"; cin >> y_size; if(set(x_size,y_size)) { cout << "两者相等\\n" << endl; } return 0; } bool set(int &x,int &y) { if(x == y) return true; else return false; }
bool函数的使用
👁️ 阅读量:0
© 版权声明:本文《bool函数使用》内容均为本站精心整理或网友自愿分享,如需转载请注明原文出处:https://www.zastudy.cn/wen/1686496073a270076.html。