[Home]
[Edit this page]
[Recent Changes]
[Special Pages]
[Help]
CppInstance
Displaying differences between revision 6 and the latest revision
= ([[CCplusplus | C++]]) instance =
After having specified a data type (e.g. a class) 'bringing it to livfe'.
In the code below, myClass is an instance of the class MyClass. Also myOtherClass is an instance of MyClass.
[code]
#include <iostream>
MyClass
{
public:
MyClass() { std::cout << "Hello world" << std::endl; }
};
int main()
{
MyClass myClass;
MyClass myOtherClass;
return 0;
}
[/code]
== Topic links ==
* #include
* iostream
* class
* public
* std
* scope operator[blue]'::'[/blue]
* cout
* stream out operator '[blue]<<[/blue]'
* endl
* main
* return
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
CppInstance
Displaying differences between revision 6 and the latest revision
= ([[C
After having specified a data type (e.g. a class) 'bringing it to li
In the code below, myClass is an instance of the class MyClass. Also myOtherClass is an instance of MyClass.
[code]
#include <iostream>
MyClass
{
public:
MyClass() { std::cout << "Hello world" << std::endl; }
};
int main()
{
MyClass myClass;
MyClass myOtherClass;
return 0;
}
[/code]
== Topic links ==
* #include
* iostream
* class
* public
* std
* scope operator[blue]'::'[/blue]
* cout
* stream out operator '[blue]<<[/blue]'
* endl
* main
* return
[Edit this page] [Page history] [What links here] [Discuss this topic] [Printer Friendly]
