Á½¸öCÎļþµÄÎÊÌâ
ÒÔÇ°ÔÚVCÀïÃ潨һ¸ö¹¤³Ì£¬¶¼Ö»ÓÃÒ»¸ö .c Îļþ£¬×òÌìÔÚÒ»¸ö¹¤³ÌÀïÓÃÁËÁ½¸ö .cÎļþÁË£¬Óöµ½ÎÊÌâÁË£¬Çë´ó¼ÒÖ¸µã¡£±ÈÈ磺
File1.c File2.c
1 fun1( ) #include "File.c"
2 { fun( ) { }
3 int main()
4 } {
5 fun2( ) fun1( );
6 { fun2( );
7 }
8 }
ÔÚ±àÒëÁ¬½Óͨ¹ýºó£¬½á¹ûÓÖµãÎÊÌ⣬ÎÒ¾ÍÐÞ¸ÄÁËÏÂFile.c£¬¸øfun1()¼ÓÁ˼¸ÐУ¬fun2()µ½Á˵Ú7ÐÐÁË£¬±àÒëÁ¬½ÓûÎÊÌ⣬
µ«ÊÇÊä³ö½á¹ûû±ä£¬µ¥²½µ÷ÊÔʱ·¢ÏÖÁ˸öÆæ¹ÖµÄÎÊÌ⣬ÔÚmain()ÀïÃæµ÷ÓÃfun2()ʱ¹â±êÊÇ»¹ÊÇ´ÓµÚ5ÐпªÊ¼½øÈ룬¶ø²»ÊÇ´Ó
fun2()¸ÄºóµÄµÚ7ÐпªÊ¼½øÈ룬¶øÇÒÎÒÔÚfun1ÖÐÐ޸ĺó¼ÓµÄ±äÁ¿ÔÚÏÂÃæµÄ״̬À¸ÀïÒ²ÕÒ²»µ½£¬¼ÓµÄ¼¸¸öÌõ¼þ¸ú±¾Ã»Ö´ÐÐ
ÎÒ¾õµÃÎÊÌâÊǸĺÍû¸ÄÒ»¸öÑù£¬ÎÒ·Ö±ð±àÒ룬Á¬½ÓÁËÁ½¸öÎļþ»¹ÊÇûÓã¬Çë´ó¼ÒÖ¸µãÏ£¬Ó¦¸ÃÔõô°ì£¿ ÏÈллÁË
lz»¹ÊǺúÃÅŸö°æ°É£¬Êµ
Ïà¹ØÎÊ´ð£º
ÔÚ²éѯºó½«²éѯ³öÀ´µÄÖµ¸³¸ø¸÷ÊäÈë¿ò
<c:if test="${not empty dataValue}">
fm.SAMPLING_DATE.value=" <c:out value='${dataValue.SAMPLING_DATE}'/ ......
ÇëÎÊÏÂC/SµÄÎïÀí½á¹¹£¬ÊDz»ÊÇÕâÑùµÄ£º
һ̨·þÎñÆ÷£¬ÉÏÃæÖ»ÔËÐÐÒ»¸öÊý¾Ý¿â£¬È»ºóÊǶà¸ö¿Í»§¶Ë»ú£¬Ã¿¸ö»ú×ÓÉÏ°²×°Ò»¸ö¿Í»§¶ËÈí¼þ£¬ÔÙ°ÑÊý¾Ý¿âÁ¬½ÓÓû§ÃûÃÜÂë¸øÿ¸ö¿Í»§¶Ë£¬Õâ¸öÃÜÂëÓÉÈí¼þ¼ÓÃÜ·ÅÔÚ¿Í»§¶Ë£¬Óû§µ ......
struct s1 {
char ch, *ptr;
union {
short a, b;
unsigned int c:2, d:1;
}
struct s1 *next;
};
Ö÷Òª¿´²»¶®·ûºÅ¡¡:
Çë´ïÈËÖ¸µãÒ»¶þ
http://blog.cechina.cn/true ......
/*-----------c.h--------------*/
#ifndef _C_H_
#define _C_H_
extern "C" int add(int x, int y);
#endif
/*-----------c.c--------------*/
int add(int x, int y){
return ......
дÁËÒ»¶Î³ÌÐò
C/C++ code:
..
MYSQL* mysql£»
MYSQL_RES* res;
//ÎÒÏëʵÏÖÒ»¸ö²é¿´ÓÐûÓÐ mysql½á¹¹£¬Èç¹ûûÓоÍÁ¬½Ó¡£
void connect()
{
mysql_init(mysql);
mysql_realconnect(. ......