求解system("type ××.txt")与system("××.txt")的区别
#include <stdio.h> FILE *stream;
void main( void )
{
int i = 20;
double fp = 1.5;
char s[] = "this is a string";
char c = '\n';
stream = fopen( "fprintf.txt", "w" );
fprintf( stream, "%s%c", s, c );
fprintf( stream, "%d\n", i );
fprintf( stream, "%f\n", fp );
fclose( stream );
system( "fprintf.txt" ); //system( "type fprintf.h" ); //此处加上type会在控制台输出,不加则不输出
}
求解type在system的作用,望各位大神能够指点小弟一下,谢谢。