Commit 2a291a73 authored by shengnan hu's avatar shengnan hu
Browse files

main

parents
int fun ( height ) //违背1
{
int h;
h = height + 10;
return h;
}
int main ( void )
{
int i, j;
i = 1000;
j = fun ( i );
return ( 0 );
}
int fun ( height ) //违背1
{
int h;
h = height + 10;
return h;
}
int main ( void )
{
int i, j;
i = 1000;
j = fun ( i );
return ( 0 );
}
int fun ( int height ) //遵循1
{
int h;
h = height + 10;
return h;
}
int main ( void )
{
int i, j;
i = 1000;
j = fun ( i );
return ( 0 );
}
int fun ( int height ) //遵循1
{
int h;
h = height + 10;
return h;
}
int main ( void )
{
int i, j;
i = 1000;
j = fun ( i );
return ( 0 );
}
//程序文件1
int zdata = 0;
//程序文件1
int zdata = 0;
//程序文件2
extern short zdata; //违背1
int main ( void )
{
short x, y;
x = 1;
y = 2;
zdata = x + y;
return ( 0 );
}
//程序文件2
extern short zdata; //违背1
int main ( void )
{
short x, y;
x = 1;
y = 2;
zdata = x + y;
return ( 0 );
}
//程序文件2
extern int zdata; //遵循1
int main ( void )
{
short x, y;
x = 1;
y = 2;
zdata = x + y;
return ( 0 );
}
//程序文件2
extern int zdata; //遵循1
int main ( void )
{
short x, y;
x = 1;
y = 2;
zdata = x + y;
return ( 0 );
}
//程序文件1
int zdata = 0;
int fadd ( int x, int y )
{
int z;
z = x + y;
return z;
}
//程序文件1
int zdata = 0;
int fadd ( int x, int y )
{
int z;
z = x + y;
return z;
}
//程序文件2
int main ( void )
{
extern int zdata; //违背1
extern int fadd ( int, int ); //违背2
int x, y;
x = 1;
y = 2;
zdata = fadd ( x, y );
return ( 0 );
}
//程序文件2
int main ( void )
{
extern int zdata; //违背1
extern int fadd ( int, int ); //违背2
int x, y;
x = 1;
y = 2;
zdata = fadd ( x, y );
return ( 0 );
}
int main ( void )
{
int array[ ] = { 0, 1, 2 }; //违背1
int i;
int data = 0;
for ( i = 0; i < 3; i++ )
{
data = data + array[ i ];
}
return ( 0 );
}
int main ( void )
{
int array[ ] = { 0, 1, 2 }; //违背1
int i;
int data = 0;
for ( i = 0; i < 3; i++ )
{
data = data + array[ i ];
}
return ( 0 );
}
int main ( void )
{
int array[ 3 ] = { 0, 1, 2 }; //遵循1
int i;
int data = 0;
for ( i = 0; i < 3; i++ )
{
data = data + array[ i ];
}
return ( 0 );
}
int main ( void )
{
int array[ 3 ] = { 0, 1, 2 }; //遵循1
int i;
int data = 0;
for ( i = 0; i < 3; i++ )
{
data = data + array[ i ];
}
return ( 0 );
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment