June 6th 2008

Friendship

  • C++ Crash Course:
    • Classes:
      • Data structures that can contain both variables and functions. Located outside of int main() or in another file.
      • Private by default, which is different from C, where classes are public by default.
      • Contains:
        • public: //accessible anywhere (anyone can access it)
        • private: //accessible only to members from the same class or friends
        • protected: //similar to private, but accessible only to derived (inheritance) classes
        • constructors //automatically called to create, same name as class, does not have a return type, can be overloaded
        • destructors //automatically called to delete, same as above but called ~className
      • class className
        {
        --> public:
        -->--> //code containing variables and/or functions
        -->--> className; //eg. default constructor
        -->--> className(int x, int y); //eg. specific constructor
        -->--> ~className; //eg. destructor
        -->--> ~className(int x, int y); //eg. specific destructor
        --> private:
        -->--> //code containing variables and/or functions
        --> protected:
        -->--> //code containing variables and/or functions
        }

HCI Course video: HCIwikipedia.wmv


Comments here please.

 

EvaTao - 07 Jun 2008 - 01:13

Could you post your HCI video under the team blog as well?

Topic revision: r5 - 2008-07-01 - 21:05:34 - DesireeVelazquez
 
This site is powered by the TWiki collaboration platformCopyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback