📅  最后修改于: 2022-03-11 14:44:58.484000             🧑  作者: Mango
#include
#include
struct hello_world {
const char* hello;
const char* world;
};
int main ()
{
hello_world hw = {
.hello = "hello, ",
.world = "world!"
};
std::cout << hw.hello << hw.world << std::endl;
return 0;
}