64,648
社区成员
发帖
与我相关
我的任务
分享
\n
\t
\r
……
转义字符 都是以 \ 开头的
#include <iostream>
using namespace std;
class Human
{
public:
int wseight;
};
int main()
{
Human Tom;
Tom.wseight=85;
cout <<"汤姆的体重为" <<Tom.wseight <<"\n";
return 0;
}
#include <iostream>
using namespace std;
class Human
{
public:
int wseight;
};
int main()
{
Human Tom;
Tom.wseight = 85;
cout << "汤姆的体重为" << Tom.wseight << "\n";
return 0;
}
#include <iostream>
using namespace std;
class Human
{
public:
int wseight;
};
int main()
{
Human Tom;
Tom.wseight = 85;
cout << "汤姆的体重为" << Tom.wseight << "n\"";
return 0;
}