CµÄÒ»¸öÎÊÌâ
ÎÒÓõÄÊÇMicrosoft Visual C++ 2008 Express Edition
ÌâÄ¿ÊÇÕâÑùµÄ£º
±àдһ¸öÃûΪsumarrays()µÄº¯Êý£¬Ëü½ÓÊÜÁ½¸öÊý×é×÷Ϊ²ÎÊý£¬½«Á½¸öÊý×éÖеÄËùÓÐÖµÏà¼Ó£¬²¢·µ»ØµÃµ½µÄ½á¹û
ÊéÉϲο¼´ð°¸
#include <stdio.h>
#define MAX1 5
#define MAX2 8
int array1[MAX1] = {1,2,3,4,5};
int array2[MAX2] = {1,2,3,4,5,6,7,8};
int total;
int sumarrays(int x1[] , int len_x1 , int x2[] , int len_x2);
int main(void)
{
total = sumarrays(array1 , MAX1 , array2 , MAX2);
printf("The total is %d\n",total);
return 0;
}
int sumarrys(int x1[] , int len_x1 ,int x2[] , int len_x2)
{
int total = 0 , count = 0 ;
for (count = 0 ; count < len_x1 ; count++)
total += x1[count];
for (count = 0 ; count < len_x2 ; count++)
total += x2[count];
return total;
}
1>------ ÒÑÆô¶¯Éú³É: ÏîÄ¿: 6, ÅäÖÃ: Debug Win32 ------
1>ÕýÔÚ±àÒë...
1>6.cpp
1>ÕýÔÚ±àÒë×ÊÔ´Çåµ¥...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>ÕýÔÚÁ´½Ó...
1>6.obj : error LNK2019: ÎÞ·¨½âÎöµÄÍⲿ·ûºÅ "int __cdecl sumarrays(int * const,int,int * const,int)" (?sumarrays@@YAHQAHH0H@Z)£¬¸Ã·ûºÅÔÚº¯Êý _main Öб»ÒýÓÃ
1>D:\My Docu
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
ÎÊÌâÒ»£º
ÔÚ¶ÔÆëΪ4µÄÇé¿öÏÂ
struct BBB
{
long num£»
char *name;
short int data;
char ha;
short ba[5];
}*p;
p=0x1000000;
p+0x200=____;
(Ulong)p+0x200=____;
(char*)p+0x200=____;
¼ÙÉèÔÚ32λC ......
SHIFT¼ÓF10ÓëÄǸö¼üÓÒctrl±ßÉϵÄÄǸö¼ü¹¦ÄÜÒ»Ñù£¬ÏëÆÁÕâ¸ö
µ«²»ÖªÒªÔõôдÄǸö×éºÏ¼ü£¡
ÓÐûÄĸö´óÏÀ·ÅÒ»¶ÎÕâ¸öµÄ´úÂë»òдһ¶Î
http://topic.csdn.net/u/20090609/15/7dc9fb70-243f-4070-9cfd-34e48b66e6c6.html
......
Environment:Win7 64bit,US
Target: copy c:\windows\system32\chklogo.wtlµ½c:\logs ÏÂ
Èç¹ûÊÖ¹¤´ò¿ªcmd,
1. cmdµÄtitleÊÇAdministrator:C:\windows\system32\cmd.exe
2. µ±Ç°¹¤×÷Ŀ¼c:\Users\usernam ......
¸÷λ´óÏÀ£º
ÓÐûÓÐÖªµÀÈçºÎÔÚCÓïÑÔÖÐʹÓóÖÐø¼¯³É¡£´Ó³õ²½µÄµ÷²éÀ´¿´£¬Ã²ËÆÊ¹ÓÃCruiseControlµÄÈ˺ܶ࣬µ«ÊǸÿªÔ´¹¤¾ß¶ÔCÓïÑÔµÄÖ§³ÖÃ²ËÆºÜÓÐÏÞ£¬±àÒëºÍ²âÊÔ½á¹û¿ÉÄÜÐèÒª×Ô¼º´¦Àí£¬Éú³ÉCruiseControlÄܹ»´¦ÀíµÄXMLÎ ......