Valoarea mea, valoarea mea ....

Intrebari despre programarea cu VC++ incluzand mediul de dezvoltare, instalare, setari, debugger, compilator, linker si documentatie.
Post Reply
User avatar
mihk
Junior
Junior
Posts: 39
Joined: 03 Jul 2009, 14:51

Valoarea mea, valoarea mea ....

Post by mihk » 04 Jul 2009, 15:23



Caut profesor.

User avatar
Marius Bancila
Fondator
Fondator
Posts: 2344
Joined: 11 Jul 2007, 11:45
Judet: Timiş
Location: Timisoara
Contact:

Re: Valoarea mea, valoarea mea ....

Post by Marius Bancila » 04 Jul 2009, 18:36

LOL.. Si asta compileaza ok in VS 2008.

Code: Select all

#include "stdafx.h"

#define FLAG 0x00
#ifdef FLAG
#endif this line is not visible; I can write anything here

int main()
{
	return 0;
}
Si asta la fel:

Code: Select all

marius bancila
acest code compileaza OK

#include "stdafx.h"

int main()
{
	return 0;
}
Marius Bancila
Fondator Codexpert, Microsoft MVP VC++
Site personal | Blog

User avatar
jos8cal
Banned
Banned
Posts: 86
Joined: 16 Feb 2008, 02:01

Re: Valoarea mea, valoarea mea ....

Post by jos8cal » 04 Jul 2009, 20:55

Uite ce spun altii despre valoarea ta:
!ENDIF
Marks the end of an !IF, !IFDEF, or !IFNDEF block. Any text after !ENDIF on the same line is ignored.
Detalii.
The /Za compiler option emits an error for language constructs that are not compatible with either ANSI C or ANSI C++. The /Ze compiler option, which is the default, enables Microsoft extensions.
Detalii. Daca setezi /Za va plinge pe orice warning level.

Vezi ca stdafx.h este un precompiled header.
The compiler treats all code occurring before the .h file as precompiled. It skips to just beyond the #include directive associated with the .h file, uses the code contained in the .pch file, and then compiles all code after filename.
Detalii.

Post Reply