Sorry it took so long to get back. The end of the school year is
busy. I still can't seem to get a compiler that works on Vista.
Here is the code with the parenthesis. I used this on the Miracle C
compiler which works on my winxp machine.
Code-
#include <stdio.h>
int main()
{
printf ("Hello World! \n");
return 0;
--- In [email protected], "Brett McCoy" <[EMAIL PROTECTED]> wrote:
>
> On Wed, May 14, 2008 at 11:01 PM, bo <[EMAIL PROTECTED]> wrote:
>
>
> > I didn't see any reference to this question when searching
throught the
> > messages. Does anyone recommmend a specific compiler for use with
vista?
> > I have tried Dev C++ and I can't seem to get it to work. I also
tried
> > Visual C++. It seems to work, but I can't find the method for
running
> > the program. (I am still working on that one.) I just need a
simple
> > compiler. I haven't found a borland one that will work yet.
>
>
> Should be under the Debug menu, or use F5. There is also a button
that looks
> like a Play button in the toolbar that will run your compiled
program.
>
>
> > Also thanks for the help with the Magic C compiler, however it
only
> > works on my win98 machine. I did get Hello world to run
successfully.
> > I had to change #include <iostream> to <sdtio>, cout would not
work,
> > but printf did work. I also noticed in the final program I had to
have
> > the printf statement enclosed in parenthesis before it worked.
How do
> > you tell which constructs to use on each different compiler?
>
>
> Must be an old version that doesn't support C++. You should *have*
to worry
> about what constructs to use on a different compiler... if it's
standards
> compliant.
>
> Can you show your final code and what you mean by putting
parenthesis around
> printf?
>
> -- Brett
> ------------------------------------------------------------
> "In the rhythm of music a secret is hidden;
> If I were to divulge it, it would overturn the world."
> -- Jelaleddin Rumi
>
>
> [Non-text portions of this message have been removed]
>