Coder Social home page Coder Social logo

12.cpp-module-00's Introduction

12.-C++ MODULE 00

First project of C++ piscine

  • Namespaces
  • Classes
  • Fonctions membres
  • Stdiostreams
  • Listes d’initialisation
  • Static, Const
  • autre bases

Namespaces

It's a local scope
  • Namespaces provide a method for preventing name conflicts in large projects.

  • Symbols declared inside a namespace block are placed in a named scope that prevents them from being mistaken for identically-named symbols in other scopes.

STDIOSTREAMS

std::cout << "HELLO WORLD !" << std::endl
  std::cout <<
  std::cin >> buff
  std::cout << "You entered" <<buff<< std::endl 
  std::endl = passage à la ligne
  using std::cout;  => pour juste ecrire cout*

CLASSES

voir Phonebook.hpp

CONST

voir Contact.hpp

gotta get used to it 'cause it makes the program more stable
  const char c1;           //Le caractère ne peut être modifié
  const char * c2;         //Le caractère pointé ne peut être modifié
  char * const c3;         //Le pointeur vers le caractère ne peut être modifié
  const char * const c4;   //Le pointeur ET le caractère pointé ne peuvent être modifiés
  Dans le cas d'une fonction membre un const en fin de fonction 
  signifie qu'elle ne modifie pas l'instance de classe 

42 Project 100/100

12.cpp-module-00's People

Contributors

abensett avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.