On 06/02/2017 12:53 PM, bob by wrote:
> 2017-06-02 16:23 GMT+04:00 LRN <[email protected]>:
> 
>> On 6/2/2017 2:47 PM, bob by wrote:
>>> Can somebody here write a replacement for the standard cout, that will be
>>> able to print strings and integers, and internally will just redirect to
>>> puts and itoa? I'm only starting with C++, I'm not sure how to do it.
>>
>> I feel compelled to cite my own first experience with C++. Specifically, i
>> would like to mention that at the time i did not understand the difference
>> between C and C++. It took me a while to understand the difference and
>> realize
>> that the programs i was writing were really just C programs, even though i
>> was
>> compiling them with a C++ compiler. I stopped writing in C++ shortly
>> afterwards.
>>
>> I remembered that because you've mentioned cout and printf in the same
>> sentence.
>>
> 
> Do you use datatypes like linked lists or trees or hashmaps? Can you share
> some libraries or code to work with them?
> 
> I'm trying to learn C++ just because a lot of code I see is written in C++.
> Pretty much just in case.

You can take a look at the Linux Kernel and find out how they do it in
pure C :)

Nothing is stopping you from using printf in C++ anyway.

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to