|
From: Ferdinando F. <s2...@st...> - 2003-12-02 10:30:14
|
On Tue, 2 Dec 2003, Pascal wrote:
> #include <iostream>
> using namespace std;//<-- for using namespace to the standard librairie c++
Uh? And then why those:
> std::cout << "hello, you are now in hadi's program.\n";
> std::cout << "enter a number and I will give you its square.\n";
> std::cin >> num;
> std::cout << "the square of " <<num<<" is : "<<num * num << endl;
Shouldn't they be without std::?
> system("PAUSE");//<-- make a pose for view the result in the console
I'd suggest, if really someone programming in C++ need a header of the C
standard library, to declare it as <cxxx> without .h, as standard in C++.
Thus, I'd write:
#include <cstdlib>
...
std::system("pause");
Bye, Ferdinando.
|