C++struct¶ÔÏóºÍXMLת»»ÎÊÌâ¡£¡£¡£
ÎÊÏ£º
ÎÒÒª½«Ò»¸ö½á¹¹Ìåstruct¶ÔÏóת»»³Éxml,ÈçÏ£º
½á¹¹Ì壺struct structXML
{
string sA;
string sB;
string sC;
}
structXML stxml;
stxml.sA="sa";
stxml.sB="sb";
stxml.sC="sc";
Ҫת»»³ÉµÄXML£º
<.....xml Í·>
<struct>
<sA>"sa" </sA>
<sB>"sb" </sB>
<sC>>"sc" </sC>
</struct>
ÇëÎÊÔõô×ö°¡£¿£¿£¿
ÏëÏÂ˼·´ó¸ÅÊÇÕâÑùµÄ£¬ÄÜ·ñ»ñÈ¡½á¹¹ÌåµÄÊôÐÔÃû£¬ÈçsA£¬È»ºóÔÙ»ñÈ¡"sa",È»ºóдÈëxml...
дÈëxml²»ÊÇÎÊÌ⣬ÎÊÌâÊÇÈçºÎ»ñÈ¡½á¹¹ÌåµÄÊôÐÔÃû£¬Èç¹ûÊDz»Í¬µÄ½á¹¹ÌåÀàÐ͵ϰ¡£¡£¡£
´ó¼Ò¸øµãÏë·¨°¢£¬½ô¼±Òª¡£¡£¡£
ÓÃC/C++ stru
Ïà¹ØÎÊ´ð£º
ÇëÎÊÓÃC»òC++ÈçºÎ±àдÇó½â3Dħ·½µÄ³ÌÐò£¬¸Ã´ÓºÎ¿ªÊ¼£¿
лл¸÷룬°ïæÌáµã½¨Òé°É¡£
http://www.mofang.net/code/176/182/6581.html
ÎÒÖ»ÄÜÍ»ÆÆ60Ã룡°¦¡£
ÎÒ¸Õ¹ý40Ãë
googleµÄandroidÖÐÓиöOpenGL ES + ......
ÎÊÌâ:¹¤µØÉÏÐèÒª³¤¶ÈΪA1µÄ¸Ö½îX¸ù,³¤¶ÈΪA2µÄ¸Ö½îY¸ù,³¤¶ÈΪA3µÄ¸Ö½îZ¸ù......ÒÔ´ÎÀàÍÆ.
ÆäÖÐA1,A2,A3,...³¤¶ÈÈÎÒâÖ¸¶¨,X,Y,Z,...ÊýÁ¿Ò²ÈÎÒâÖ¸¶¨.
µ«²Ö¿âÖеĸֽîΪ±ê×¼³¤¶È,Ö»ÓÐ9Ã׺Í15Ã×Á½ÖÖ³¤¶È,ÊýÁ¿² ......
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
VC++ ÖУ¬ &±äÁ¿Ãû¡£ ÊÇʲôÒâ˼¡£ DelphiÖÐ ºÍËûÒ»ÑùµÄ·ûºÅ ÊÇÄĸö¡¢£¿
´ó¼Ò¶¼ÈÏΪ£¬CÓïÑÔÖ®ËùÒÔÇ¿´ó£¬ÒÔ¼°Æä×ÔÓÉÐÔ£¬ºÜ´ó²¿·ÖÌåÏÖÔÚÆäÁé»îµÄÖ¸ÕëÔËÓÃÉÏ¡£Òò´Ë£¬ËµÖ¸ÕëÊÇCÓïÑÔµÄÁé»ê£¬Ò»µã¶¼²»Îª¹ý¡£Í¬Ê±£¬ ......
#include "stdio.h"
void main()
{
int *p;
int a[10]={0,1,2,3,4,5,6,7,8,9};
int k=0;
p=a;
for(int i=0;i<10;i++,p ......