diff --git a/_images/C++-unofficial.sh-600x600.png b/_images/C++-unofficial.sh-600x600.png new file mode 100644 index 0000000..79f027e Binary files /dev/null and b/_images/C++-unofficial.sh-600x600.png differ diff --git a/_images/Ryu_TvC.png b/_images/Ryu_TvC.png new file mode 100644 index 0000000..7f871f9 Binary files /dev/null and b/_images/Ryu_TvC.png differ diff --git a/cpp.html b/cpp.html new file mode 100644 index 0000000..306f557 --- /dev/null +++ b/cpp.html @@ -0,0 +1,200 @@ + + + + + + + Introdução ao C++ + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+
+ +
+

Agenda

+ +
    +
  • Orientação à objetos e Classes em C++
  • +
  • Visibilidade de variáveis e funções
  • +
  • Exceptions
  • +
  • Namespaces
  • +
  • STL
  • +
  • Templates
  • +
+
+ +
+
+

Orientação à objetos

+
+ +
+ + + +
+ +
+

Um personagem de um jogo:

+ +
    +
  • Pula
  • +
  • Chuta
  • +
  • Soca
  • +
+ +

A questão é: alguns personagens + chutam e socam de forma diferente.

+ + +
+ +
+


+class Personagem {
+	void pular();
+	void chutar();
+	void socar();
+}
+						

+ + +
+ +
+


+class Ruy : public Personagem {
+    void pular() {
+        this.altura_max = 10;
+    }
+}
+						

+ +


+class Chunli : public Personagem {
+    void pular() {
+        this.altura_max = 15;
+    }
+}
+						

+ + +
+ +
+


+Personagem player1 = new Ruy();
+Peronsagem player2 = new Chunli();
+                        

+ + +
+
+ +
+
+

Visibilidade de variáveis e funções

+
+
+
+
+ + + + + + + +