@jason77763 It is possible that std::string uses pointers to arrays, in which case the data won't actually be inside the struct, but only a pointer to the data. So it will save the pointer instead of the data.
@alact Well, generally, C and C++ go together. Personally, I think that some C things are better or easier to work with, while some C++ are better. As long as it doesn't actually create a problem, using C things together with C++ really is a non-issue.
Comment removed
jason77763 9 months ago
Comment removed
jason77763 9 months ago
@jason77763 It is possible that std::string uses pointers to arrays, in which case the data won't actually be inside the struct, but only a pointer to the data. So it will save the pointer instead of the data.
antiHUMANDesigns 8 months ago
Championship of explanation!
adipear 10 months ago
Why are you using functions from the C lib? Since this is a Cpphelp wouldn't it be better to use functions from CPP lib instead?
alact 1 year ago 2
@alact Well, generally, C and C++ go together. Personally, I think that some C things are better or easier to work with, while some C++ are better. As long as it doesn't actually create a problem, using C things together with C++ really is a non-issue.
antiHUMANDesigns 8 months ago
This has been flagged as spam show
Best C tutorials at programmingforfreshers.blogspot.com
raghuace 1 year ago
More videos... =D
lzrd0113 1 year ago