Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Initialization structure of the C -

#include "Stdlib.h>
#include "Stdio.h>

Typedef struct{
Char* data;
Int key;
}item;

Int main ()
{
Item a[]={
( "Jacky," 2).
( "Nick", 3)
};
}
As written, FC4, will be reported to the gcc 4.0 compiler, "warning : integer initialization exercises will target and no conversion"
Debugging with gdb field data did not indicate the origin of the item Assignment successful, and the conflict has emerged in the memory of errors

Will be main rewritten :
Int main ()
{
Item a[]={
( "Nick" objects.
( "Jacky," 4}
               
        };
}
!!!!!! Normal procedures, no memory of the conflict go up in smoke.

Ask to use () and how to use {} What is the difference between religion and religion will cause memory of the conflict


() Used to increase the priority level
{} Used a single block.

Is this ah?

( "Jacky", 2) the value of the two expressions
( "Nick", 3) the value of the expression
This valuation is actually the item you a[]={2,3)

Details, it is worth noting.

(,) Operator problems

X = (y=3, y);
Radio has always been the void left here - that is three steps exercises y, while the four exercises X :
Thus emerged the following situation.
Nuclearweapon
Published in 2006-3-28 12:43
( "Jacky", 2) the value of the two expressions
( "Nick", 3) the value of the expression
This valuation is actually the item you a[]={2,3)



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com