Codecademy / learn-cpp

Codecademy | Learn C++
https://www.codecademy.com/learn/learn-c-plus-plus
715 stars 334 forks source link

dog_years2.cpp #47

Closed Roy7997 closed 3 years ago

Roy7997 commented 3 years ago

hii i am new at learning c++ can u explain me the following step:

why do we use "std::" before declaring string variable for dog_name;. while we dont use that for int dog_age.

do we have to use std:: while declaring string variable every time ?

cpp doubt

tymsai commented 3 years ago

you can use using namespace std; instead of using std:: every time