CppGuide icon indicating copy to clipboard operation
CppGuide copied to clipboard

阿里云大学.md里面好多代码块里面需要换行的地方没有换行

Open SteveYu000 opened this issue 1 year ago • 1 comments

SteveYu000 avatar Jul 28 '23 16:07 SteveYu000

比如这个

#include <iostream>using namespace std;
 // 函数声明int max(int num1, int num2);
 int main (){
   // 局部变量声明
   int a = 100;
   int b = 200;
   int ret;
 
   // 调用函数来获取最大值
   ret = max(a, b);
 
   cout << "Max value is : " << ret << endl;
 
   return 0;}
 // 函数返回两个数中较大的那个数int max(int num1, int num2) {
   // 局部变量声明
   int result;
 
   if (num1 > num2)
      result = num1;
   else
      result = num2;
 
   return result; }

这里max函数没换行,被注释掉了

SteveYu000 avatar Jul 28 '23 16:07 SteveYu000