随笔分类 - C++
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h> template <class T_ELE>class Vector { private: unsigned int m_size; unsigned int m_stride; uns
阅读全文
摘要:#include <stdio.h>#include "stdafx.h"struct Person {public: int age; Person() { this->age = 0; } Person(int age);};Person::Person(int age){ this->age
阅读全文
摘要:#include <stdio.h>#include "stdafx.h"struct BigNumber {private: unsigned int low; unsigned int high;public: BigNumber(int x, int y) { this->low = x; t
阅读全文
摘要:#include <stdio.h>struct node_s {private: int x; int y;public: node_s(int x, int y) { this->x = x; this->y = y; } friend struct node_s1;};struct node_
阅读全文
摘要:#include <stdio.h>struct node_s {private: int x; int y;public: node_s(int x, int y) { this->x = x; this->y = y; } friend void print(node_s &p);};void
阅读全文
摘要:#include <stdio.h>template <class T, class M>class Base { public: T x; T y; M a; M b; public: T max() { return (x>y) ? (x):(y); } M min() { return (a<
阅读全文
摘要:#include <stdio.h>template <class T>void swap(T a, T b){ int x = *a; *a = *b; *b = x;}template <class M>void sort(M arr, int len){ int i = 0; int j =
阅读全文
摘要:#include <stdio.h>struct Base{ int x; Base() { x = 100; } void func1() { printf("Base func1()\n"); } virtual void func2() { printf("Base virtual func2
阅读全文
摘要:#include <stdio.h>struct Base1{ virtual void func1() { printf("Base1 func1()\n"); } virtual void func2() { printf("Base1 func2()\n"); }};struct Base2:
阅读全文
摘要:#include <stdio.h>struct Base1{ virtual void func1() { printf("Base1 func1()\n"); } virtual void func2() { printf("Base1 func2()\n"); }};struct Base2:
阅读全文
摘要:#include <stdio.h>struct Base1{ virtual void func1() { printf("Base1 func1()\n"); } virtual void func2() { printf("Base1 func2()\n"); }};struct Base2:
阅读全文
摘要:#include <stdio.h>struct Base1{ virtual void func1() { printf("Base1 func1()\n"); } virtual void func2() { printf("Base1 func2()\n"); }};struct Base2:
阅读全文
摘要:#include <stdio.h>struct Base1{ virtual void func1() { printf("Base1 func1()\n"); } virtual void func2() { printf("Base1 func2()\n"); }};struct Base2{
阅读全文
摘要:#include <stdio.h>struct Base1{ virtual void func1() { printf("Base1 func1()\n"); } virtual void func2() { printf("Base1 func2()\n"); }};struct Base2{
阅读全文
摘要:#include <stdio.h>struct Base{ virtual void func1() { printf("Base func1()\n"); } virtual void func2() { printf("Base func2()\n"); } virtual void func
阅读全文
摘要:#include <stdio.h>struct Base{ virtual void func1() { printf("Base func1()\n"); } virtual void func2() { printf("Base func2()\n"); } virtual void func
阅读全文
摘要:#include <stdio.h>struct Person { int age; int height; Person(); void func1(); virtual void func2(); virtual void func3();};Person::Person(){ this->ag
阅读全文
摘要:similarity: 1. struct is class, can declare, define field funcion #include <stdio.h>struct Person_s { int age; Person_s(); Person_s(int age); void Set
阅读全文

浙公网安备 33010602011771号