Search This Blog

Monday, January 23, 2023

The basics of C++:

(1)  C++ Basic Code Structure

        #include <iostream>

        using namespace std;

        int main()

        {

            return 0;

        }

(2)  Common Libraries

     #include <iostream>

     #include <string>

     #include <iomanip>

     #include <cmath>

(3)  Void Functions

    void functionName(variableType);

    void functionName(variableType variableName)

{

        //Code Here

}

(4) Variable Type Functions

    variableType(variableType);

    variableType(variableType variableName)

    {

        //Code Here

        return variable;

    }





No comments:

Post a Comment

About Me:

 My name is Amina Washington and I'm a Computer Science student at Prairie View A&M University.   Here is my LinkedIn if you are int...