cc_project_template_gn

A gn, ninja, and googletest-based C++ project template
git clone https://git.bracken.jp/cc_project_template_gn.git
Log | Files | Refs | Submodules | README | LICENSE

main.cc (282B)


      1 #include <iostream>
      2 
      3 #include "foo.h"
      4 #include "bar.h"
      5 
      6 int main(int argc, char** argv) {
      7   for (auto i = 0; i < argc; ++i)
      8     std::cout << "argv[" << i << "]: " << argv[i] << std::endl;
      9 
     10   auto x = Foo(3);
     11   auto y = Bar(x);
     12   std::cout << "x=" << x << ",y=" << y << std::endl;
     13 }