#include "sting.h"
#include "stdafx.h"
#include <stdio.h>
void main( void )
{
char string[80];
strcpy( string, "Hello world from " );
strcat( string, "strcpy " );
strcat( string, "and " );
strcat( string, "strcat!" );
printf( "String = %s\n", string );
}
编译后出现:
E:\vcprogram\test1\test1.cpp(11) : error C2065: ’strcpy’ : undeclared identifier
E:\vcprogram\test1\test1.cpp(12) : error C2065: ’strcat’ : undeclared identifier