FILE *pFile;
errno_t m_err;
m_err = fopen_s(&pFile,"1.txt","r");
char ch[100];
memset(ch,0,100);
fread(ch,1,100,pFile);
MessageBox(ch);
fclose(pFile);
MessageBox(ch); ÎÒÒªÈçºÎ²ÅÄÜMESSAGEBOX ³öÀ´£¿ Ϊɶ VC6ÎÒ¿´µ½¿ÉÒÔ VC2008 ¾Í²»µÃÐ ......
13¸öÈËΧ³ÉһȦ£¬´ÓµÚÒ»¸öÈË¿ªÊ¼Ë³Ðò±¨ºÅ1£¬2£¬3¡£·²±¨µ½3ÕßÍ˳öȦ×Ó£¬ÕÒ³ö×îºóÁôÔÚȦ×ÓÖеÄÈËÔÀ´µÄÐòºÅ
½á¹ûÓ¦¸ÃÊÇ13 ¿ÉÎҵijÌÐòµÄ½á¹ûÊÇ11 Ï£ÍûºÃÐÄÈË°ï¸ÄÒ»ÏÂ
#include <stdio.h>
#include <stdlib.h>
int onlyone(int a[])
{
int i,k = 0;
for(i = 1;i <= 13;i++)
if(a[i ......
ÎÊÌâÃèÊö£º
ÓÐÒ»¼òµ¥µÄC³ÌÐò£¬ÈçÏ£º
void foo ( ) {
int i ;
p r i n t f ( "%d " , i ++);
}
int main ( ){ int j ;
for ( j = 0 ; j < 1 0 ; ++j ) foo ( ) ;
}
º¯ÊýfooÀïÃæµÄ±äÁ¿iûÓгõʼ»¯£¬µ«ÊÇÔÚÓеÄϵͳÀï´òÓ¡Êä³öµÄ½á¹ûÊÇ0123456789£»¶øÔÚÆäËüµÄһЩϵͳÀï´òÓ¡Êä³ö ......
GCCÊÇÃâ·ÑµÄÂð£¿ÄÇÓУ¿
LINUXϵͳÔõôװ£¿
ÖÐÎÄÔõôÉèÖã¿
Äã×°ÍêLinuxϵͳ¾Í»á×Ô´øGCC£¬windowsÏÂÒ²ÓÐGCC£¬±ÈÈçdev-c++,CODE::Blocks
linuxϵͳ°²×°¸ù¾Ý²»Í¬µÄlinux°æ±¾ÍøÉ϶¼Óн̳̣¬¿´Ï¾ͺÃÁË£¬Ö÷ÒªÊÇÊÖ¶¯·ÖÇøÄÇŪһϾͿÉÒÔÁË
×°linuxʱºò£¬Ñ¡ÔñÖÐÎÄ£¬ÖÐÎľͻá×Ô¶¯ÉèÖúÃ
1.GCC×°ºÃLinux¾ ......
ÓÐÕâÑùÁ½¸öÎÊÌ⣬ϣÍû¸ßÊÖÖ¸µã£º
µÚÒ»£º
struct struct_A{
int a;
char b;
int c;
short d;
}
struct struct_B{
int a;
char b;
short c;
int d;
}
struct_A a;
struct _B b;
ÎÊ£ºsizeof(struct_A a) = ?
sizeof(struct ......
1001.exe ÖÐµÄ 0x0041394f ´¦Î´´¦ÀíµÄÒì³£: 0xC0000005: дÈëλÖà 0x66792e62 ʱ·¢Éú·ÃÎʳåÍ»
ÕâÊÇÔõô»ØÊ£¿Ð»Ð»ÁË£¬ÎÒÊDzËÄñ
ËÖªµÀÔõô»ØÊ¡¡ÕâÊǸöͨÓõĴíÎóÌáʾ¡¡ÉÏ´úÂë
ÐèÒªÖØнøÐбàÒë
ÒýÓÃ
ÐèÒªÖØнøÐбàÒë
´óÉñ£¬ÄãÊÇÈçºÎµÃÖªµÄ¡¡
CÓïÑÔÂ¹À¼ÆÄãÊÇÊý×éÔ½½çÖ®ÀàµÄ£¬Ïëµ±ÄêÎÒ ......