GithubHelp home page GithubHelp logo

cpp-learning's Introduction

Cpp-learning

learning C++ during lockdown

I did know about iostream but
The following are the possible input/output libraries in cpp

  • iostream: iostream stands for standard input output stream. This header file contains definitions to objects like cin, cout, cerr etc.
  • iomanip: iomanip stands for input output manipulators. The methods declared in this files are used for manipulating streams. This file contains definitions of setw, setprecision etc.
  • fstream: This header file mainly describes the file stream. This header file is used to handle the data being read from a file as input or data being written into the file as output.
  • Topics covered

    1. Compiler, about Cpp, Input/Output
    2. Variables-1
    3. Variables-2
    4. Operators

    Precendence of operators Check out this link: https://en.cppreference.com/w/cpp/language/operator_precedence

    Extra-notes

    Errors in cpp

    • Syntax error
    • Logical error
    • Semantic error
    • Runtime error
    • Runtime error
    • Liker error

    Operators

    • Binary Operators:
      • Addition +
      • subtraction -
      • modular division %
      • multiplication *
      • Division /
    • Unary Operator
      • increment (x++ or ++x)Also known as postfix increment or prefix increment
        Note: y = x ++ is
        y=x
        x=x+1
        and vice versa...
        It is not recommended to use multiple unary operators in the same line.
      • decrement --

    Note The precedence of associativity is left to right in addition, subtraction etc. However for assignment operator it is right to left.
    Which is pretty clear actually if one sees the way in which variables are assigned values in C++.

    I was simply practising C++ when I wrote this stuff down. If anything is wrong or depreciated, I appreciate any one who stumbles here by chance to let me know. You can just start an issue in the repository and I'll know.

cpp-learning's People

Contributors

nitinr2510 avatar

Watchers

 avatar  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.