/*
*输出string对象的第一个字符
*/
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str("Hello World!!!");
if(!str.empty())
cout << str[0] << endl;
return 0;
}
/*
*输出string对象的第一个字符
*/
#inclu
/*
*输出string对象的第一个字符
*/
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str("Hello World!!!");
if(!str.empty())
cout << str[0] << endl;
return 0;
}
/*
*输出string对象的第一个字符
*/
#inclu