求助
C++编程;*
* *
* *
/ \
/ \
/ \
-----------
/ \
/ \
/ \
这个是我要输出的图形
我的程序如下:
#include "iostream"
using namespace std;
void put1()
{
cout<<" * "<<endl;
cout<<" * * "<<endl;
cout<<" * * "<<endl;
}
void put2()
{
cout<<" / \ "<<endl;
cout<<" / \ "<<endl;
cout<<" / \ "<<endl;
}
void put3()
{
cout<<"-----------"<<endl;
}
int main()
{
put1();
put2();
put3();
put2();
return 0;
}
但结果并不对,
测试的结果是这么说:
' ' : unrecognized character escape sequence
请高手帮我解决这个问题