Saturday

C++32 (or C++2e), C++ 2032, Cpp 2032, g++ 2032

 
Subject: C++ 2032

3
Code example for ?

2
Approximate feature suggestions:
- to complete C++29 or C++ 2029

1
Web links, references

Wandbox, online C++ compiler
https://wandbox.org/

Coliru is short for compile, link and run, online C++ compiler
https://coliru.stacked-crooked.com/

Godbolt Compiler Explorer C++
https://godbolt.org/

C++ status, C++ roadmap
https://isocpp.org/std/status

C++ 2032
https://en.cppreference.com/w/cpp/32

a list of open source C++ libraries
https://en.cppreference.com/w/cpp/links/libs

C++ Conference or CppCon
https://cppcon.org/

Friday

Act of War and Water Sharing Treaty

In its response, the state2 also rejected the state1 suspension of the water sharing treaty of many years old between the two state neighbors.

Any attempt to stop or divert the water will be considered as an act of war.

Monday

Understanding President Trash Tariffs war

Recently, even an economist was able to demonstrate why President Trash's insane war on tariffs are a complete disaster.

If you take your credit card and you go shopping, you run up a large credit card debts.
You're running trade deficits with all those shops.
Now it would be pretty strange if you then blamed all the shop owners for having sold you all those things.
You're ripping me off!
I'm running a trade deficit.

That is the level of understanding of the President Trash.

Saturday

Newton-Raphson Method in C++

The Newton Raphson Method is an open method used to find the roots of a function.
It employs the technique of linear approximation and involves using the tangent line to approximate the roots.
The method is highly efficient and converges rapidly, providing robust solutions in fewer iterations.

File content:

{{{{{

#include <iostream>

#include <cmath>

using namespace std;


const double EPS = 0.000001;


double function(double x0)

{

    // x0^2 - 3*x0 + 2 = (x0 - 1)(x0 - 2)

    return x0*x0 - 3*x0 + 2;

}


double derivative_of_the_function(double x0)

{

    return 2*x0 - 3;

}


int main()

{

    int max;

    int i = 0;

    double x1, x0;


    cout << "Newton-Raphson Method in C++" << endl;

    cout << "Maximum number of iterations: ";

    max = 100;

    cout << max << endl;

    cout << "The first approximation: ";

    x0 = 0; // you get the root 1

    //x0 = 3; // you get the root 2

    cout << x0 << endl;


    bool flagStopLoop = false;

    do

    {

        x1 = x0 - (function(x0) / derivative_of_the_function(x0));

        i++;


        if( fabs(x1 - x0) <= EPS )

        {

            flagStopLoop = true;

        }

        else if( i > max )

        {

            flagStopLoop = true;

        }

        else

        {

            x0 = x1;

        }

    } while( !flagStopLoop );

    cout << "The root of the function after " << i << " iteration is "

         << x1 << endl;


    return 0;

}

}}}}}

Change Codeblocks line number background and foreground back to its default colors

If background and foreground of line numbers did not change back to its default colors, go to 

Menu > Settings > Environment > Colors

Category > select: Editor

Click the “Default rectangle color at the right panel” for each of the following. 

* editor-caret

* line number background color

* line number foreground number 

* margin chrome color

* margin chrome highlight color

Click the button OK to close the dialog window.

C++32 (or C++2e), C++ 2032, Cpp 2032, g++ 2032

  Subject: C++ 2032 3 Code example for ? 2 Approximate feature suggestions: - to complete C++29 or C++ 2029 1 Web links, references Wandbox,...