Stack Danny

7,754
reputation
2
26
55
   ____               
  / ___|   _     _   
 | |     _| |_ _| |_ 
 | |___ |_   _|_   _|
  \____|  |_|   |_|  
                       

Read [here](https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice) why you `using namespace std;` is considered bad practise.

Please provide a [minimal, reproducible example](https://stackoverflow.com/help/minimal-reproducible-example).

[Here is a list of good books](https://stackoverflow.com/questions/388242/the-definitive-c-book-guide-and-list/388282#388282) to learn the basics.