C++求助
如下,小白求代码打印出下列图案。CCCC + +
C + +
C ++++++++++++++
C + +
CCCC + + #include <iostream>
#include <string>
int main()
{
std::string str =
" CCCC + +\n"
"C + +\n"
"C ++++++++++++++\n"
"C + +\n"
" CCCC + +\n";
std::cout << str << std::endl;
return 0;
}
人造人 发表于 2019-3-6 23:01
字符串厉害了,我还想着用if循环{:5_100:}
页:
[1]