About #include and using namespace | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

About #include and using namespace

hello, im new to SoloLearn and quite a beginner when it comes to programming. ive started the C++ course as ive heard its the best language to get started. however at the very beginning i stumbled upon the "#include <iostream>" and "using namespace std". These lines were explained, however due to my lack of knowledge i couldnt understand a thing. Could you explain them to me as you would explain to a simple human being? thanks in advance :)

27th Aug 2018, 5:48 PM
Razvan
Razvan - avatar
4 Answers
+ 3
I would really like to explain it to you, but given my lack of knowledge and authorship skills, I suppose these will explain much better than I could even dream. May they help you understand better : ) [ Pre-processor directives ] http://www.cplusplus.com/doc/tutorial/preprocessor/ [ C++ Keywords: "using" ] https://en.cppreference.com/w/cpp/keyword/using
27th Aug 2018, 6:23 PM
Ipang
+ 1
Ipang thanks a lot, though ive read them and remained a little confused. however i searched further through the threads for posts asking similar questions and i think i understood everything
27th Aug 2018, 6:37 PM
Razvan
Razvan - avatar
+ 1
Razvan alright I'm glad to hear that! yeah sometimes formal reference can be tough : )
27th Aug 2018, 6:40 PM
Ipang
0
Ipang good thing its formal so as a beginner i can just quite ignore it and focus on learning other stuff
27th Aug 2018, 6:41 PM
Razvan
Razvan - avatar