c + + 학습 노트

9394 단어 학습 노트

인터넷 에서 c + + 의 학습 노트 가 좋 은 것 을 보 았 습 니 다. 가 져 와 서 친구 들 과 공유 하 세 요.
주소http://www.cnblogs.com/maowang1991/p/3290321.html
 
1.struct         public,  class       private!

2.exit                ,abort              !

3.                !

4.  public      private                ,                !

5.              ,                !

6.                                   ,           !

7.          delete      new       !

8.                                    !

9.operator++()    ++d,operator++(int)      d++ !

10.             ,                       !

11.       ,               ,                 !

12.  new       delete       !

13.istream  read         ,ostream  write        !

14.istream seekg          ,ostream seekp,    file.eof()            !

15.assert(  ),          assert,       assert!

16.          ,                        !

17.       srand(time(0)),         rand()                 !

18.        :int a[],         :int a[][SIZE],   []    ,      !

19.#define A 10       !

20.       new            ,                  ,                ,              delete      ,      

21.        T *a     ,       ,        new        !

22.      ,    (    )       (   )      !

23.C/C++        ctrl+z(windows  )!

24.C   printf(“%.9lf”,a);  c++  setprecision(10)      ,C++        !

25.    ,    ,     、    、        !

26.                ,             :      ,       !

27.                ,        !

28. const char *ptr   ptr        。 char* const ptr  ptr             !

29.const int *i = &a,          i     ,              a,  a=3 !

30.        ,  (a<b?a:b<c?b:c) = val();     3  if        !

31.    bridge             ,                   !

32.   :i++    ++i ,  ,                   !

33.                ,      ,      !

34. C++    0                  0                   !

35. const        const  const   ,   const      const  !

36.     const        const    ,   const         const    !

37.         ,                  ,                !

38.   operator->      ,    operator->      ,     operator->         ,          operator->   !

39.    STL        !

40.++i        ,              , i++         ,    ,         !

41.for     continue         ,  while    continue        ,    i     !

42.                 ,      :list<vector<string> > lovos;    >>         ,              >>     !

43.        ,         !

44.                    ,                !

45.    void *                    ,  void *           !

46.                               !

47.                ,                      !

48. C++              operator  ,             toInt(),toChar()     !

49.C++             explicit                    !

50.        ,               ,    ,            !

51.         operator()  class  ,                      !

52.  dynamic_cast<>,static_cast<>,const_cast<>,reinterpret_cast<> !

53.                      ,                          ,            !

54.             ,                      operator=(),      !

55.                         ,                                       !

56.                               '='      ,       ,     ,                       ,      '=' !

57.              ,             !

58. class          class                        , :N n(0)!

59.                  ,                 ,      '='  !

60.     private                     !

61.               ,      ,         ,            const!

62.          ,            ,      ,           ,            ,          !

63.                   (           ) ,       !

64.                               ,                ,  A a;    A a();  A()   ,                ,               ,         ,   RAII(        )!

65.  auto_ptr                     ,         !

66.     auto_ptr          STL       !

67.   auto_ptr              ,       ,         !

68.                  !

69.    (public protected private)              ,  public   ,                public     private      ,    !

70.                         ,                       ,    ,          ,    using A::fun()          fun  !

71.                   ,      !

72.                            ,    using A::fun() !

73.C++         ,      !

74.                 ,             !

75.                           ,            !

76.          ,  ++i    i++ !

77.                     ,                    !

78.                          ,                !

79.mutable     const        ,     const_cast<>,        mutable!

80.                   const,                        !

81.            ,              !

82.              ,             !

83.                        !

84.             ,             !

85. public                 ,                  !

86.            ,          ,             ,          !

87.  public,        ,   protected                  !

88.     class   ,   STL  ,  vector,               , vector<B *>!

89.wget w1 = w2;        ,  wget w1;w1 = w2;          !

90.                 ,  const   !

91.enum{star=5};     star             , #define star 5       !

92.    const,enum,inline    #define,     inline     !

93.      ,    const enum   #define,         ,    inline      !

94.  const    *          ,  const    *   ,      !

95.STL const vector<int>::iterator    T*const,vector<int>::const_iterator   const T* !

96.   const            ,  const      const          !

97.            non-local static     locat static   !

98.                                    ,   2   !

99.                     ,                !

100.             ,                  ,        !

101.                virtual  ,       derived class  ,          !

102.          reference to *this !

103.                              ,                !

104.                      ,             , delete        !

105.   tr1::shared_ptr  auto_ptr             !

106.               ,            ,                  !

107.shared_ptr              ,                ,             ,            ,          !

108.      、STL      ,      ,         ,          !

109.             ,                !

110.   non-member  non-friend     member  !

111.          ,        ,                 ,                  ,             ,          const!

112.        explicit            ,            ,                            ,               !

113.                          ,                       ,                       !

114.            ,                         !

115.        ,           C++    static_cast  !

116.       public,       private protected    !

117.          ,  is-a   has-a,private    has-a   ,         has-a!

118.  private      is-a  ,                    ,         ,       has-a      !

119.virtual     private      private  ,             ,             virtual      ,    !

120.             ,      ,           !

121.                   !

122.             ,        !

123.      ,     const value,        ,        !

124.          ,            ,        !

125.              ,                 !

126.STL   iterator      (*iterator).first   ,      ->   !

127.C++               ,                      !

128.              ,           !

129.                          !

130.    ->       * !

131.      vtbl,        vptr,RTTI  vtbl       ,         ,         !

132.         !

133.auto_ptr      const     ,       !

134.                  ,       !

135.                            !

136.            ,        !

137.                    ,             !

138.                 ,            ,                  ,      virtual     !

139.cout<<setiosflags(ios::fixed)<<setprecision(n)<<s1<<endl;      C++         !

140.  extern “C”         c    ,  obj          !

141.                2      2          &1  !

142.C++ C   ,          ,      ASCII       ,                    ASCII     !

143.C++ STL                 ,             ,  insert  push_back       ,           ,     STL,     ,       !

144.C++   STL   ,         ,         ,     ,            ,     !

좋은 웹페이지 즐겨찾기