SYMBOL INDEX (1846 symbols across 432 files) FILE: basic_content/abstract/abstract.cpp class A (line 14) | class A { method g (line 17) | void g() { this->f(); } method A (line 18) | A() {} class B (line 20) | class B : public A { method f (line 22) | void f() { cout << "B:f()" << endl; } function main (line 24) | int main() { FILE: basic_content/abstract/abstract_base.h function class (line 14) | class AbstractBase { FILE: basic_content/abstract/derived_full.cpp class Base (line 12) | class Base { method getX (line 17) | int getX() { return x; } class Derived (line 20) | class Derived : public Base { method fun (line 22) | void fun() { cout << "fun() called"; } function main (line 25) | int main(void) { FILE: basic_content/abstract/interesting_facts1.cpp class Test (line 15) | class Test { method getX (line 20) | int getX() { return x; } function main (line 23) | int main(void) { FILE: basic_content/abstract/interesting_facts2.cpp class Base (line 15) | class Base { method getX (line 20) | int getX() { return x; } class Derived (line 22) | class Derived : public Base { method show (line 24) | void show() { cout << "In Derived \n"; } method Derived (line 25) | Derived() {} function main (line 27) | int main(void) { FILE: basic_content/abstract/interesting_facts3.cpp class Base (line 12) | class Base { method getX (line 17) | int getX() { return x; } class Derived (line 19) | class Derived : public Base { function main (line 23) | int main(void) { FILE: basic_content/abstract/interesting_facts4.cpp class Base (line 13) | class Base { method Base (line 19) | Base(int i) { x = i; } class Derived (line 22) | class Derived : public Base { method Derived (line 26) | Derived(int i, int j) : Base(i) { y = j; } method fun (line 27) | void fun() { cout << "x = " << x << ", y = " << y; } function main (line 30) | int main(void) { FILE: basic_content/abstract/interesting_facts5.cpp class Base (line 13) | class Base { method Base (line 15) | Base() { cout << "Constructor: Base" << endl; } class Derived (line 19) | class Derived : public Base { method Derived (line 21) | Derived() { cout << "Constructor: Derived" << endl; } function main (line 25) | int main() { FILE: basic_content/abstract/pure_virtual.cpp class A (line 14) | class A { function main (line 22) | int main() { FILE: basic_content/assert/assert.c function main (line 4) | int main() FILE: basic_content/assert/ignore_assert.c function main (line 13) | int main(){ FILE: basic_content/bit/bit.cpp type stuff (line 4) | struct stuff { function main (line 11) | int main() { FILE: basic_content/c_poly/c++_examp.cpp class A (line 12) | class A { method f (line 14) | virtual void f() //虚函数实现 class B (line 20) | class B : public A // 必须为共有继承,否则后面调用不到,class默认为私有继承! method f (line 23) | virtual void f() //虚函数实现,子类中virtual关键字可以没有 function main (line 29) | int main() { FILE: basic_content/c_poly/c_examp.c type A (line 17) | typedef struct _A type B (line 26) | typedef struct _B function FunA (line 31) | void FunA() function FunB (line 36) | void FunB() function main (line 42) | int main() FILE: basic_content/const/class_const/c++11_example/apple.h function class (line 3) | class Apple { FILE: basic_content/const/class_const/c++11_example/main.cpp function main (line 4) | int main() { FILE: basic_content/const/class_const/first_example/apple.h function class (line 3) | class Apple { FILE: basic_content/const/class_const/first_example/main.cpp function main (line 5) | int main() { FILE: basic_content/const/class_const/overload_example/apple.h function class (line 3) | class Apple { FILE: basic_content/const/class_const/overload_example/main.cpp function main (line 5) | int main() { FILE: basic_content/const/class_const/static_example/apple.h function class (line 2) | class Apple { FILE: basic_content/const/class_const/static_example/main.cpp function main (line 3) | int main() { FILE: basic_content/const/const_function.cpp function f (line 4) | void f(const int i) { function main (line 9) | int main() { f(1); } FILE: basic_content/const/const_num.cpp function main (line 3) | int main() { FILE: basic_content/const/extern_const/const_file2.cpp function main (line 8) | int main() { std::cout << ext << std::endl; } FILE: basic_content/const/extern_const/file2.cpp function main (line 8) | int main() { std::cout << (ext + 10) << std::endl; } FILE: basic_content/const/funciton_const/condition1/condition1.cpp function main (line 4) | int main() { FILE: basic_content/const/funciton_const/condition1/condition2.cpp function main (line 4) | int main() { FILE: basic_content/const/funciton_const/condition1/condition3.cpp function main (line 4) | int main() { FILE: basic_content/const/funciton_const/condition2/condition1.cpp function main (line 3) | int main() { FILE: basic_content/const/funciton_const/condition2/condition2.cpp function main (line 3) | int main() { FILE: basic_content/const/funciton_const/condition2/condition3.cpp function main (line 3) | int main() { FILE: basic_content/const/funciton_const/condition3/condition1.cpp function main (line 4) | int main() { FILE: basic_content/decltype/decltype.cpp function multiply (line 9) | auto multiply(T x, T y) -> decltype(x * y) { function main (line 13) | int main() { FILE: basic_content/enum/classic_practice.cpp type Color (line 6) | namespace Color { type Type (line 7) | enum Type { RED = 15, YELLOW, BLUE } type Color1 (line 21) | struct Color1 { type Type (line 22) | enum Type { RED = 102, YELLOW, BLUE } type Color2 (line 29) | enum class Color2 { RED = 2, YELLOW, BLUE } type Color3 (line 31) | enum class Color3 : char type Color3 (line 34) | enum class Color3 : char { RED = 'r', BLUE } function main (line 36) | int main() { FILE: basic_content/enum/tradition_color.cpp type Color (line 4) | enum Color { RED, BLUE } type Feeling (line 5) | enum Feeling { EXCITED, BLUE } function main (line 7) | int main() { FILE: basic_content/explicit/explicit.cpp type A (line 5) | struct A { method A (line 6) | A(int) {} type B (line 10) | struct B { method B (line 11) | explicit B(int) {} function doA (line 15) | void doA(A a) {} function doB (line 17) | void doB(B b) {} function main (line 19) | int main() { FILE: basic_content/extern/extern_c++/add.c function add (line 3) | int add(int x,int y) { FILE: basic_content/extern/extern_c++/add.cpp function main (line 6) | int main() { FILE: basic_content/extern/extern_c/add.c function main (line 2) | int main() { FILE: basic_content/extern/extern_c/add.cpp function add (line 3) | int add(int x, int y) { return x + y; } FILE: basic_content/friend/friend_class.cpp class A (line 5) | class A { method A (line 7) | A(int _a) : a(_a){} class B (line 14) | class B { method getb (line 16) | int getb(A ca) { return ca.a; } function main (line 19) | int main() { FILE: basic_content/friend/friend_func.cpp class A (line 5) | class A { method A (line 7) | A(int _a) : a(_a){} function geta (line 13) | int geta(A &ca) { return ca.a; } function main (line 15) | int main() { FILE: basic_content/func_pointer/func_pointer.cpp function myfunc (line 23) | void myfunc(void) { cout << "asda" << endl; } function glFun (line 25) | void glFun(int a) { cout << a << endl; } function main (line 26) | int main() { FILE: basic_content/inline/inline.cpp function Foo (line 16) | inline int Foo(int x, int y) // 函数定义 function main (line 34) | int main() { cout << Foo(1, 2) << endl; } FILE: basic_content/inline/inline.h function class (line 2) | class A { FILE: basic_content/inline/inline_virtual.cpp class Base (line 3) | class Base { method who (line 5) | inline virtual void who() { cout << "I am Base\n"; } class Derived (line 8) | class Derived : public Base { method who (line 10) | inline void who() // 不写inline时隐式内联 function main (line 16) | int main() { FILE: basic_content/macro/do_while.cpp function f (line 19) | int f() { function ff (line 36) | int ff() { function fc (line 56) | int fc() { function main (line 67) | int main() { FILE: basic_content/macro/sig_examp.cpp function main (line 36) | int main() { FILE: basic_content/maohao/maohao.cpp class A (line 6) | class A { function main (line 12) | int main() { FILE: basic_content/pointer_refer/copy_construct.cpp class Copyable (line 13) | class Copyable { method Copyable (line 15) | Copyable() {} method Copyable (line 16) | Copyable(const Copyable &o) { cout << "Copied" << endl; } function Copyable (line 18) | Copyable ReturnRvalue() { method Copyable (line 15) | Copyable() {} method Copyable (line 16) | Copyable(const Copyable &o) { cout << "Copied" << endl; } function AcceptVal (line 21) | void AcceptVal(Copyable a) {} function AcceptRef (line 22) | void AcceptRef(const Copyable &a) {} function main (line 24) | int main() { FILE: basic_content/pointer_refer/effec.cpp function test1 (line 3) | void test1(int *p) { function test2 (line 8) | void test2(int &p) { function main (line 13) | int main() { FILE: basic_content/sizeof/blackclass.cpp class A (line 12) | class A {} function main (line 13) | int main() { FILE: basic_content/sizeof/genA.cpp class A (line 14) | class A { function main (line 24) | int main() { FILE: basic_content/sizeof/geninhe.cpp class A (line 15) | class A { class B (line 36) | class B : A { class C (line 44) | class C { class A1 (line 49) | class A1 { method fun (line 50) | virtual void fun() {} class C1 (line 52) | class C1 : public A1 {} function main (line 54) | int main() { FILE: basic_content/sizeof/moreinhe.cpp class A (line 13) | class A { class B (line 19) | class B { class C (line 28) | class C : A, B { function main (line 32) | int main() { FILE: basic_content/sizeof/morevir.cpp class A (line 13) | class A { function main (line 20) | int main() { FILE: basic_content/sizeof/static.cpp class A (line 13) | class A { function main (line 22) | int main() { FILE: basic_content/sizeof/virinhe.cpp class A (line 13) | class A { method fun (line 14) | virtual void fun() {} class B (line 17) | class B { method fun2 (line 18) | virtual void fun2() {} class C (line 20) | class C : virtual public A, virtual public B { method fun3 (line 22) | virtual void fun3() {} function main (line 25) | int main() { FILE: basic_content/sizeof/virmoreinhe.cpp class A (line 13) | class A { method fun (line 14) | virtual void fun() {} class B (line 17) | class B { method fun2 (line 18) | virtual void fun2() {} class C (line 20) | class C : public A, public B { method fun3 (line 22) | virtual void fun3() {} function main (line 25) | int main() { FILE: basic_content/static/nostatic_class.cpp class Apple (line 4) | class Apple { method Apple (line 8) | Apple() { function main (line 15) | int main() { FILE: basic_content/static/static_class.cpp class Apple (line 4) | class Apple { method Apple (line 8) | Apple() { function main (line 15) | int main() { FILE: basic_content/static/static_demo.cpp function demo (line 7) | void demo() { function main (line 18) | int main() { FILE: basic_content/static/static_error_variable.cpp class Apple (line 6) | class Apple { method Apple (line 10) | Apple(){ function main (line 15) | int main() { FILE: basic_content/static/static_funciton.cpp class Apple (line 4) | class Apple { method printMsg (line 7) | static void printMsg() { cout << "Welcome to Apple!"; } function main (line 11) | int main() { FILE: basic_content/static/static_variable.cpp class GfG (line 6) | class GfG { method GfG (line 10) | GfG(){ function main (line 17) | int main() { FILE: basic_content/struct/ext_struct_func.cpp type Base (line 4) | struct Base { method print (line 11) | virtual void print() { printf("%s\n", "Base"); } method Base (line 12) | Base() { cout << "Base construct" << endl; } type Derived (line 16) | struct Derived : Base { method Derived (line 18) | Derived() { cout << "Derived construct" << endl; } method print (line 23) | void print() { printf("%s\n", "Derived"); } function main (line 26) | int main() { FILE: basic_content/struct/struct_func.c type Base (line 3) | struct Base function Base (line 15) | void Base() function main (line 22) | int main() FILE: basic_content/struct/struct_func.cpp type Base (line 4) | struct Base { method print (line 11) | void print() { printf("%s\n", "hello world"); } function main (line 14) | int main() { FILE: basic_content/struct/struct_func_func.cpp type Base (line 4) | struct Base { method print (line 11) | void print() { printf("%s\n", "hello world"); } type Base1 (line 14) | struct Base1 { method print (line 21) | void print() { printf("%s\n", "hello world"); } function Base (line 23) | void Base() { printf("%s\n", "I am Base func"); } method print (line 11) | void print() { printf("%s\n", "hello world"); } function main (line 25) | int main() { FILE: basic_content/this/person.cpp class Person (line 5) | class Person { method Person (line 8) | Person(char *n, int a, SexType s) { method get_age (line 14) | int get_age() const { return this->age; } method Person (line 15) | Person &add_age(int a) { function main (line 27) | int main() { FILE: basic_content/union/union.cpp function UnionTest (line 17) | UnionTest() : i(10) { print(i); } function print (line 22) | void print(int i) { std::cout << i << std::endl; } function main (line 32) | int main() { FILE: basic_content/using/derived_base.cpp class Base1 (line 5) | class Base1 { method Base1 (line 7) | Base1() : value(10) {} method test1 (line 9) | void test1() { cout << "Base test1..." << endl; } class Derived1 (line 15) | class Derived1 : Base1 { method test2 (line 17) | void test2() { cout << "value is " << value << endl; } class Base (line 20) | class Base { method Base (line 22) | Base() : value(20) {} method test1 (line 24) | void test1() { cout << "Base test1..." << endl; } class Derived (line 35) | class Derived : Base { method test2 (line 38) | void test2() { cout << "value is " << value << endl; } function main (line 41) | int main() { FILE: basic_content/using/using_derived.cpp class Base (line 12) | class Base { method f (line 14) | void f() { cout << "f()" << endl; } method f (line 15) | void f(int n) { cout << "Base::f(int)" << endl; } class Derived (line 18) | class Derived : private Base { method f (line 21) | void f(int n) { cout << "Derived::f(int)" << endl; } function main (line 24) | int main() { FILE: basic_content/using/using_global.cpp function func (line 13) | void func() { cout << "::func" << endl; } type ns1 (line 15) | namespace ns1 { function func (line 16) | void func() { cout << "ns1::func" << endl; } type ns2 (line 19) | namespace ns2 { function func (line 25) | void func() { cout << "other::func" << endl; } function main (line 29) | int main() { FILE: basic_content/using/using_typedef.cpp function main (line 17) | int main() { FILE: basic_content/virtual/set1/emp.cpp class Employee (line 4) | class Employee { method raiseSalary (line 6) | virtual void raiseSalary() { cout << 0 << endl; } method promote (line 8) | virtual void promote() { /* common promote code */ class Manager (line 12) | class Manager : public Employee { method raiseSalary (line 13) | virtual void raiseSalary() { cout << 100 << endl; } method promote (line 15) | virtual void promote() { /* Manager specific promote */ class Engineer (line 18) | class Engineer : public Employee { method raiseSalary (line 19) | virtual void raiseSalary() { cout << 200 << endl; } method promote (line 21) | virtual void promote() { /* Manager specific promote */ function globalRaiseSalary (line 30) | void globalRaiseSalary(Employee *emp[], int n) { function main (line 36) | int main() { FILE: basic_content/virtual/set2/default_arg.cpp class Base (line 13) | class Base { method fun (line 15) | virtual void fun(int x = 10) { cout << "Base::fun(), x = " << x << end... class Derived (line 18) | class Derived : public Base { method fun (line 20) | virtual void fun(int x = 20) { cout << "Derived::fun(), x = " << x << ... function main (line 23) | int main() { FILE: basic_content/virtual/set3/copy_consrtuct.cpp class Base (line 4) | class Base { class Derived (line 8) | class Derived : public Base { method Derived (line 10) | Derived() { cout << "Derived created" << endl; } method Derived (line 12) | Derived(const Derived &rhs) { function main (line 19) | int main() { FILE: basic_content/virtual/set3/full_virde.cpp class base (line 17) | class base { method base (line 19) | base() { cout << "Constructing base \n"; } class derived (line 23) | class derived : public base { method derived (line 25) | derived() { cout << "Constructing derived \n"; } function main (line 29) | int main(void) { FILE: basic_content/virtual/set3/inline_virtual.cpp class Base (line 3) | class Base { method who (line 5) | inline virtual void who() { cout << "I am Base\n"; } class Derived (line 8) | class Derived : public Base { method who (line 10) | inline void who() // 不写inline时隐式内联 function main (line 16) | int main() { FILE: basic_content/virtual/set3/static_error.cpp function fun (line 12) | virtual static void fun() {} function fun (line 13) | static void fun() const {} FILE: basic_content/virtual/set3/vir_con.cpp class Base (line 30) | class Base { method Base (line 32) | Base() {} class Derived1 (line 46) | class Derived1 : public Base { method Derived1 (line 48) | Derived1() { cout << "Derived1 created" << endl; } method Derived1 (line 50) | Derived1(const Derived1 &rhs) { method ChangeAttributes (line 56) | void ChangeAttributes() { cout << "Derived1 Attributes Changed" << end... method Base (line 58) | Base *Clone() { return new Derived1(*this); } class Derived2 (line 61) | class Derived2 : public Base { method Derived2 (line 63) | Derived2() { cout << "Derived2 created" << endl; } method Derived2 (line 65) | Derived2(const Derived2 &rhs) { method ChangeAttributes (line 71) | void ChangeAttributes() { cout << "Derived2 Attributes Changed" << end... method Base (line 73) | Base *Clone() { return new Derived2(*this); } class Derived3 (line 76) | class Derived3 : public Base { method Derived3 (line 78) | Derived3() { cout << "Derived3 created" << endl; } method Derived3 (line 80) | Derived3(const Derived3 &rhs) { method ChangeAttributes (line 86) | void ChangeAttributes() { cout << "Derived3 Attributes Changed" << end... method Base (line 88) | Base *Clone() { return new Derived3(*this); } function Base (line 93) | Base *Base::Create(int id) { method Base (line 32) | Base() {} class User (line 108) | class User { method User (line 110) | User() : pBase(0) { method Action (line 134) | void Action() { function main (line 152) | int main() { FILE: basic_content/virtual/set3/vir_de.cpp class base (line 19) | class base { method base (line 21) | base() { cout << "Constructing base \n"; } class derived (line 25) | class derived : public base { method derived (line 27) | derived() { cout << "Constructing derived \n"; } function main (line 31) | int main(void) { FILE: basic_content/virtual/set3/virtual_function.cpp class Derived (line 16) | class Derived method fun (line 26) | void fun() { cout << "Derived Fun"; } class Base (line 18) | class Base { method fun (line 20) | virtual void fun() { cout << "Base Fun"; } class Derived (line 24) | class Derived : public Base { method fun (line 26) | void fun() { cout << "Derived Fun"; } function main (line 29) | int main() { FILE: basic_content/virtual/set3/virtual_function1.cpp class Derived (line 4) | class Derived method fun (line 14) | void fun() { cout << "Derived Fun"; } class Base (line 6) | class Base { method fun (line 8) | virtual void fun() { cout << "Base Fun"; } class Derived (line 12) | class Derived : public Base { method fun (line 14) | void fun() { cout << "Derived Fun"; } function main (line 17) | int main() { FILE: basic_content/virtual/set3/virtual_inline.cpp class Base (line 13) | class Base { method who (line 15) | virtual void who() { cout << "I am Base\n"; } class Derived (line 17) | class Derived : public Base { method who (line 19) | void who() { cout << "I am Derived\n"; } function main (line 22) | int main() { FILE: basic_content/virtual/set4/rtti.cpp class B (line 17) | class B { method fun (line 18) | virtual void fun() {} class D (line 20) | class D : public B {} function main (line 22) | int main() { FILE: basic_content/virtual/set4/warn_rtti.cpp class A (line 5) | class A {} class B (line 9) | class B { class D (line 17) | class D : public A {} class E (line 21) | class E : private A {} class F (line 25) | class F : private B {} FILE: basic_content/volatile/noopt_vola.cpp function main (line 3) | int main(void) { FILE: basic_content/volatile/volatile.cpp function main (line 4) | int main(void) { FILE: basic_content/vptr_vtable/vptr1.cpp class Base (line 13) | class Base { method Base (line 15) | Base(){} method fun1 (line 16) | virtual void fun1() { cout << "Base::fun1()" << endl; } method fun2 (line 17) | virtual void fun2() { cout << "Base::fun2()" << endl; } method fun3 (line 18) | virtual void fun3() {} class Derived (line 25) | class Derived : public Base { method Derived (line 27) | Derived(){} method fun1 (line 28) | void fun1() { cout << "Derived::fun1()" << endl; } method fun2 (line 29) | void fun2() { cout << "DerivedClass::fun2()" << endl; } function Fun (line 42) | Fun getAddr(void *obj, unsigned int offset) { function main (line 58) | int main(void) { FILE: codingStyleIdioms/1_classInitializers/1.1_nest.cpp class Animal (line 8) | class Animal { method Animal (line 10) | Animal() { method Animal (line 14) | Animal(const Animal &) { method Animal (line 18) | Animal &operator=(const Animal &) { class Dog (line 28) | class Dog { method Dog (line 31) | Dog(const Animal &animal) : __animal(animal) { function main (line 47) | int main() { FILE: codingStyleIdioms/1_classInitializers/1.2_nodefault_ctor.cpp class Animal (line 6) | class Animal { method Animal (line 8) | Animal(int age) { method Animal (line 12) | Animal(const Animal & animal) { method Animal (line 16) | Animal &operator=(const Animal & amimal) { class Dog (line 27) | class Dog : Animal { method Dog (line 29) | Dog(int age) : Animal(age) { function main (line 38) | int main() { FILE: codingStyleIdioms/1_classInitializers/1.3_const.cpp class Animal (line 8) | class Animal { method Animal (line 10) | Animal(int& age,std::string name):age_(age),name_(name) { function main (line 18) | int main() { FILE: codingStyleIdioms/1_classInitializers/initializer.cpp class A (line 10) | class A { method A (line 12) | A(int a) : _a(a), _p(nullptr) { // 初始化列表 function main (line 21) | int main() { FILE: codingStyleIdioms/2_enumclass/namespace.cpp type EntityType (line 9) | namespace EntityType { type Enum (line 10) | enum Enum { function foo (line 18) | void foo(EntityType::Enum entityType) type EntityType1 (line 26) | enum class EntityType1 { function foo (line 33) | void foo(EntityType1 entityType) function main (line 40) | int main() { FILE: codingStyleIdioms/3_RAII/RAII.cpp type shape_type (line 7) | enum class shape_type { class shape (line 14) | class shape { method shape (line 16) | shape() { cout << "shape" << endl; } method print (line 18) | virtual void print() { class circle (line 25) | class circle : public shape { method circle (line 27) | circle() { cout << "circle" << endl; } method print (line 29) | void print() { class triangle (line 34) | class triangle : public shape { method triangle (line 36) | triangle() { cout << "triangle" << endl; } method print (line 38) | void print() { class rectangle (line 43) | class rectangle : public shape { method rectangle (line 45) | rectangle() { cout << "rectangle" << endl; } method print (line 47) | void print() { function shape (line 53) | shape *create_shape(shape_type type) { method shape (line 16) | shape() { cout << "shape" << endl; } method print (line 18) | virtual void print() { class shape_wrapper (line 64) | class shape_wrapper { method shape_wrapper (line 66) | explicit shape_wrapper(shape *ptr = nullptr) : ptr_(ptr) {} method shape (line 72) | shape *get() const { function foo (line 81) | void foo() { function main (line 86) | int main() { FILE: codingStyleIdioms/3_RAII/RAII_fstram.cpp function foo (line 12) | void foo() { function main (line 23) | int main() { FILE: codingStyleIdioms/3_RAII/c++_example.cpp function main (line 5) | int main() { FILE: codingStyleIdioms/3_RAII/c++_example1.cpp function read_lines_from_file (line 10) | vector read_lines_from_file(string &file_name) { function main (line 54) | int main() { FILE: codingStyleIdioms/3_RAII/c++_example2.cpp function read_lines_from_file (line 11) | unique_ptr> read_lines_from_file(string &file_name) { function main (line 25) | int main() { FILE: codingStyleIdioms/3_RAII/c_example.cpp function main (line 7) | int main() { FILE: codingStyleIdioms/4_copy-swap/copy-swapAndADL.cpp type A (line 9) | namespace A { class smart_ptr (line 11) | class smart_ptr { method smart_ptr (line 13) | smart_ptr() noexcept : ptr_(new T()) { method smart_ptr (line 17) | smart_ptr(const T &ptr) noexcept : ptr_(new T(ptr)) { method smart_ptr (line 21) | smart_ptr(smart_ptr &rhs) noexcept { method smart_ptr (line 51) | smart_ptr &operator=(smart_ptr rhs) noexcept { method smart_ptr (line 56) | smart_ptr(smart_ptr &&rhs) noexcept { method swap (line 71) | void swap(smart_ptr &rhs) noexcept { // noexcept == throw() 保证不抛出异常 method T (line 76) | T *release() noexcept { method T (line 82) | T *get() const noexcept { function swap (line 92) | void swap(A::smart_ptr &lhs, A::smart_ptr &rhs) noexcept { function main (line 106) | int main() { FILE: codingStyleIdioms/5_pImpl/noPimpl.cpp class C (line 5) | class C { class D (line 9) | class D { class X (line 13) | class X { function main (line 20) | int main() { FILE: codingStyleIdioms/5_pImpl/pimpl.cpp class private_foo (line 10) | class private_foo method bar (line 25) | void bar() { class foo (line 11) | class foo { class private_foo (line 23) | class private_foo { method bar (line 25) | void bar() { function main (line 45) | int main() { FILE: codingStyleIdioms/5_pImpl/pimplTime.cpp class C (line 5) | class C { class D (line 9) | class D { class X (line 13) | class X { type XImpl (line 15) | struct XImpl type X::XImpl (line 19) | struct X::XImpl { function main (line 24) | int main() { FILE: codingStyleIdioms/5_pImpl/pimplTime.h function class (line 5) | class C { function class (line 9) | class D { function class (line 13) | class X { FILE: concurrency/Threading_In_CPlusPlus/1.thread/intro.cpp function findEven (line 15) | void findEven(ull start, ull end) { function findOdd (line 21) | void findOdd(ull start, ull end) { function main (line 27) | int main() { FILE: concurrency/Threading_In_CPlusPlus/1.thread/thread.cpp function findEven (line 25) | void findEven(ull start, ull end) { function findOdd (line 31) | void findOdd(ull start, ull end) { function main (line 37) | int main() { FILE: concurrency/Threading_In_CPlusPlus/2.create_type/1.function_pointer.cpp function fun (line 11) | void fun(int x) { function main (line 17) | int main() { FILE: concurrency/Threading_In_CPlusPlus/2.create_type/2.lambda_function.cpp function main (line 12) | int main() { FILE: concurrency/Threading_In_CPlusPlus/2.create_type/3.functor.cpp class Base (line 12) | class Base { function main (line 21) | int main() { FILE: concurrency/Threading_In_CPlusPlus/2.create_type/4.no_static_member_function.cpp class Base (line 12) | class Base { method fun (line 14) | void fun(int x) { function main (line 21) | int main() { FILE: concurrency/Threading_In_CPlusPlus/2.create_type/5.static_member_function.cpp class Base (line 12) | class Base { method fun (line 14) | static void fun(int x) { function main (line 21) | int main() { FILE: concurrency/Threading_In_CPlusPlus/3.join_detach/detach.cpp function run (line 19) | void run(int count) { function main (line 26) | int main() { FILE: concurrency/Threading_In_CPlusPlus/3.join_detach/join.cpp function run (line 19) | void run(int count) { function main (line 26) | int main() { FILE: concurrency/Threading_In_CPlusPlus/4.mutex/an_example_of_bank_account.cpp class BankAccount (line 8) | class BankAccount { method BankAccount (line 10) | BankAccount() : balance(0) {} method deposit (line 13) | void deposit(int amount) { method withdraw (line 19) | void withdraw(int amount) { method get_balance (line 29) | int get_balance() const { function deposit_to_account (line 38) | void deposit_to_account(BankAccount& account) { function withdraw_from_account (line 44) | void withdraw_from_account(BankAccount& account) { function main (line 50) | int main() { FILE: concurrency/Threading_In_CPlusPlus/4.mutex/critical_section.cpp function main (line 24) | int main() { FILE: concurrency/concurrency_v1/chapter1/1_helloworld.cpp function hello (line 11) | void hello() { function main (line 15) | int main() { FILE: concurrency/concurrency_v1/chapter2/2.1_basic.cpp class background_task (line 12) | class background_task { function do_something (line 19) | void do_something(int &i) { type func (line 23) | struct func { method func (line 26) | func(int &i_) : i(i_) {} function f (line 36) | void f() { class thread_guard (line 55) | class thread_guard { method thread_guard (line 58) | explicit thread_guard(std::thread &t_) : method thread_guard (line 68) | thread_guard(thread_guard const &) = delete; method thread_guard (line 69) | thread_guard &operator=(thread_guard const &) = delete; function f1 (line 71) | void f1() function main (line 84) | int main() { FILE: concurrency/concurrency_v1/chapter2/2.2_transfer.cpp class X (line 9) | class X { function process_big_object (line 14) | void process_big_object(std::unique_ptr) function main (line 19) | int main() { FILE: concurrency/concurrency_v1/chapter2/2.3_ownership.cpp function some_function (line 13) | void some_function() {} function some_other_function (line 15) | void some_other_function() {} function do_something (line 23) | void do_something(int i) { type func (line 27) | struct func { method func (line 30) | func(int &i_) : i(i_) {} class scoped_thread (line 39) | class scoped_thread { method scoped_thread (line 42) | explicit scoped_thread(std::thread t_) : // 1 method scoped_thread (line 52) | scoped_thread(scoped_thread const &) = delete; method scoped_thread (line 54) | scoped_thread &operator=(scoped_thread const &) = delete; function do_work (line 57) | void do_work(unsigned id) {} function f (line 59) | void f() { function main (line 68) | int main() { FILE: concurrency/concurrency_v1/chapter2/2.4_runtime.cpp type accumulate_block (line 15) | struct accumulate_block { function T (line 22) | T parallel_accumlate(Iterator first, Iterator last, T init) { function main (line 55) | int main() { FILE: concurrency/concurrency_v1/chapter2/2_5_id.cpp function do_master_thread_work (line 14) | void do_master_thread_work() { function do_common_work (line 18) | void do_common_work() { function some_core_part_of_algorithm (line 22) | void some_core_part_of_algorithm() { function main (line 29) | int main() { FILE: cpp2.0/cpp11/alias.cpp function main (line 14) | int main() { FILE: cpp2.0/cpp11/auto.cpp class C (line 34) | class C { method C (line 36) | explicit C(const string &s) : mystr(s) { method ostream (line 40) | ostream &operator<<(ostream out, const C &c) { function main (line 48) | int main() { FILE: cpp2.0/cpp11/constexpr.cpp function foo (line 21) | constexpr int foo(int i) function main (line 26) | int main() FILE: cpp2.0/cpp11/decltype.cpp function add (line 19) | auto add(T1 x, T2 y) -> decltype(x + y) class Person (line 24) | class Person function main (line 30) | int main() FILE: cpp2.0/cpp11/default_delete.cpp class Zoo (line 10) | class Zoo { method Zoo (line 13) | Zoo(int a, int b) : a(a), b(b) { method Zoo (line 17) | Zoo() = default; method Zoo (line 19) | Zoo(const Zoo &) = delete; method Zoo (line 21) | Zoo(Zoo &&) = default; method Zoo (line 23) | Zoo &operator=(const Zoo &) = default; method Zoo (line 25) | Zoo &operator=(const Zoo &&) = delete; method fun1 (line 29) | void fun1() = delete; class Empty (line 41) | class Empty { class Empty1 (line 45) | class Empty1 { method Empty1 (line 47) | Empty1() {} method Empty1 (line 49) | Empty1(const Empty1 &rhs) {} type NoCopy (line 56) | struct NoCopy { method NoCopy (line 57) | NoCopy() = default; method NoCopy (line 59) | NoCopy(const NoCopy &) = delete; method NoCopy (line 61) | NoCopy &operator=(const NoCopy &) = delete; type NoDtor (line 67) | struct NoDtor { method NoDtor (line 68) | NoDtor() = default; class PrivateCopy (line 75) | class PrivateCopy { method PrivateCopy (line 77) | PrivateCopy(const PrivateCopy &) {} method PrivateCopy (line 82) | PrivateCopy() = default; class Foo (line 88) | class Foo : public PrivateCopy { function main (line 92) | int main() { FILE: cpp2.0/cpp11/explicit.cpp class Fraction (line 10) | class Fraction method Fraction (line 14) | Fraction(int num, int den = 1) : m_numerator(num), m_denominator(den) {} method Fraction (line 16) | Fraction operator+(const Fraction &f) method getNumAndDen (line 21) | void getNumAndDen() class Fraction1 (line 32) | class Fraction1 method Fraction1 (line 36) | explicit Fraction1(int num, int den = 1) : m_numerator(num), m_denomin... method Fraction1 (line 38) | Fraction1 operator+(const Fraction1 &f) method getNumAndDen (line 43) | void getNumAndDen() class P (line 53) | class P method P (line 56) | P(int a, int b) method P (line 61) | P(int a, int b, int c) method P (line 65) | explicit P(int a, int b, int c, int d) function fp (line 71) | void fp(const P &) function main (line 75) | int main() FILE: cpp2.0/cpp11/final.cpp class Base (line 11) | class Base final { method Base (line 13) | Base() {} method func (line 15) | virtual void func() {} class Derivered (line 18) | class Derivered : public Base { // error: cannot derive from ‘final’... class Base1 (line 21) | class Base1 { method Base1 (line 23) | Base1() {} method func (line 25) | virtual void func() final {} class Derivered1 (line 28) | class Derivered1 : public Base1 { method func (line 29) | virtual void func() {} function main (line 31) | int main() { FILE: cpp2.0/cpp11/hash.cpp class Customer (line 12) | class Customer { class CustomerHash (line 17) | class CustomerHash { function customer_hash_func (line 25) | size_t customer_hash_func(const Customer &t) { type std (line 29) | namespace std { // 必须放在std里面 type hash (line 31) | struct hash : public __hash_base { //... function hash_combine (line 44) | inline void hash_combine(size_t& seed, const T& val){ function hash_val (line 51) | inline void hash_val(size_t& seed, const T& val){ function hash_val (line 57) | inline void hash_val(size_t& seed, const T& val, const Types&... args){ function hash_val (line 63) | inline size_t hash_val(const Types&... args){ function main (line 70) | int main() { FILE: cpp2.0/cpp11/initializer.cpp function main (line 9) | int main() { FILE: cpp2.0/cpp11/lambda.cpp class UnNamedLocalFunction (line 20) | class UnNamedLocalFunction { method UnNamedLocalFunction (line 24) | UnNamedLocalFunction(int var) : localVar(var) {} class Person (line 31) | class Person { class LambdaFunctor (line 37) | class LambdaFunctor { method LambdaFunctor (line 39) | LambdaFunctor(int a, int b) : m_a(a), m_b(b) {} class X (line 50) | class X { method X (line 54) | X(int x, int y) : __x(x), __y(y) {} method f (line 58) | int f() { method ff (line 68) | int ff() { function main (line 75) | int main() { FILE: cpp2.0/cpp11/move.cpp class MyStringNoMove (line 18) | class MyStringNoMove { method _init_data (line 31) | void _init_data(const char *s) { method MyStringNoMove (line 37) | MyStringNoMove() : _data(NULL), _len(0) { ++DCtor; } method MyStringNoMove (line 39) | MyStringNoMove(const char *p) : _len(strlen(p)) { method MyStringNoMove (line 45) | MyStringNoMove(const MyStringNoMove &str) : _len(str._len) { method MyStringNoMove (line 52) | MyStringNoMove &operator=(const MyStringNoMove &str) { class MyString (line 94) | class MyString { method _init_data (line 107) | void _init_data(const char *s) { method MyString (line 113) | MyString() : _data(NULL), _len(0) { ++DCtor; } method MyString (line 115) | MyString(const char *p) : _len(strlen(p)) { method MyString (line 121) | MyString(const MyString &str) : _len(str._len) { method MyString (line 127) | MyString(MyString &&str) noexcept: _data(str._data), _len(str._len) { method MyString (line 134) | MyString &operator=(const MyString &str) { method MyString (line 147) | MyString &operator=(MyString &&str) { type std (line 189) | namespace std { type hash (line 191) | struct hash : public __hash_base (line 199) | struct hash : public __hash_base { function output_static_data (line 208) | void output_static_data(const T &myStr) { function test_moveable (line 222) | void test_moveable(M c1, NM c2, long &value) { function main (line 274) | int main() { FILE: cpp2.0/cpp11/noexcept.cpp function foo (line 19) | void foo() noexcept(true) { function main (line 22) | int main() { FILE: cpp2.0/cpp11/nullptr.cpp function f (line 8) | void f(int i) { function f (line 12) | void f(void *p) { function main (line 15) | int main() { FILE: cpp2.0/cpp11/override.cpp class Base (line 9) | class Base method Base (line 12) | Base() {} method func (line 13) | virtual void func() {} class Derivered (line 15) | class Derivered : public Base method func (line 17) | virtual void func(int) override {} function main (line 24) | int main() FILE: cpp2.0/cpp11/rvalue.cpp function foo (line 13) | int foo() { return 5; } class Foo (line 15) | class Foo { method Foo (line 17) | Foo() = default; method Foo (line 19) | Foo(const Foo &foo) = default; method Foo (line 21) | Foo(Foo &&foo) noexcept {} function process (line 26) | void process(int &i) { function process (line 30) | void process(int &&i) { function UnPerfectForward (line 34) | void UnPerfectForward(int &&i) { function PerfectForward (line 39) | void PerfectForward(int &&i) { function main (line 45) | int main() { FILE: cpp2.0/cpp11/template_template.cpp class XCls (line 11) | class XCls { function main (line 20) | int main() { FILE: cpp2.0/cpp11/tuple.cpp function main (line 11) | int main() { FILE: cpp2.0/cpp11/type_alias.cpp function example (line 15) | void example(int, int) {} type Container (line 19) | struct Container { function func2 (line 24) | void func2(const Cn &cn) { function main (line 42) | int main() { FILE: cpp2.0/cpp11/uniform_initialization.cpp function main (line 10) | int main() { FILE: cpp2.0/cpp11/variadic/variadic.cpp function _hash (line 17) | void _hash(size_t &seed, const T &val) { function _hash (line 24) | void _hash(size_t &seed, const T& val,const Args &... args) { function _hash (line 33) | size_t _hash(const Args &... args) { class A (line 43) | class A { method A (line 47) | A() { function main (line 53) | int main(void) { FILE: cpp2.0/cpp11/variadic/variadic1.cpp function printX (line 11) | void printX() { function printX (line 17) | void printX(const T &firstArg, const Type &...args) { function printX (line 24) | void printX(const Type &...args) { function main (line 29) | int main() { FILE: cpp2.0/cpp11/variadic/variadic2.cpp function print (line 9) | void print(const char *s) { function print (line 18) | void print(const char *s, T value, Args... args) { function main (line 30) | int main() { FILE: cpp2.0/cpp11/variadic/variadic3_4.cpp function max (line 10) | int max(initializer_list initializerList) { function maximum (line 19) | int maximum(int n) { function maximum (line 24) | int maximum(int n, Args...args) { function main (line 28) | int main() { FILE: cpp2.0/cpp11/variadic/variadic5.cpp type print_tuple (line 20) | struct print_tuple { method print (line 21) | static void print(ostream &os, const tuple &t) { type print_tuple (line 29) | struct print_tuple { method print (line 30) | static void print(ostream &os, const tuple &t) { function ostream (line 35) | ostream &operator<<(ostream &os, const tuple &t) { function main (line 42) | int main() { FILE: cpp2.0/cpp11/variadic/variadic6.cpp type light (line 11) | namespace light { class tuple (line 13) | class tuple class tuple<> (line 16) | class tuple<> { class tuple (line 20) | class tuple : private tuple { method tuple (line 25) | tuple() {} method tuple (line 27) | tuple(Head h, Tail...tail) : m_head(h), inherited(tail...) {} method head (line 30) | auto head() -> decltype(m_head) { return m_head; } method inherited (line 33) | inherited &tail() { return *this; } function main (line 43) | int main() { FILE: cpp2.0/cpp11/variadic/variadic7.cpp type light (line 9) | namespace light { class tuple (line 11) | class tuple class tuple<> (line 14) | class tuple<> { class tuple (line 18) | class tuple { method tuple (line 24) | tuple() {} method get (line 25) | int get() { return sizeof(composited);} method tuple (line 26) | tuple(Head h, Tail...tail) : m_head(h), m_tai(tail...) {} method head (line 29) | auto head() -> decltype(m_head) { return m_head; } method composited (line 32) | composited &tail() { return m_tai; } type A (line 43) | struct A { function main (line 47) | int main() { FILE: design_pattern/producer_consumer/producer_consumer.cpp class BoundedBuffer (line 12) | class BoundedBuffer { method BoundedBuffer (line 14) | BoundedBuffer(size_t n) { method Produce (line 20) | void Produce(int n) { method Consume (line 36) | int Consume() { function Producer (line 66) | void Producer() { function Consumer (line 77) | void Consumer() { function main (line 88) | int main() { FILE: design_pattern/singleton/barrier_singleton.cpp class singleton (line 23) | class singleton { method singleton (line 25) | singleton() {} function singleton (line 36) | singleton *singleton::instance() { method singleton (line 25) | singleton() {} FILE: design_pattern/singleton/cpulpuls11_singleton.cpp class singleton (line 13) | class singleton { method singleton (line 15) | singleton() {} function singleton (line 32) | singleton *singleton::instance() { method singleton (line 15) | singleton() {} FILE: design_pattern/singleton/dcl_singleton.cpp class singleton (line 10) | class singleton { method singleton (line 12) | singleton() {} class CGarbo (line 21) | class CGarbo { function singleton (line 36) | singleton *singleton::instance() { method singleton (line 12) | singleton() {} class CGarbo (line 21) | class CGarbo { FILE: design_pattern/singleton/hungrysingleton.cpp class singleton (line 5) | class singleton { method singleton (line 7) | singleton() {} function singleton (line 15) | singleton *singleton::instance() { return p; } method singleton (line 7) | singleton() {} FILE: design_pattern/singleton/iazysingleton.cpp class singleton (line 5) | class singleton { method singleton (line 7) | singleton() {} function singleton (line 16) | singleton *singleton::instance() { method singleton (line 7) | singleton() {} FILE: design_pattern/singleton/lock_singleton.cpp class singleton (line 9) | class singleton { method singleton (line 11) | singleton() {} function singleton (line 21) | singleton *singleton::instance() { method singleton (line 11) | singleton() {} FILE: design_pattern/singleton/pthreadoncesingleton.cpp class singleton (line 8) | class singleton { method init (line 14) | static void init() { p = new singleton(); } method singleton (line 19) | singleton *instance() { FILE: design_pattern/singleton/static_local_singleton.cpp class singleton (line 11) | class singleton { method singleton (line 13) | singleton() {} function singleton (line 19) | singleton &singleton::instance() { method singleton (line 13) | singleton() {} FILE: effective_cpp/2.cpp type A (line 8) | struct A { class C (line 12) | class C { type con (line 17) | enum con { function Max (line 24) | inline int Max(const T& a, const T& b){ function main (line 28) | int main() { FILE: english/basic_content/abstract/abstract.cpp class A (line 13) | class A { method g (line 16) | void g(){ this->f(); } method A (line 17) | A(){} class B (line 19) | class B:public A{ method f (line 21) | void f(){ cout<<"B:f()"<decltype(x*y) function main (line 22) | int main() FILE: english/basic_content/enum/classic_practice.cpp type Color (line 14) | namespace Color type Type (line 16) | enum Type type Color1 (line 35) | struct Color1 type Type (line 37) | enum Type type Color2 (line 49) | enum class Color2 type Color3 (line 56) | enum class Color3:char type Color3 (line 59) | enum class Color3:char function main (line 65) | int main() FILE: english/basic_content/enum/tradition_color.cpp type Color (line 4) | enum Color {RED,BLUE} type Feeling (line 5) | enum Feeling {EXCITED,BLUE} function main (line 7) | int main() FILE: english/basic_content/explicit/explicit.cpp type A (line 5) | struct A method A (line 7) | A(int) { } type B (line 11) | struct B method B (line 13) | explicit B(int) {} function doA (line 17) | void doA(A a) {} function doB (line 19) | void doB(B b) {} function main (line 21) | int main() FILE: english/basic_content/extern/extern_c++/add.c function add (line 3) | int add(int x,int y) { FILE: english/basic_content/extern/extern_c++/add.cpp function main (line 6) | int main() { FILE: english/basic_content/extern/extern_c/add.c function main (line 2) | int main() { FILE: english/basic_content/extern/extern_c/add.cpp function add (line 3) | int add(int x,int y) { FILE: english/basic_content/friend/friend_class.cpp class A (line 5) | class A method A (line 8) | A(int _a):a(_a){} class B (line 14) | class B method getb (line 17) | int getb(A ca) { function main (line 22) | int main() FILE: english/basic_content/friend/friend_func.cpp class A (line 13) | class A method A (line 16) | A(int _a):a(_a){} function geta (line 22) | int geta(A &ca) function main (line 27) | int main() FILE: english/basic_content/func_pointer/func_pointer.cpp function myfunc (line 22) | void myfunc(void) function glFun (line 27) | void glFun(int a){ cout< decltype(t.serialize()) {} function myFunction (line 23) | auto myFunction() // Automagically figures out that myFunction returns i... FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/blending1.cpp type hasSerialize (line 10) | struct hasSerialize { method test (line 15) | static constexpr decltype(std::declval().serialize(), bool()) test(... method test (line 21) | static constexpr bool test(...) { function serialize (line 30) | std::string serialize(const T &obj) { function main (line 38) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/blending2.cpp type hasSerialize (line 10) | struct hasSerialize : std::false_type { type hasSerialize().serialize())> (line 14) | struct hasSerialize().serialize())> : std::t... function serialize (line 19) | std::string serialize(const T &obj) { function main (line 27) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/combiningAndGenius.cpp type hasSerialize (line 10) | struct hasSerialize { type reallyHas (line 21) | struct reallyHas method yes (line 25) | static yes &test(reallyHas * /*un... method yes (line 29) | static yes &test(reallyHas ... method no (line 35) | static no &test(...) { /* dark matter */ } type D (line 43) | struct D : A { method serialize (line 44) | std::string serialize() const { function testHasSerialize (line 50) | bool testHasSerialize(const T & /*t*/) { return hasSerialize::value; } type E (line 53) | struct E { type Functor (line 54) | struct Functor { function serialize (line 64) | std::string serialize(const T &obj) { function main (line 72) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/constexpr.cpp function factorial (line 6) | constexpr int factorial(int n) { type testStruct (line 10) | struct testStruct : std::true_type { function main (line 13) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/decltype.cpp type Default (line 5) | struct Default { method foo (line 6) | int foo() const {return 1;} type NonDefault (line 9) | struct NonDefault { method NonDefault (line 10) | NonDefault(const NonDefault&) {} method foo (line 11) | int foo() const {return 1;} function main (line 14) | int main() FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/fis_valid.cpp type container (line 10) | struct container { method testValidity (line 17) | constexpr auto testValidity(int /* unused */) method testValidity (line 24) | constexpr std::false_type testValidity(...) { function is_valid (line 42) | constexpr auto is_valid(const UnnamedType &t) { function serialize (line 52) | auto serialize(T &obj) function serialize (line 58) | auto serialize(T &obj) function main (line 63) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/hana.cpp function main (line 12) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/is_valid.cpp type container (line 9) | struct container { function is_valid (line 41) | constexpr auto is_valid(const UnnamedType &t) { function serialize (line 51) | auto serialize(T &obj) function serialize (line 57) | auto serialize(T &obj) function main (line 62) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/lambda.cpp type l5UnamedType (line 7) | struct l5UnamedType { function fun (line 16) | void fun(A a,B b,C c) { function main (line 49) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/overload1.cpp function main (line 12) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/overload2.cpp function f (line 6) | std::string f(...) // Variadic functions are so "untyped" that... function f (line 12) | std::string f(const T &t)// ...this templated function got the precedence! function main (line 18) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/p1SFINAE.cpp function f (line 16) | void f(const T &t, typename T::iterator *it = nullptr) {} function f (line 19) | void f(...) {} function main (line 21) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/p2SFINAE.cpp function f (line 8) | void f(T t) { t.hahahaICrash(); } function f (line 9) | void f(...) { } function main (line 11) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/packis_valid.cpp type container (line 8) | struct container function is_valid (line 39) | constexpr auto is_valid(UnnamedType&& t) function serialize (line 50) | auto serialize(T &obj) function serialize (line 56) | auto serialize(T &obj) function main (line 61) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/serialize.cpp function serialize (line 17) | std::string serialize(T const &obj) { function main (line 26) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/sizeof1.cpp function type_test (line 9) | type_test &f() {} function main (line 11) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/sizeof2.cpp function yes (line 11) | yes &f1() {} function no (line 12) | no &f2() {} function main (line 14) | int main() { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/structData.h type A (line 8) | struct A { type C (line 23) | struct C { FILE: learn_class/modern_cpp_30/SFINAE/sfinae paper/timeGenius.cpp type hasSerialize (line 10) | struct hasSerialize { type reallyHas (line 21) | struct reallyHas method yes (line 25) | static yes &test(reallyHas * /*un... method yes (line 29) | static yes &test(reallyHas ... method no (line 35) | static no &test(...) { /* dark matter */ } type enable_if (line 44) | struct enable_if { type enable_if (line 48) | struct enable_if { function serialize (line 53) | typename enable_if::value, std::string>::type serialize(... function serialize (line 58) | typename enable_if::value, std::string>::type serialize... function main (line 62) | int main() { FILE: learn_class/modern_cpp_30/compilercompute/IF.cpp type IF (line 11) | struct IF type IF (line 13) | struct IF { type IF (line 17) | struct IF { type isEven (line 22) | struct isEven { type Add_ (line 26) | struct Add_ { type Sub_ (line 30) | struct Sub_ { type addSub (line 35) | struct addSub { function main (line 40) | int main() { FILE: learn_class/modern_cpp_30/compilercompute/WhileLoop.cpp type WhileLoop (line 11) | struct WhileLoop type WhileLoop (line 13) | struct WhileLoop { type WhileLoop (line 18) | struct WhileLoop { type While (line 22) | struct While { type my (line 27) | namespace my { type integral_constant (line 28) | struct integral_constant { type SumLoop (line 34) | struct SumLoop { type Sum (line 49) | struct Sum { typedef SumLoop<0, n> type; } function main (line 53) | int main() { FILE: learn_class/modern_cpp_30/compilercompute/factorial.cpp type factorial (line 9) | struct factorial { type factorial<0> (line 14) | struct factorial<0> { static const int value = 1; } function main (line 16) | int main() { FILE: learn_class/modern_cpp_30/compilercompute/fmap.cpp function fmap (line 12) | auto fmap(F &&f, R &&inputs) { function add_1 (line 24) | int add_1(int x) { return x + 1; } function main (line 26) | int main() { FILE: learn_class/modern_cpp_30/compilerpoly/template.cpp function isEqual (line 13) | bool isEqual(T t1, T t2) { function isEqual (line 20) | bool isEqual(const char *t1, const char *t2) { function isEqual (line 34) | bool isEqual(T a, double b) { class comp (line 43) | class comp { method isEqual (line 45) | bool isEqual(T t1, T t2) { class comp (line 53) | class comp { method isEqual (line 55) | bool isEqual(const char *t1, const char *t2) { class comp (line 63) | class comp { method isEqual (line 65) | bool isEqual(T *t1, T *t2) { function main (line 71) | int main() { FILE: learn_class/modern_cpp_30/constexpr/container.cpp function main (line 13) | int main() { FILE: learn_class/modern_cpp_30/constexpr/newconstexpr.cpp type magic (line 12) | struct magic { type my (line 26) | namespace my { class A (line 32) | class A {} class B (line 35) | class B { function main (line 39) | int main() { FILE: learn_class/modern_cpp_30/constexpr/output_container.h type CHARS (line 32) | enum CHARS { FILE: learn_class/modern_cpp_30/constexpr/sqrt.cpp function sqr (line 8) | int sqr(int n) { return n * n; } function rand (line 10) | int rand() { return std::rand(); } function sqr1 (line 13) | constexpr int sqr1(int n) { return n * n; } function factorial (line 15) | constexpr int factorial(int n) { function main (line 30) | int main() { FILE: learn_class/modern_cpp_30/constexpr/test3.cpp class test3 (line 7) | class test3 { method getvalue (line 13) | constexpr int getvalue() const { return (value); } method test3 (line 15) | constexpr test3(int Value) : value(Value) {} function main (line 18) | int main() { FILE: learn_class/modern_cpp_30/container1/container.cpp function main (line 12) | int main() { FILE: learn_class/modern_cpp_30/container1/vector_l.cpp class Obj1 (line 9) | class Obj1 { method Obj1 (line 11) | Obj1() { cout << "Obj1()\n"; } method Obj1 (line 12) | Obj1(const Obj1 &) { cout << "Obj1(const Obj1&)\n"; } method Obj1 (line 13) | Obj1(Obj1 &&) { cout << "Obj1(Obj1&&)\n"; } class Obj2 (line 16) | class Obj2 { method Obj2 (line 18) | Obj2() { cout << "Obj2()\n"; } method Obj2 (line 19) | Obj2(const Obj2 &) { cout << "Obj2(const Obj2&)\n"; } method Obj2 (line 20) | Obj2(Obj2 &&) noexcept { cout << "Obj2(Obj2&&)\n"; } function main (line 23) | int main() { FILE: learn_class/modern_cpp_30/container2/array.cpp function test (line 12) | void test(int a[8]) { cout << ARRAY_LEN(a) << endl; } function test1 (line 14) | void test1(int arr[]) { function main (line 23) | int main() { FILE: learn_class/modern_cpp_30/container2/hash.cpp function main (line 14) | int main() { FILE: learn_class/modern_cpp_30/container2/priority_queue.cpp function main (line 14) | int main() { FILE: learn_class/modern_cpp_30/container2/relacontainer.cpp function main (line 15) | int main() { FILE: learn_class/modern_cpp_30/container2/unorder.cpp type std (line 13) | namespace std { type hash> (line 15) | struct hash> { function main (line 24) | int main() { FILE: learn_class/modern_cpp_30/exception/exception.cpp function main (line 17) | int main() FILE: learn_class/modern_cpp_30/functionLambda/adder.cpp type adder (line 8) | struct adder { method adder (line 9) | adder(int n) : n_(n) {} function main (line 17) | int main() { FILE: learn_class/modern_cpp_30/functionLambda/autoLambda.cpp function get_count (line 12) | int get_count() { class task (line 17) | class task { method task (line 19) | task(int data) : data_(data) {} method lazy_launch (line 32) | auto lazy_launch() { method calculate (line 42) | void calculate() { function main (line 52) | int main() { FILE: learn_class/modern_cpp_30/functionLambda/function.cpp function main (line 11) | int main() { FILE: learn_class/modern_cpp_30/literalAssert/assert.cpp function main (line 8) | int main() { FILE: learn_class/modern_cpp_30/literalAssert/default_delete.cpp class myFun (line 5) | class myFun { method myFun (line 7) | myFun() = default; method myFun (line 9) | myFun(const myFun &) = default; method myFun (line 11) | myFun &operator=(const myFun &) = default; method myFun (line 13) | myFun(myFun &&) = delete; method myFun (line 15) | myFun &operator=(myFun &&) = delete; FILE: learn_class/modern_cpp_30/literalAssert/literal.cpp type length (line 17) | struct length { type unit (line 19) | enum unit { method length (line 32) | explicit length(double v, unit u = metre) { value = v * factors[u]; } function length (line 35) | length operator+(length lhs, length rhs) { type unit (line 19) | enum unit { method length (line 32) | explicit length(double v, unit u = metre) { value = v * factors[u]; } function length (line 39) | length operator"" _m(long double v) { return length(v, length::metre); } type unit (line 19) | enum unit { method length (line 32) | explicit length(double v, unit u = metre) { value = v * factors[u]; } function length (line 41) | length operator"" _cm(long double v) { return length(v, length::centimet... type unit (line 19) | enum unit { method length (line 32) | explicit length(double v, unit u = metre) { value = v * factors[u]; } function main (line 44) | int main() { FILE: learn_class/modern_cpp_30/literalAssert/overridefinal.cpp class A (line 5) | class A { class B (line 12) | class B : public A { class C (line 20) | class C final : public B { class D (line 27) | class D : public C { FILE: learn_class/modern_cpp_30/memorymodel_atomic/barrier_singleton.cpp class singleton (line 24) | class singleton { method singleton (line 26) | singleton() {} function singleton (line 36) | singleton *singleton::instance() { method singleton (line 26) | singleton() {} FILE: learn_class/modern_cpp_30/memorymodel_atomic/cpulpuls11_singleton.cpp class singleton (line 13) | class singleton { method singleton (line 15) | singleton() {} function singleton (line 31) | singleton *singleton::instance() { method singleton (line 15) | singleton() {} FILE: learn_class/modern_cpp_30/memorymodel_atomic/dcl_singleton.cpp class singleton (line 10) | class singleton { method singleton (line 12) | singleton() {} class CGarbo (line 20) | class CGarbo function singleton (line 35) | singleton* singleton::instance() { method singleton (line 12) | singleton() {} class CGarbo (line 20) | class CGarbo FILE: learn_class/modern_cpp_30/memorymodel_atomic/hungrysingleton.cpp class singleton (line 5) | class singleton { method singleton (line 7) | singleton() {} function singleton (line 14) | singleton* singleton::instance() { method singleton (line 7) | singleton() {} FILE: learn_class/modern_cpp_30/memorymodel_atomic/iazysingleton.cpp class singleton (line 5) | class singleton { method singleton (line 7) | singleton() {} function singleton (line 15) | singleton* singleton::instance() { method singleton (line 7) | singleton() {} FILE: learn_class/modern_cpp_30/memorymodel_atomic/lock_singleton.cpp class singleton (line 9) | class singleton { method singleton (line 11) | singleton() {} function singleton (line 20) | singleton* singleton::instance() { method singleton (line 11) | singleton() {} FILE: learn_class/modern_cpp_30/memorymodel_atomic/pthreadoncesingleton.cpp class singleton (line 8) | class singleton { method init (line 14) | static void init() { method singleton (line 21) | singleton *instance() { FILE: learn_class/modern_cpp_30/memorymodel_atomic/static_local_singleton.cpp class singleton (line 9) | class singleton { method singleton (line 12) | singleton() {} function singleton (line 17) | singleton *singleton::instance() { method singleton (line 12) | singleton() {} FILE: learn_class/modern_cpp_30/obj/all.cpp type Test (line 9) | struct Test { method Test (line 10) | Test() { method Test (line 14) | Test(const Test &) { method Test (line 18) | Test &operator=(const Test &t) { method Test (line 23) | Test(Test &&t) { std::cout << "move construct a Test object" << std::e... method Test (line 25) | Test &operator=(Test &&t) { function Test (line 35) | Test getTest() { method Test (line 10) | Test() { method Test (line 14) | Test(const Test &) { method Test (line 18) | Test &operator=(const Test &t) { method Test (line 23) | Test(Test &&t) { std::cout << "move construct a Test object" << std::e... method Test (line 25) | Test &operator=(Test &&t) { function Test (line 40) | Test getTestWithName() { method Test (line 10) | Test() { method Test (line 14) | Test(const Test &) { method Test (line 18) | Test &operator=(const Test &t) { method Test (line 23) | Test(Test &&t) { std::cout << "move construct a Test object" << std::e... method Test (line 25) | Test &operator=(Test &&t) { function main (line 52) | int main() { FILE: learn_class/modern_cpp_30/obj/obj1.cpp class A (line 12) | class A { method A (line 14) | A() { cout << "Create A\n"; } method A (line 18) | A(const A &) { cout << "Copy A\n"; } method A (line 20) | A(A &&) { cout << "Move A\n"; } method A (line 22) | A &operator=(const A &a) { method A (line 27) | A &operator=(A &&a) { function A (line 34) | A getA_unnamed() { return A(); } method A (line 14) | A() { cout << "Create A\n"; } method A (line 18) | A(const A &) { cout << "Copy A\n"; } method A (line 20) | A(A &&) { cout << "Move A\n"; } method A (line 22) | A &operator=(const A &a) { method A (line 27) | A &operator=(A &&a) { function main (line 36) | int main() { FILE: learn_class/modern_cpp_30/obj/obj2.cpp class A (line 12) | class A { method A (line 14) | A() { cout << "Create A\n"; } method A (line 18) | A(const A &) { cout << "Copy A\n"; } method A (line 20) | A(A &&) { cout << "Move A\n"; } method A (line 22) | A &operator=(const A &a) { method A (line 27) | A &operator=(A &&a) { function A (line 34) | A getA_named() { method A (line 14) | A() { cout << "Create A\n"; } method A (line 18) | A(const A &) { cout << "Copy A\n"; } method A (line 20) | A(A &&) { cout << "Move A\n"; } method A (line 22) | A &operator=(const A &a) { method A (line 27) | A &operator=(A &&a) { function main (line 39) | int main() { FILE: learn_class/modern_cpp_30/obj/obj3.cpp class A (line 10) | class A { method A (line 12) | A() { cout << "Create A\n"; } method A (line 16) | A(const A &) { cout << "Copy A\n"; } method A (line 18) | A(A &&) { cout << "Move A\n"; } method A (line 20) | A &operator=(const A &a) { method A (line 25) | A &operator=(A &&a) { function A (line 31) | A getA_duang() { method A (line 12) | A() { cout << "Create A\n"; } method A (line 16) | A(const A &) { cout << "Copy A\n"; } method A (line 18) | A(A &&) { cout << "Move A\n"; } method A (line 20) | A &operator=(const A &a) { method A (line 25) | A &operator=(A &&a) { function main (line 41) | int main() { FILE: learn_class/modern_cpp_30/obj/obj4.cpp class A (line 10) | class A { method A (line 12) | A() { cout << "Create A\n"; } method A (line 16) | A(const A &) { cout << "Copy A\n"; } method A (line 18) | A(A &&) = delete; function A (line 21) | A getA_duang() { method A (line 12) | A() { cout << "Create A\n"; } method A (line 16) | A(const A &) { cout << "Copy A\n"; } method A (line 18) | A(A &&) = delete; function main (line 31) | int main() { auto a = getA_duang(); } FILE: learn_class/modern_cpp_30/obj/obj5.cpp class A (line 10) | class A { method A (line 12) | A() { cout << "Create A\n"; } method A (line 20) | A(const A &&) = delete; method A (line 21) | A(A &&) = delete; function A (line 24) | A getA_unnamed() { return A(); } method A (line 12) | A() { cout << "Create A\n"; } method A (line 20) | A(const A &&) = delete; method A (line 21) | A(A &&) = delete; function main (line 26) | int main() { auto a = getA_unnamed(); } FILE: learn_class/modern_cpp_30/reference/collapses.cpp function f (line 9) | void f(T &¶m) { class Widget (line 15) | class Widget { method judge (line 19) | void judge() { method f (line 24) | void f(LvalueRefType&& param) { function main (line 30) | int main() { FILE: learn_class/modern_cpp_30/reference/forward.cpp function overloaded (line 7) | void overloaded( int const &arg ) { std::cout << "by lvalue\n"; } function overloaded (line 8) | void overloaded( int && arg ) { std::cout << "by rvalue\n"; } function forwarding (line 13) | void forwarding( t && arg ) { function foo (line 21) | void foo(const shape&) function foo (line 25) | void foo(shape&&) function bar (line 30) | void bar(T&& s) function main (line 34) | int main() { FILE: learn_class/modern_cpp_30/reference/lifetime.cpp class result (line 10) | class result { method result (line 12) | result() { puts("result()"); } function result (line 17) | result process_shape(const shape &shape1, const shape &shape2) { method result (line 12) | result() { puts("result()"); } class Base (line 23) | class Base { method Base (line 25) | Base() { class Derived (line 34) | class Derived : public Base { method Derived (line 36) | Derived() { function string (line 45) | string f() { return "abc"; } function g (line 47) | void g() { function Derived (line 52) | Derived factory() { method Derived (line 36) | Derived() { function main (line 56) | int main() { FILE: learn_class/modern_cpp_30/reference/ref.cpp class Obj (line 8) | class Obj { method Obj (line 10) | Obj() method Obj (line 14) | Obj(const Obj&) method Obj (line 19) | Obj(Obj&&) function Obj (line 24) | Obj simple() method Obj (line 10) | Obj() method Obj (line 14) | Obj(const Obj&) method Obj (line 19) | Obj(Obj&&) function Obj (line 30) | Obj simple_with_move() method Obj (line 10) | Obj() method Obj (line 14) | Obj(const Obj&) method Obj (line 19) | Obj(Obj&&) function Obj (line 36) | Obj complicated(int n) method Obj (line 10) | Obj() method Obj (line 14) | Obj(const Obj&) method Obj (line 19) | Obj(Obj&&) function main (line 47) | int main() FILE: learn_class/modern_cpp_30/reference/reference.cpp type As (line 15) | struct As function As (line 20) | As&& ff(){ function main (line 24) | int main() { FILE: learn_class/modern_cpp_30/reference/shape.h function class (line 5) | class shape { function class (line 14) | class circle : public shape { function class (line 24) | class triangle : public shape { function class (line 34) | class rectangle : public shape { FILE: learn_class/modern_cpp_30/smart_ptr/auto_scope.cpp class auto_ptr (line 5) | class auto_ptr { method auto_ptr (line 7) | explicit auto_ptr(T *ptr = nullptr) noexcept : ptr_(ptr) {} method T (line 11) | T &operator*() const noexcept { return *ptr_; } method T (line 13) | T *operator->() const noexcept { return ptr_; } method T (line 17) | T *get() const noexcept { return ptr_; } method auto_ptr (line 21) | auto_ptr(auto_ptr &other) noexcept { ptr_ = other.release(); } method auto_ptr (line 24) | auto_ptr &operator=(auto_ptr &rhs) noexcept { method T (line 33) | T *release() noexcept { method swap (line 39) | void swap(auto_ptr &rhs) noexcept { function swap (line 48) | void swap(auto_ptr &lhs, auto_ptr &rhs) noexcept { class scoped_ptr (line 53) | class scoped_ptr // noncopyable method scoped_ptr (line 57) | explicit scoped_ptr(T *ptr = 0) noexcept : ptr_(ptr) {} method reset (line 61) | void reset(T *p = 0) noexcept { scoped_ptr(p).swap(*this); } method T (line 63) | T &operator*() const noexcept { return *ptr_; } method T (line 65) | T *operator->() const noexcept { return ptr_; } method T (line 67) | T *get() const noexcept { return ptr_; } method swap (line 69) | void swap(scoped_ptr &rhs) noexcept { function swap (line 82) | void swap(scoped_ptr &lhs, scoped_ptr &rhs) noexcept { function main (line 86) | int main() { FILE: learn_class/modern_cpp_30/smart_ptr/shared_ptr.cpp class shared_count (line 6) | class shared_count { method shared_count (line 8) | shared_count() : count_(1) {} method add_count (line 11) | void add_count() { ++count_; } method reduce_count (line 14) | long reduce_count() { return --count_; } method get_count (line 17) | long get_count() const { return count_; } class shared_ptr (line 23) | class shared_ptr { method shared_ptr (line 25) | explicit shared_ptr(T *ptr = nullptr) noexcept : ptr_(ptr) { method shared_ptr (line 33) | shared_ptr(const shared_ptr &other, T *ptr) noexcept { method T (line 50) | T &operator*() const noexcept { return *ptr_; } method T (line 52) | T *operator->() const noexcept { return ptr_; } method T (line 56) | T *get() const noexcept { return ptr_; } method shared_ptr (line 62) | shared_ptr(const shared_ptr &other) noexcept { method shared_ptr (line 71) | shared_ptr(shared_ptr &&other) noexcept { method shared_ptr (line 82) | shared_ptr &operator=(shared_ptr rhs) noexcept { method swap (line 87) | void swap(shared_ptr &rhs) noexcept { method use_count (line 93) | long use_count() const noexcept { function swap (line 107) | void swap(shared_ptr &lhs, shared_ptr &rhs) noexcept { function dynamic_pointer_cast (line 112) | shared_ptr dynamic_pointer_cast(const shared_ptr &other) noexcept { function static_pointer_cast (line 118) | shared_ptr static_pointer_cast(const shared_ptr &other) noexcept { function const_pointer_cast (line 124) | shared_ptr const_pointer_cast(const shared_ptr &other) noexcept { function reinterpret_pointer_cast (line 130) | shared_ptr reinterpret_pointer_cast(const shared_ptr &other) noexc... function main (line 135) | int main() { FILE: learn_class/modern_cpp_30/smart_ptr/unique_ptr.cpp class unique_ptr (line 7) | class unique_ptr { method unique_ptr (line 9) | explicit unique_ptr(T *ptr = nullptr) noexcept : ptr_(ptr) {} method T (line 13) | T &operator*() const noexcept { return *ptr_; } method T (line 15) | T *operator->() const noexcept { return ptr_; } method T (line 19) | T *get() const noexcept { return ptr_; } method unique_ptr (line 21) | unique_ptr(unique_ptr &&other) noexcept { method unique_ptr (line 26) | unique_ptr(unique_ptr &&other) noexcept { method unique_ptr (line 32) | unique_ptr &operator=(unique_ptr rhs) noexcept { method T (line 38) | T *release() noexcept { method swap (line 44) | void swap(unique_ptr &rhs) noexcept { function swap (line 53) | void swap(unique_ptr &lhs, unique_ptr &rhs) { function main (line 57) | int main() { FILE: learn_class/modern_cpp_30/smart_ptr/unique_ptr_U.cpp class unique_ptr (line 7) | class unique_ptr { method unique_ptr (line 9) | explicit unique_ptr(T *ptr = nullptr) noexcept : ptr_(ptr) {} method T (line 13) | T &operator*() const noexcept { return *ptr_; } method T (line 15) | T *operator->() const noexcept { return ptr_; } method T (line 19) | T *get() const noexcept { return ptr_; } method unique_ptr (line 21) | unique_ptr(unique_ptr &&other) noexcept { method unique_ptr (line 27) | unique_ptr &operator=(unique_ptr rhs) noexcept { method T (line 33) | T *release() noexcept { method swap (line 39) | void swap(unique_ptr &rhs) noexcept { function main (line 48) | int main() { FILE: practical_exercises/10_day_practice/day1/print.cpp function main (line 4) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day1/runnian.cpp function main (line 4) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day1/union.cpp function main (line 13) | int main() { FILE: practical_exercises/10_day_practice/day10/file/10-4.cpp function main (line 4) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day10/file/12-1.cpp function main (line 4) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day10/file/12-2.cpp function main (line 3) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day10/file/12-3.cpp function main (line 6) | int main() { FILE: practical_exercises/10_day_practice/day10/file/12-5.cpp function main (line 5) | int main() { FILE: practical_exercises/10_day_practice/day10/file/12-6.cpp function main (line 5) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day10/file/12-7.cpp function main (line 5) | int main() { FILE: practical_exercises/10_day_practice/day10/file/12-9.cpp class Employee (line 6) | class Employee { method Employee (line 13) | Employee() {} method Employee (line 14) | Employee(int num, char *Name, int Age, double Salary) { method display (line 20) | void display() { function main (line 25) | int main() { FILE: practical_exercises/10_day_practice/day10/file/input/get.cpp function main (line 4) | int main() { FILE: practical_exercises/10_day_practice/day10/file/input/get2.cpp function main (line 6) | int main() { FILE: practical_exercises/10_day_practice/day10/file/input/getline.cpp function main (line 8) | int main() { FILE: practical_exercises/10_day_practice/day10/file/practice.cpp class Person (line 7) | class Person { method Person (line 15) | Person() {} method Person (line 16) | Person(char *n, char *pid, int Age, char *Addr) { method display (line 22) | void display() { function main (line 26) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day2/compute.cpp function main (line 5) | int main(int argc, char const *argv[]) { function arctan (line 13) | double arctan(double x) { FILE: practical_exercises/10_day_practice/day2/enum.cpp type weekday (line 5) | enum weekday { s, m, t, w, thu, f, s1 } function main (line 7) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day2/hanoi.cpp function main (line 6) | int main(int argc, char const *argv[]) { function move (line 15) | void move(char A, char B) { cout << A << "->" << B << endl; } function hanoi (line 17) | void hanoi(int n, char A, char B, char C) { FILE: practical_exercises/10_day_practice/day2/pow.cpp function main (line 6) | int main(int argc, char const *argv[]) { function power (line 23) | double power(double x, int n) { FILE: practical_exercises/10_day_practice/day2/rec1.cpp function main (line 6) | int main(int argc, char const *argv[]) { function f (line 15) | int f(int n) { FILE: practical_exercises/10_day_practice/day2/rec2.cpp function main (line 5) | int main(int argc, char const *argv[]) { function f (line 15) | int f(int n, int k) { FILE: practical_exercises/10_day_practice/day2/shaizi.cpp function main (line 6) | int main(int argc, char const *argv[]) { function rolldice (line 47) | int rolldice() { FILE: practical_exercises/10_day_practice/day2/st.cpp type student (line 4) | struct student { function main (line 10) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day2/static.cpp function main (line 5) | int main(void) { function other (line 24) | void other(void) { FILE: practical_exercises/10_day_practice/day3/inline.cpp function main (line 6) | int main(int argc, char const *argv[]) { function CalArea (line 15) | inline double CalArea(double radius) { return 3.14 * radius * radius; } FILE: practical_exercises/10_day_practice/day3/pratice.cpp class Circle (line 15) | class Circle { function main (line 32) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day3/predeclare.cpp class Fred (line 10) | class Fred class Barney (line 11) | class Barney { method method (line 23) | void method() { class Fred (line 14) | class Fred { class Fred (line 19) | class Fred class Barney (line 21) | class Barney { method method (line 23) | void method() { class Fred (line 31) | class Fred { FILE: practical_exercises/10_day_practice/day3/static_data.cpp class Point (line 11) | class Point { method Point (line 13) | Point(int xx = 0, int yy = 0) { method GetX (line 19) | int GetX() { return X; } method GetY (line 20) | int GetY() { return Y; } method GetC (line 21) | void GetC() { cout << " Object id=" << countP << endl; } function main (line 35) | int main() { FILE: practical_exercises/10_day_practice/day3/static_member1.cpp class Application (line 10) | class Application { function main (line 22) | int main() { FILE: practical_exercises/10_day_practice/day3/static_member2.cpp class A (line 4) | class A { function main (line 18) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day3/swap.cpp function main (line 5) | int main(int argc, char const *argv[]) { function swap (line 14) | void swap(int &a, int &b) { FILE: practical_exercises/10_day_practice/day4/clock/operator.cpp class Time (line 4) | class Time { method Time (line 9) | Time(int h = 0, int m = 0, int s = 0) : hh(h), mm(m), ss(s) {} method ShowTime (line 15) | void ShowTime() { cout << hh << ":" << mm << ":" << ss << endl; } function main (line 17) | int main() { FILE: practical_exercises/10_day_practice/day4/clock/operator_plus.cpp class Time (line 7) | class Time { method Time (line 9) | Time(int h = 0, int m = 0, int s = 0) { method showTime (line 16) | void showTime() { function Time (line 23) | Time Time::operator++(int n) { method Time (line 9) | Time(int h = 0, int m = 0, int s = 0) { method showTime (line 16) | void showTime() { function Time (line 28) | Time Time::operator++() { method Time (line 9) | Time(int h = 0, int m = 0, int s = 0) { method showTime (line 16) | void showTime() { function main (line 44) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day4/const/obj_func.cpp class R (line 3) | class R { method R (line 5) | R(int r1, int r2) { function main (line 32) | int main() { FILE: practical_exercises/10_day_practice/day4/const/obj_ref.cpp class A (line 6) | class A { method A (line 8) | A(int i, int j) { function main (line 16) | int main() { function display (line 23) | void display(const double &r) FILE: practical_exercises/10_day_practice/day4/copy_ctor/clock.cpp function main (line 27) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day4/copy_ctor/clock.h function class (line 3) | class Clock { FILE: practical_exercises/10_day_practice/day4/friend/class.cpp class A (line 12) | class A { method Display (line 16) | void Display() { cout << x << endl; } class B (line 21) | class B { function main (line 32) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day4/friend/func.cpp class Point (line 5) | class Point { method Point (line 7) | Point(int x = 0, int y = 0) : X(x), Y(y) {} method GetX (line 8) | int GetX() { return X; } method GetY (line 9) | int GetY() { return Y; } function Distance (line 16) | float Distance(Point &a, Point &b) { function main (line 22) | int main() { FILE: practical_exercises/10_day_practice/day5/ctor_dtor/cseq.cpp class A (line 9) | class A { method A (line 11) | A() { cout << "Constructing A" << endl; } class B (line 14) | class B { method B (line 16) | B() { cout << "Constructing B" << endl; } class C (line 20) | class C { method C (line 22) | C() { cout << "Constructing C" << endl; } function main (line 28) | int main() { FILE: practical_exercises/10_day_practice/day5/ctor_dtor/ctor.cpp class Base (line 3) | class Base { method Base (line 8) | Base(int a) { class Derived (line 14) | class Derived : public Base { method Derived (line 19) | Derived(int a, int b) : Base(a) { //派生类构造函数的初始化列表 function main (line 25) | int main() { FILE: practical_exercises/10_day_practice/day5/ctor_dtor/ctor_d.cpp class A (line 3) | class A { method A (line 5) | A() { cout << "Constructing A" << endl; } class B (line 8) | class B { method B (line 10) | B() { cout << "Constructing B" << endl; } class C (line 13) | class C { method C (line 15) | C() { cout << "Constructing C" << endl; } class D (line 18) | class D : public C { method D (line 20) | D() { cout << "Constructing D" << endl; } function main (line 27) | int main() { FILE: practical_exercises/10_day_practice/day5/ctor_dtor/noctor.cpp class A (line 3) | class A { method A (line 5) | A() { cout << "Constructing A" << endl; } class B (line 8) | class B : public A { function main (line 12) | int main() { FILE: practical_exercises/10_day_practice/day5/ctor_dtor/param.cpp class Point (line 3) | class Point { method Point (line 8) | Point(int a, int b = 0) { class Line (line 14) | class Line : public Point { method Line (line 19) | Line(int a, int b, int l) : Point(a, b) { //构造函数初始化列表 function main (line 24) | int main() { FILE: practical_exercises/10_day_practice/day5/ctor_dtor/seq.cpp class A (line 4) | class A { method A (line 8) | A(int i = 0) { class B (line 13) | class B { method B (line 17) | B(int i) { class C (line 22) | class C { method C (line 26) | C(int i) { class D (line 31) | class D : public B { method D (line 36) | D() : a4(4), c2(2), c1(1), B(1) { cout << "D-----5" << endl; } function main (line 38) | int main() { FILE: practical_exercises/10_day_practice/day5/inherit_access/private.cpp class base (line 3) | class base { method setx (line 7) | void setx(int n) { x = n; } method getx (line 8) | int getx() { return x; } method showx (line 9) | void showx() { cout << x << endl; } class derived (line 12) | class derived : public base { method sety (line 16) | void sety(int n) { y = n; } method sety (line 17) | void sety() { y = getx(); } method showy (line 18) | void showy() { cout << y << endl; } function main (line 21) | int main() { FILE: practical_exercises/10_day_practice/day5/inherit_access/protected.cpp class B (line 8) | class B { class D (line 18) | class D : public B { method f (line 20) | void f() { function main (line 26) | int main() { FILE: practical_exercises/10_day_practice/day5/inherit_access/protected_inherit.cpp class Base (line 8) | class Base { method getx (line 12) | int getx() { return x; } method setx (line 15) | void setx(int n) { x = n; } method showx (line 16) | void showx() { cout << x << endl; } class Derived (line 18) | class Derived : protected Base { method sety (line 22) | void sety(int n) { y = n; } method sety (line 23) | void sety() { y = getx(); } method showy (line 24) | void showy() { cout << y << endl; } function main (line 26) | int main() { FILE: practical_exercises/10_day_practice/day5/inherit_access/public.cpp class Base (line 3) | class Base { method setx (line 7) | void setx(int n) { x = n; } method getx (line 8) | int getx() { return x; } method showx (line 9) | void showx() { cout << x << endl; } class derived (line 13) | class derived : private Base { method sety (line 17) | void sety(int n) { y = n; } method sety (line 18) | void sety() { y = getx(); } method showy (line 19) | void showy() { cout << y << endl; } function main (line 21) | int main() { FILE: practical_exercises/10_day_practice/day5/rela/rela.cpp class A (line 4) | class A { method setA (line 8) | void setA(int x) { a = x; } method getA (line 9) | int getA() { return a; } class B (line 11) | class B : public A { method setB (line 15) | void setB(int x) { b = x; } method getB (line 16) | int getB() { return b; } function f1 (line 18) | void f1(A a, int x) { a.setA(x); } function f2 (line 19) | void f2(A *pA, int x) { pA->setA(x); } function f3 (line 20) | void f3(A &rA, int x) { rA.setA(x); } function main (line 22) | int main() { FILE: practical_exercises/10_day_practice/day5/rule/direct.cpp class A (line 5) | class A { method A (line 9) | A(int aa) { class B (line 15) | class B : public A { method B (line 17) | B(int x) : A(x) { cout << "Constructing B" << endl; } class C (line 19) | class C : public B { method C (line 21) | C(int y) : B(y) { cout << "Constructing C" << endl; } function main (line 23) | int main() { FILE: practical_exercises/10_day_practice/day5/virtual/example1.cpp class A (line 4) | class A { method vf (line 6) | void vf() { cout << "I come from class A" << endl; } class B (line 8) | class B : public A {} class C (line 9) | class C : public A {} class D (line 10) | class D : public B, public C {} function main (line 12) | int main() { FILE: practical_exercises/10_day_practice/day5/virtual/example2.cpp class A (line 4) | class A { method vf (line 6) | void vf() { cout << "I come from class A" << endl; } class B (line 8) | class B : virtual public A {} class C (line 9) | class C : virtual public A {} class D (line 10) | class D : public B, public C {} function main (line 12) | int main() { FILE: practical_exercises/10_day_practice/day5/virtual/init.cpp class A (line 4) | class A { method A (line 8) | A(int x) { class B (line 13) | class B : virtual public A { method B (line 15) | B(int i) : A(i) { cout << "Virtual Bass B..." << endl; } class C (line 17) | class C : virtual public A { method C (line 21) | C(int i) : A(i) { class ABC (line 26) | class ABC : public C, public B { method ABC (line 29) | ABC(int i, int j, int k) function main (line 35) | int main() { FILE: practical_exercises/10_day_practice/day5/virtual/seq.cpp class A (line 5) | class A { method A (line 9) | A() { cout << "Constructing A" << endl; } class B (line 11) | class B { method B (line 13) | B() { cout << "Constructing B" << endl; } class B1 (line 15) | class B1 : virtual public B, virtual public A { method B1 (line 17) | B1(int i) { cout << "Constructing B1" << endl; } class B2 (line 19) | class B2 : public A, virtual public B { method B2 (line 21) | B2(int j) { cout << "Constructing B2" << endl; } class D (line 23) | class D : public B1, public B2 { method D (line 25) | D(int m, int n) : B1(m), B2(n) { cout << "Constructing D" << endl; } function main (line 29) | int main() { FILE: practical_exercises/10_day_practice/day6/abstract_class/main.cpp class Figure (line 4) | class Figure { method set (line 9) | void set(double i, double j) { class Trianle (line 16) | class Trianle : public Figure { method area (line 18) | void area() { cout << "三角形面积:" << x * y * 0.5 << endl; } class Rectangle (line 20) | class Rectangle : public Figure { method area (line 22) | void area() { cout << "这是矩形,它的面积是:" << x * y << endl; } function main (line 25) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day6/virtual_func/example.cpp class Employee (line 10) | class Employee { method Employee (line 12) | Employee(string Name, string id) : name(Name), Id(id) {} method string (line 13) | string getName() const { return name; } method string (line 14) | string getID() const { return Id; } method getSalary (line 15) | virtual float getSalary() const { return 0.0; } method print (line 16) | virtual void print() const { //输出姓名和身份证号 class Manager (line 25) | class Manager : public Employee { method Manager (line 27) | Manager(string Name, string id, int week) : Employee(Name, id) { method getSalary (line 30) | float getSalary() const { return WeeklySalary; } method print (line 31) | void print() const { //打印经理姓名、身份证、周薪 class SaleWorker (line 40) | class SaleWorker : public Employee { method SaleWorker (line 42) | SaleWorker(string name, string id, int profit, int x) : Employee(name,... method getSalary (line 45) | float getSalary() const { return workerMoney; } method print (line 46) | void print() const { class HourWorker (line 56) | class HourWorker : public Employee { method HourWorker (line 58) | HourWorker(string name, string id, int h) : Employee(name, id) { method getSalary (line 61) | float getSalary() const { return TotalMoney; } method print (line 62) | void print() const { function main (line 72) | int main() { FILE: practical_exercises/10_day_practice/day6/virtual_func/virtual.cpp class Employee (line 9) | class Employee { function string (line 25) | string Employee::getName() { return Name; } function string (line 26) | string Employee::getId() { return Id; } class Manager (line 33) | class Manager : public Employee { method Manager (line 35) | Manager(string name, string id, float s = 0.0) : Employee(name, id) { method setSalary (line 38) | void setSalary(float s) { weeklySalary = s; } method getSalary (line 39) | float getSalary() { return weeklySalary; } method print (line 40) | void print() { //打印经理姓名、身份证、周薪 function main (line 53) | int main() { FILE: practical_exercises/10_day_practice/day6/virtual_func/virtual_dtor.cpp class A (line 5) | class A { class B (line 9) | class B : public A { method B (line 13) | B(int i) { buf = new char[i]; } function main (line 19) | int main() { FILE: practical_exercises/10_day_practice/day6/virtual_func/virtual_feature.cpp class A (line 5) | class A { method f (line 7) | void f(int i) { cout << "A::f()" << endl; } class B (line 9) | class B : public A { method f (line 11) | virtual void f(int i) { cout << "B::f()" << endl; } class C (line 13) | class C : public B { method f (line 15) | void f(int i) { cout << "C::f()" << endl; } class D (line 18) | class D : public C { method f (line 20) | void f(int) { cout << "D::f()" << endl; } function main (line 22) | int main() { FILE: practical_exercises/10_day_practice/day6/virtual_func/vis.cpp class B (line 4) | class B { method f (line 6) | void f() { g(); } method g (line 7) | virtual void g() { cout << "B::g"; } class D (line 9) | class D : public B { method g (line 11) | void g() { cout << "D::g\n"; } function main (line 13) | int main() { FILE: practical_exercises/10_day_practice/day7/binary_operator/friend_operator.cpp class Complex (line 17) | class Complex { method Complex (line 22) | Complex(double R = 0, double I = 0) : r(R), i(I){} method Complex (line 28) | Complex operator+(Complex a, double b) { method Complex (line 31) | Complex operator+(double a, Complex b) { function Complex (line 38) | Complex operator+(Complex a, Complex b) { method Complex (line 22) | Complex(double R = 0, double I = 0) : r(R), i(I){} method Complex (line 28) | Complex operator+(Complex a, double b) { method Complex (line 31) | Complex operator+(double a, Complex b) { function Complex (line 41) | Complex operator-(Complex a, Complex b) { method Complex (line 22) | Complex(double R = 0, double I = 0) : r(R), i(I){} method Complex (line 28) | Complex operator+(Complex a, double b) { method Complex (line 31) | Complex operator+(double a, Complex b) { function Complex (line 44) | Complex operator*(Complex a, Complex b) { method Complex (line 22) | Complex(double R = 0, double I = 0) : r(R), i(I){} method Complex (line 28) | Complex operator+(Complex a, double b) { method Complex (line 31) | Complex operator+(double a, Complex b) { function Complex (line 50) | Complex operator/(Complex a, Complex b) { method Complex (line 22) | Complex(double R = 0, double I = 0) : r(R), i(I){} method Complex (line 28) | Complex operator+(Complex a, double b) { method Complex (line 31) | Complex operator+(double a, Complex b) { function main (line 66) | int main(void) { FILE: practical_exercises/10_day_practice/day7/binary_operator/operator.cpp class Complex (line 5) | class Complex { method Complex (line 10) | Complex(double R = 0, double I = 0) : r(R), i(I){} function Complex (line 18) | Complex Complex::operator+(Complex b) { return Complex(r + b.r, i + b.i); } method Complex (line 10) | Complex(double R = 0, double I = 0) : r(R), i(I){} function Complex (line 19) | Complex Complex::operator-(Complex b) { return Complex(r - b.r, i - b.i); } method Complex (line 10) | Complex(double R = 0, double I = 0) : r(R), i(I){} function Complex (line 21) | Complex Complex::operator*(Complex b) { method Complex (line 10) | Complex(double R = 0, double I = 0) : r(R), i(I){} function Complex (line 28) | Complex Complex::operator/(Complex b) { method Complex (line 10) | Complex(double R = 0, double I = 0) : r(R), i(I){} function main (line 45) | int main(void) { FILE: practical_exercises/10_day_practice/day7/brackets/brac.cpp class Time (line 4) | class Time { method Time (line 9) | Time(int h = 0, int m = 0, int s = 0) : hh(h), mm(m), ss(s) {} method ShowTime (line 15) | void ShowTime() { cout << hh << ":" << mm << ":" << ss << endl; } function main (line 17) | int main() { FILE: practical_exercises/10_day_practice/day7/equal_operator/equal_operator.cpp class X (line 5) | class X { method X (line 7) | X &operator=(const X &x) { function main (line 12) | int main() { FILE: practical_exercises/10_day_practice/day7/example/example.cpp class String (line 6) | class String { method ostream (line 11) | ostream &operator<<(ostream &os, const String &s) { method istream (line 14) | istream &operator>>(istream &is, String &s) { method String (line 19) | const String &operator=(const String &R) { function String (line 34) | const String &String::operator+=(const String &R) { method ostream (line 11) | ostream &operator<<(ostream &os, const String &s) { method istream (line 14) | istream &operator>>(istream &is, String &s) { method String (line 19) | const String &operator=(const String &R) { function main (line 57) | int main() { FILE: practical_exercises/10_day_practice/day7/index_parentheses/example.cpp class X (line 4) | class X { function main (line 23) | int main(void) { FILE: practical_exercises/10_day_practice/day7/subscript_operator/subscript_operator.cpp type Person (line 6) | struct Person { //职工基本信息的结构 class SalaryManaege (line 10) | class SalaryManaege { method SalaryManaege (line 15) | SalaryManaege(int Max = 0) { method display (line 34) | void display() { function main (line 39) | int main() { FILE: practical_exercises/10_day_practice/day7/unary_operator/time_counter.cpp class Counter (line 5) | class Counter { method Counter (line 10) | Counter(int i = 0) : n(i){} function Counter (line 17) | Counter Counter::operator++() { method Counter (line 10) | Counter(int i = 0) : n(i){} function Counter (line 21) | Counter Counter::operator++(int) { method Counter (line 10) | Counter(int i = 0) : n(i){} function Counter (line 26) | Counter operator--(Counter &c) { method Counter (line 10) | Counter(int i = 0) : n(i){} function Counter (line 30) | Counter operator--(Counter& c, int) { method Counter (line 10) | Counter(int i = 0) : n(i){} function main (line 36) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day7/unary_operator/time_increase.cpp class Time (line 7) | class Time { function Time (line 31) | Time Time::operator++() { function Time (line 45) | Time operator--(Time &t) { function main (line 60) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day8/class_template/spec.cpp class Array (line 8) | class Array { method Array (line 13) | Array() { function T (line 22) | T &Array::operator[](int i) { function main (line 57) | int main() { FILE: practical_exercises/10_day_practice/day8/class_template/stack.cpp class Stack (line 8) | class Stack { method Stack (line 14) | Stack() { top = 0; } method empty (line 17) | bool empty() { method setEmpty (line 23) | void setEmpty() { top = -1; } method full (line 24) | bool full() { function T (line 44) | T Stack::pop() { function main (line 52) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day8/func/main.cpp function T (line 10) | T Min(T a, T b) { return (a < b) ? a : b; } function T (line 15) | T myMin(T a, T b) { return (a < b) ? a : b; } function main (line 24) | int main() { FILE: practical_exercises/10_day_practice/day8/func/max.cpp function T (line 5) | T Max(T a, T b) { return (a > b) ? a : b; } function main (line 9) | int main() { FILE: practical_exercises/10_day_practice/day8/func/max_spec.cpp function T (line 6) | T Max(T a, T b) { return (a > b) ? a : b; } function main (line 15) | int main() { FILE: practical_exercises/10_day_practice/day8/func/sort.cpp function sort (line 8) | void sort(T *a, int n) { function display (line 19) | void display(T &a, int n) { function main (line 24) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day8/stl/map.cpp function main (line 6) | int main(int argc, char const *argv[]) { FILE: practical_exercises/10_day_practice/day9/exception/1.cpp function main (line 4) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/10.cpp class Full (line 5) | class Full { method Full (line 9) | Full(int i) : a(i) {} method getValue (line 10) | int getValue() { return a; } class Empty (line 12) | class Empty {} class Stack (line 13) | class Stack { method Stack (line 19) | Stack() { top = -1; } method push (line 20) | void push(int a) { method pop (line 25) | int pop() { function main (line 31) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/2.cpp function main (line 4) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/3.cpp function temperature (line 3) | void temperature(int t) { function main (line 17) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/4.cpp function temperature (line 3) | void temperature(int t) { function main (line 13) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/5.cpp function handler (line 5) | void handler(int n) throw(int, char, double) { function main (line 13) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/6.cpp function Errhandler (line 4) | void Errhandler(int n) throw() { function main (line 16) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/7-1.cpp class A (line 4) | class A { method A (line 8) | A(int i = 0) : a(i) {} class B (line 11) | class B { method B (line 16) | B(int k) { function main (line 27) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/7.cpp function Errhandler (line 5) | void Errhandler(int n) { function main (line 15) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/8.cpp class Full (line 5) | class Full {} class Empty (line 6) | class Empty {} class Stack (line 7) | class Stack { method Stack (line 15) | Stack() { top = -1; } function main (line 27) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/9-2.cpp class BasicException (line 3) | class BasicException { method string (line 5) | virtual string Where() { return "BasicException..."; } class FileSysException (line 7) | class FileSysException : public BasicException { method string (line 9) | virtual string Where() { return "FileSysException..."; } class FileNotFound (line 11) | class FileNotFound : public FileSysException { method string (line 13) | virtual string Where() { return "FileNotFound..."; } class DiskNotFound (line 15) | class DiskNotFound : public FileSysException { method string (line 17) | virtual string Where() { return "DiskNotFound..."; } function main (line 19) | int main() { FILE: practical_exercises/10_day_practice/day9/exception/9.cpp class BasicException (line 4) | class BasicException { class FileSysException (line 8) | class FileSysException : public BasicException { class FileNotFound (line 12) | class FileNotFound : public FileSysException { class DiskNotFound (line 16) | class DiskNotFound : public FileSysException { function main (line 20) | int main() { FILE: practical_exercises/key_exercises/array.cpp function main (line 5) | int main() { FILE: practical_exercises/key_exercises/array_template.cpp class Array (line 6) | class Array { method Array (line 8) | Array() { function T (line 21) | T &Array::operator[](int i) { function main (line 57) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/bracket_overloading.cpp type Person (line 5) | struct Person { //职工基本信息的结构 class SalaryManaege (line 9) | class SalaryManaege { method SalaryManaege (line 14) | SalaryManaege(int Max = 0) { method display (line 34) | void display() { function main (line 40) | int main() { FILE: practical_exercises/key_exercises/clock.cpp class Clock (line 9) | class Clock { function Clock (line 42) | Clock &Clock::operator++() { function Clock (line 59) | Clock Clock::operator++(int) { function main (line 68) | int main() { FILE: practical_exercises/key_exercises/func_temp.cpp function T (line 6) | T compareMax(T t1, T t2) { return t1 > t2 ? t1 : t2; } function main (line 14) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/io_operator.cpp class Sales (line 5) | class Sales { function Sales (line 23) | Sales &operator<<(ostream &os, Sales &s) { function Sales (line 28) | Sales &operator>>(istream &is, Sales &s) { function main (line 33) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/io_operator_overload.cpp class Sales (line 9) | class Sales { function Sales (line 26) | Sales &operator<<(ostream &os, Sales &s) { function Sales (line 32) | Sales &operator>>(istream &is, Sales &s) { function main (line 37) | int main() { FILE: practical_exercises/key_exercises/map_insert_look.cpp function main (line 7) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/operator_cast.cpp class Circle (line 16) | class Circle { method Circle (line 21) | Circle(double x1, double y1, double r1) { function main (line 30) | int main() { FILE: practical_exercises/key_exercises/operator_circle.cpp class Time (line 4) | class Time { method Time (line 9) | Time(int h = 0, int m = 0, int s = 0) : hh(h), mm(m), ss(s) {} method ShowTime (line 15) | void ShowTime() { cout << hh << ":" << mm << ":" << ss << endl; } function main (line 17) | int main() { FILE: practical_exercises/key_exercises/output.cpp function main (line 6) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/override.cpp class Employee (line 6) | class Employee { method Employee (line 8) | Employee(const char *name, const char *id) { method display (line 14) | void display() { cout << Name << "\t" << Id << endl; } class Manager (line 21) | class Manager : public Employee { method Manager (line 24) | Manager(const char *name, const char *id, int week) : Employee(name, i... method display (line 27) | void display() { class SaleWorker (line 36) | class SaleWorker : public Employee { method SaleWorker (line 38) | SaleWorker(const char *name, const char *id, int profit, int x) method display (line 42) | void display() { class HourWorker (line 51) | class HourWorker : public Employee { method HourWorker (line 53) | HourWorker(const char *name, const char *id, int h) : Employee(name, i... method display (line 56) | void display() { function main (line 66) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/read_file.cpp class Person (line 8) | class Person { method Person (line 10) | Person() {} method Person (line 11) | Person(char *name, char *id, int math, int chinese, int english) { method display (line 20) | void display() { function main (line 34) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/stack.cpp class Stack (line 8) | class Stack { method Stack (line 10) | Stack() {} method init (line 11) | void init() { top = -1; } method isFull (line 12) | bool isFull() { method isEmpty (line 18) | bool isEmpty() { function T (line 40) | T Stack::pop() { function main (line 49) | int main(int argc, char const *argv[]) { FILE: practical_exercises/key_exercises/try.cpp function fun (line 5) | void fun(int x) { function main (line 15) | int main(int argc, char const *argv[]) { FILE: tool/output/container.cpp function main (line 13) | int main() { FILE: tool/output/output_container.h type CHARS (line 32) | enum CHARS {