| Index: base/cpp101/hello_world.cc
|
| diff --git a/base/cpp101/hello_world.cc b/base/cpp101/hello_world.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2f48af9250e4a1abe5d59a0685ffcb3f2dfb764d
|
| --- /dev/null
|
| +++ b/base/cpp101/hello_world.cc
|
| @@ -0,0 +1,14 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <iostream>
|
| +
|
| +#include "base/logging.h"
|
| +
|
| +int main(int argc, char* argv[]) {
|
| + std::cout << "Hello, world!" << std::endl;
|
| +
|
| + // Use of LOG is more common than raw std::cout.
|
| + LOG(INFO) << "Hello, logging!";
|
| +}
|
|
|