《不正经的题解》
2025-06-01 11:19:22
发布于:江苏
3阅读
0回复
0点赞
这题也是十分简单
#include<bits/stdc++.h>
using namespace std;
//测试内存能否储存函数
void Test_function(int x) {
//在函数内部对主要语句进行测试
for (int i = x;i >= 1; i--) {//测试循环,选择能否正常嵌套
if (i % 7 == 0) {
Test_function(i-1);
}
continue;
}
}
struct Test_structure{
long long int Test_Int;
long double Test_Float;
bool Test_Bool;
char Test_Char;
string Test_String;
}Test_array[1000];//测试储存变量及结构体
//编辑输入输出函数
void put_out_string (string the_sentence) {
if (the_sentence.size()) {
cout << the_sentence;
}
return;
}
void into_string (string What_you_entered) {
string the_sentence;
the_sentence = What_you_entered;
if (the_sentence==What_you_entered){
put_out_string(the_sentence);
}
return;
}
string the_string;//创建要输出的字符串
int main() {
the_string="小码王牛逼!";
if ( !( the_string.empty() ) ) {
into_string (the_string);
}
return 0;
}
这里空空如也
有帮助,赞一个