#include<bits/stdc++.h>
int main ()
{
std::string s ("This is an sentence.");
std::cout << s << std::endl;
printf("%s\n", s.c_str());
return 0;
}
C++ printf with std::string
最新推荐文章于 2024-09-27 16:04:49 发布
#include<bits/stdc++.h>
int main ()
{
std::string s ("This is an sentence.");
std::cout << s << std::endl;
printf("%s\n", s.c_str());
return 0;
}