Some questions about C++ programming.

Hi I'm pretty new to C++ and obviously I have some questions about some problems I'm having.

1) Some people say that using "using namespace std" is not professional. Whats the difference of using this and std::cout?

2) How do I make a program, in which

if Y (string) = Z (string)

to execute cout << "Some words bla bla bla" << endl;


3) how to create a program, in which

if X (integer) > 30 AND X (integer) < 15

to execute another program, or have another set of requirements?

I hope you guys understand what I'm asking :)
Oh and another question, what is this code " getline(cin, name); "?
1. You can use google.

https://www.google.se/?gfe_rd=cr&ei=4wiFVr68NKSr8wfZ5KqIDQ&gws_rd=ssl#q=why+using+namespace+std+is+bad

2. You can also use google, lots of tutorials everywhere.

3. Read Above.

4. Google it.
http://www.cplusplus.com/reference/string/string/getline/
Last edited on
Topic archived. No new replies allowed.