@ George P
Ive actually been studying C++ for about 14 years now, on and off, but recently ive been really going hard on actually learning the advanced stuff and forcing myself to study, having ADHD makes it super difficult sometimes but i try to at least write code every day and practice the stuff i learned so it stays fresh. Im also taking notes as well.
And yeah ive been using learncpp.com, really great site, i also use cppreference.com for references, its a little hard to read sometimes but im getting used to it. and the biggest help of all i would say is chatGPT. Whenever i have an issue i can just paste my code in the chat and it tells me exactly whats wrong and why its wrong, mega helpful and sped up my learning by a lot. Just have to be careful with it cause it can and sometimes does give wrong info, but ive found that its not too common and its mostly small things. I usually double check stuff on websites and sometimes on here. I know enough c++ to kind of catch it when it happens too so it hasnt been much of an issue. pretty amazing tool.
I still need to completely read through learncpp.com and my programming book Professional C++ 5th edition, but ive been doing a LOT of learning and coding lately so ive kind of been neglecting those resources, but ill get back into them soon.
Yeah I dont bother learning anything thats not considered modern C++. Im never going to work with older code or anything like that so i just focus on everything C++ 11 and onward.
I havent heard of the file system library, ill check that out! As for the format library, I only used it once about 5 or 6 days ago actually. I was practicing with chrono stuff and I wanted to output year, hour, minute, day etc separately and chatGPT suggested I use the format library and gave me a few examples and i took it from there. i'll have to look more into it for sure it seems really useful, heres my code for that:
1 2 3 4 5 6 7 8 9 10 11
|
auto EasternTimeOffset = std::chrono::hours(-4);
const auto currentTime = std::chrono::system_clock::now() + EasternTimeOffset;
std::cout << std::format("{:%B}", currentTime); //Month
std::cout << std::format("{:%e}", currentTime) << "th "; //Day
std::cout << std::format("{:%Y}", currentTime); //Year
auto currentHours = std::format("{:%I}", currentTime);
auto currentMinutes = std::format("{:%M}", currentTime);
auto amOrPm = std::format("{:%p}", currentTime);
std::cout << " @ " << currentHours << ":" << currentMinutes << ' ' << amOrPm;
| |
@JLBorges
I'll check out std::partition as well, I've been going through the headers of C++ and picking out all the stuff I think would be useful and learning those. I kinda sidelined it for the time being though as ive been focusing so much effort on learning new concepts of the language, but i want to get back into that as well.
@seeplus
Yeah haha, ive read some of the papers for the new features and some of them seem interesting, doesnt seem to have as many new features as 23, but 23 has a new addition for string, contains which im excited about cause it makes it easier to check for substrings. Bunch of other nice little improvements in 23 as well.