cc_project_template_bazel

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

main.cc (303B)


      1 #include <iostream>
      2 
      3 #include "bar.h"
      4 #include "foo.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 = foobar::Foo(3);
     11   auto y = foobar::Bar("Fred");
     12   std::cout << "x=" << x << ",y=" << y << std::endl;
     13 }