It's a very interesting project to learn a programming language from chat GPT. I think however it is going to be much easier to get a solid understanding of the basics from a book, which is planned out by a human. AI's answers are not going to be consistent and sometimes will just take you on a tangent, to dusty areas that you certainly don't want to go as a beginner. I already had a good understanding of let's say c++ or VBA or other languages before AI was a thing, and let me tell you when I started interacting with it its answers were just... weird. Assuming they were even on point, which they often weren't.
@aakkii5271
To understand smart pointers you should learn about ownership and RAII. If you want I can give you a couple examples on explaining when are these pointers used.