ÏÂÃæÒ»¶Î³ÌÐò»á²úÉúʲô½á¹û£¿ÎªÊ²Ã´£¿
void GetMemory(char *p,int num)
{
p = (char *)malloc(sizeof(char),num);
return;
}
int main()
{
char *str = NULL;
GetMemory(&str,100);
strcpy(str,"Helllo World.");
printf(str);
return 0;
}
¸ßÖÊÁ¿CÁÖÈñ¸½C++Ìâ
£¨1£©Äܹ»Êä³öHelllo W ......
ÎÒÏÖÔÚÓÃvs2008Éú³ÉÁËdllÎļþ£¬ µ«ÊÇÔÚµ÷ÓÃʱ£¬Èç¹û´«ÈëbyteÀàÐ͵Äֵʱ£¬ÈôÕâ¸öÖµ´óÓÚ0x80£¬ÔÚdll½ÓÊÕµ½µÄȷʵÕâ¸öÖµµÄ²¹Âë¡£ÎÒºÜÓôÃÆ£¬ÔÚÍøÉÏ¿´·¢ÏÖʱ˵±àÂëÎÊÌ⣬vs±àÒëÆ÷ÎÒ²»ÊìϤ£¬ÎÒÓõÄÊÇgcc±àÒëÆ÷£¬ÏÖÔÚÐèÒªÒ»¸ödll¶¯Ì¬¿â¡£Ö®Ç°Éú³É¹ý£¬Ò²Äܹ»Ó㬺ÃÏñÊÇÔÚvsÀïÐÞ¸ÄÒ»¸öºêÖµ£¡ÄÄλ´ó¸çÓùý£¬ÅθæÖª£¡Ð»Ð»£¡
ÄãµÄ½è¿ÚÊ ......
ÎÒÕâÀïÓÐÒ»¸öscore.mdbµÄaccessÊý¾Ý¿â¡£ÀïÃæÓпγ̡¢ÐÕÃû¡¢Ñ§ºÅ¡¢³É¼¨ËÄÏî¡£ÎÒÏëͨ¹ýVCÁ¬½ÓaccessÊý¾Ý¿â£¬²¢ÔÚVCÖеõ½0-59¡¢60-69¡¢70-79¡¢80-89¡¢90-100Õ⼸¸ö·ÖÊý¶ÎµÄÈËÊýºÍ×ÜÈËÊý¡£ËÄÜ°ïæ¡£±¾È˲ËÄñ¡£Ï£ÍûÏêϸµã
¿´Àý×Ó°É£¡
http://download.csdn.net/source/1070271
×Ô¼ºÏÂÔØ£¡
·Ö¶ÎÊý¡¢×ÜÊý£¬¶¼ÊÇSQLÓï¾ä¿ÉÒÔ¸ã ......
NÄêǰѧ¹ýC,µ«Ò»Ö±²»ÊÇÓÃC¿ª·¢,ÏëÖØÐÂÈÏʶһÏÂC.ÎÒÔÚC++Builder6ÖÐCÔËÐкóΪʲôûÓпØÖÆ̨Êä³ö?»¹ÓÐΪʲôûÉú³É¿ÉÖ¸ÐÐÎļþ.¾ÍÒ»¸öhello¶¼²»ÄÜÊä³ö(¿ØÖÆ̨).¿ØÖÆ̨¸ù±¾²»ÏÔʾ...
Ï£ÍûÖªµÀµÄ½øÀ´ËµÒ»ÏÂ.лл...
ûÓùýc++builder,°ï¶¥
ÎÒҲûÓùý,°ïÏî
Ê×ÏÈÈ·¶¨ÄãµÄ¹¤³ÌÀàÐÍÊÇconsole
Æä´Î¿ÉÒÔÔÚreturn 0֮ǰÊÔÊ ......
ÈçÌ⣬ Ò»´Î±ÊÊÔʱ±»Îʵ½µÄ¡£ ÎҼǵóýÁË void , argc argv Í⻹ÓÐÒ»ÖÖ´øÓÐÈý¸ö²ÎÊýµÄÐÎʽ ¾ßÌåÔÚÄÄ¿´¹ýÍüÁË...
¸ßÊÖ³öÀ´ËµËµ¶¼ÓÐʲôÐÎʽµÄ£¿
int main( int argc, char *argv[ ], char *envp[ ] );
Ç°Á½¸ö²ÎÊý±ê×¼¹æ¶¨µÄ£¬µÚÈý¸öÊDZàÒëÆ÷À©Õ¹µÄ
¶÷¡£ ºÃÏñÓиöʲô char* env£¬²»¼ÇµÃÁË¡£
int main( int argc, c ......
[code=C/C++][/code]
#include <string.h>
#define MAXN 10000
int lastdigit(char* buf)
{
const int mod[20]={1,1,2,6,4,2,2,4,2,8,4,4,8,4,6,8,8,6,8,2};
int len=strlen(buf),a[MAXN],i,c,ret=1;
if (len==1)
return mod[buf[0]-'0'];
for (i=0;i<len;i++)
a[i]=buf[len-1-i]-'0'; ......