[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] C-programmering i MS Visual Studio



Ok tak...

Min kode ser sådan her ud:


#include <iostream.h>

int main()
{
 int i;

 for(i=0 ; i<10 ; i=i+1)
 printf("Hello World!\n");

}


Og jeg får en fejl :/

--------------------Configuration: Test - Win32 Debug--------------------
Compiling...
Test.cpp
c:\program files\microsoft visual studio\myprojects\test\test.cpp(15) :
fatal error C1010: unexpected end of file while looking for precompiled
header directive
Error executing cl.exe.

Test.obj - 1 error(s), 0 warning(s)


Nogen der kan hjælpe mig??

- Jesper
"Klaus S. Madsen" <sslug@sslug> wrote in message
news:sslug@sslug
> On Mon, Apr 01, 2002 at 11:18:24PM +0200, Jesper wrote:
> > hehe glemte helt mit spørgsmål.... :)
> >
> > Mit spørgsmål lyder..:
> >
> > Er det stdio.h header filen jeg skal bruge eller er det Standdard I/O
> > headerfilen for C++ jeg skal bruge da det er en C++ compiler... i så
fald
> > hvad hedder den??
> Hvis du ikke har lavet nogle oplagte fejl i din kode, så vil en C++
> compiler godt æde den.... Du kan nemlig godt kode C i en C++ compiler,
> faktisk er sproget designet precis med det for øje (der er vist to
> tilfælde hvor C++ ikke er kompatibelt med C, men det er ikke nogen man
> lige løber ind i).
>
> Derudover er MSVC mere en C compiler end en C++ compiler... Den vil
> formentlig klare sig nogenlunde med C, men hvis du begynder at skrive
> C++ til den, så er du bedre stillet med at forsøge at finde en anden
> (f.eks. Borland's C++-compiler, Intels, GCC-mingw eller lign.).
>
> --
> /-----------------------------------------------------\
> | Klaus S. Madsen      | "Failure is not an option... |
> | ICQ: 45400164        |  It comes bundled with your  |
> | www.hjernemadsen.org |  Microsoft products!"        |
> \-----------------------------------------------------/
>




 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:09 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *