ek wrote:
> I thought that the syntax for c++ in either winXP or linux was the
> same.
>
> In Ubuntu linux it works fine if I write:
>
> #include <string>
> using namespace std;
>
> int main()
> {
> string bb = "fff";
> std::cout << bb;
> return 0;
>
> }
>
> But in winXP in MS Visual Studio 2005 'cout' is not recognized in 'std'
>
> I also have to declare a string like: std::string s = "ffff". Why does
> 'using namespace std' not work in winXP.
>
> What are there reason for this and are there many cases where C++
> syntax in linux is not compatible with C++ syntax for MS Visual Studio?
>
#include <iostream>
--
-- Pete
Roundhouse Consulting, Ltd. (
www.versatilecoding.com)
Author of "The Standard C++ Library Extensions: a Tutorial and
Reference." (
www.petebecker.com/tr1book)