what to do next?

I finished jumping into c++ few days ago. and i don't know what to do next and what should i learn or what is there to learn for that matter. For better view, jumping into c++ covered every topic that is covered in the the tutorials of this website.(seriously think author might have taken those as reference for what to cover).

now instead of/in addition to(idk really, whichever is better in your view) to learning new topics, i want to continue practicing basics. but honestly, when i try to solve the problems in the beginners sections, most of them use header file such as "cstdio" or "cstring" which wasn't covered in the book, so i don't even move forward with those problems. so see i think I haven't got basics and don't think i should move forward with new topics.

i am completely lost right now. what should i cover next? and how long before i get to GUI because i really want to learn those.



most of them use header file such as "cstdio" or "cstring" which wasn't covered in the book

Those are C++ versions of the equivalent C header files (stdio.h and string.h). If you're writing C++, you should not need those headers.

You can find descriptions of those headers here:
http://www.cplusplus.com/reference/cstring/
http://www.cplusplus.com/reference/cstdio/

As to what to do next, practice, practice, practice.
and how long before i get to GUI

Why not do it now? Whilst you're learning, jumping in and making mistakes (and learning from those mistakes) is, in my opinion, the absolutely best way of learning to program.
If you're writing C++, you should not need those headers.

why are other using those, and even if i don't choose to use those, i would still need to learn them and use them(for practice eventually) if i want to understand their code. seeing they are input/output and string library, why choose them over simple "iostream" or "string" library.

could you please mention only the important syntaxes, looking back at the reference page of same, that are popularly used and not the arcane ones. like only cin, cout and getline level important from iostream. would save me much time.

at last
practice, practice, practice.
, where i can find problems. like i said, here in beginner section i don't understand much of code as they use much more than what i learnt.

@mutexe could you please suggest some good resources(or better, the best resource) to learn GUI for absolute beginners, C++ being my first programming language. also , how did you learn it yourself?
Last edited on
why are other using those, and even if i don't choose to use those

Since pretty much everything that is legal in C is also legal in C++, often you will see code that is a mix of C and C++. Also if you are using certain third party libraries, you may find some of those libraries only have C interfaces and do not have C++ interfaces.

For example, consider the difference between <cstring> (<string.h>) and <string>.
<cstring> (<string.h>) deals with C-strings which are char arrays terminated by a null character. <string> on the other hand is a true C++ object which encapsulates string handling. In general in C++, you should always use C++ string objects. However, there are times that you may need to deal with a string object as a C-string. For that, there is the string::c_str() function.

would I still need to learn them

Yes, if you want to understand C code.

why choose them over simple "iostream" or "string" library.

Normally you would want to always use the C++ way of doing things. However, in a professional environment, not all code is C++. Some is still written in C, so you would want to be able to understand that code.

where i can find problems

https://projecteuler.net/ is a good place to start.





@AbstractionAnon sure would start practicing now.
Topic archived. No new replies allowed.