回复 10楼 lz1091914999
											我支持九楼										
					
	
一步一个脚印...............................默默地前进.....
诚邀乐于解答c菜鸟问题,的热心网友加入, QQ群38490319
 程序代码:
程序代码:#include <stdio.h>
int main(void)
{  
    printf("Hello, world!");
    return 0;
}test.c里的内容是: 程序代码:
程序代码:#include <stdio.h>
#include <ctype.h>
int main(void)
{
    FILE *   fp = fopen("hello.exe", "rb");
    unsigned i, j, read_size;
    unsigned count = 0;
    char     buffer[16];
   
    while(!feof(fp)) {
        printf("%04X  ", count);
        read_size = fread(buffer, sizeof(char), 16, fp);
        for(i = 0; i < read_size; i++)
            if(i == 7)
                printf("%02X-", buffer[i] & 0x000000FF);
            else
                printf("%02X ", buffer[i] & 0x000000FF);
        if(read_size < 16)
            while(i++ < 16)
                printf("   ");
        for(i = 0; i < read_size; i++)
            if(isprint(buffer[i]))
                printf("%c", buffer[i]);
            else
                printf(".");
        count += 16;
        printf("\n");
    }
   
    fclose(fp);
    return 0;
}
hello.c的目的是输出Hello, world!,test.c代码的功能是一个16进制查看器。