mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
13 lines
249 B
C++
13 lines
249 B
C++
#include "yaml-cpp/yaml.h"
|
|
#include <iostream>
|
|
|
|
int main()
|
|
{
|
|
YAML::Emitter out(std::cout);
|
|
out << YAML::BeginSeq;
|
|
out << "item 1";
|
|
out << YAML::BeginSeq << "foo 1" << "bar 2" << YAML::EndSeq;
|
|
out << YAML::EndSeq;
|
|
return 0;
|
|
}
|