小小的问题
一个小小的问题,
哪为帮助我解释一下
伪指令#pragma 的作用?
问题点数:20、回复次数:2Top
1 楼Geranium(魂归阿寒)回复于 2002-04-17 10:16:55 得分 5
With #pragma, C++Builder can define the directives it wants without interfering with other compilers that support #pragma. If the compiler doesn't recognize directive-name, it ignores the #pragma directive without any error or warning message.Top
2 楼caijitao(阿修罗)回复于 2002-04-17 10:46:17 得分 15
预编译语句。#pragma之前的语句会被系统自动生成pre_header加入内存,unit中每个相同的部分就不用再编译了,可以提高编译的速度。(你一定看见了如下语句:#include vcl.h;#pragma hdrstop吧)不加这个选项,编译一个程序会慢死的:)Top




