Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C 

A Challenge for the bored C++'ers (Simple) Reference Counter

A Challenge for the bored C++'ers (Simple) Reference Counter.

Here's a challenge that should push the C++ rookies.

Start with this simple class MyInt and make a (simple) reference counter for it.

Code
class MyInt {

    public:

        MyInt():value(0) {}
        
    private:

        int value;

};

If this is a simple exercise for you, then make the MyInt class into a node for a linked list and make the (simple) reference counter for that.

Have fun.
May you be given directions by software engineer document writers.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by AeS0pDec 21, 2020 06:19 AM 0 200 Dec 21, 2020 06:19 AM
Last Post: AeS0p
[C] by saltycrackerMay 23, 2020 06:48 PM 15 499 May 23, 2020 06:48 PM
Last Post: Litecoin
[C] by SIM-3991524May 14, 2020 09:27 PM 9 391 May 14, 2020 09:27 PM
Last Post: Sugawara