헤더파일

//foo/src/bar/baz.h 파일인 경우
#ifndef FOO_BAR_BAZ_H_
#define FOO_BAR_BAZ_H_

...

#endif   //FOO_BAR_BAZ_H_
//google-awesome-project/src/base/logging.h 파일인 경우 
#include "base/logging.h"

범위

클래스

Thing (int foo, int bar) : foo_(foo), bar_(bar) { }
class Student{
public:
  Student(const int id, const StudentYear year) : id_(id), year_(year) {}
  Student(const Student& student) : id_(student.id), year_(student.year) {}  //복사 생성자
  Student& operator=(const Student& student) {   //대입 연산자
    if(this != &student) { *this = Student(student); }
    return *this;
  }
  ~Student();   //소멸자
private:
  const int id_;
  StudentYear year;
}

그 외의 기능들

void Foo(const string &in, string *out);
ch = static_cast<char>(i);    //int to char
ch = (char)i;    //bad