CºÍC++±à³ÌºÍѧϰÎĵµ
CºÍC++±à³ÌºÍѧϰÎĵµ
1 :Ö¸Õë±äÁ¿Ãû³ÆÒÔpΪÊ××Ö·û£¬ÕâÊdzÌÐòԱͨ³£ÔÚ¶¨ÒåÖ¸ÕëʱµÄÒ»¸öϰ¹ß
2 :har * p; (int *)p °ÑpÇ¿ÖÆ×ª»»ÎªintÐÍ
3.1 :Ö¸ÕëµÄÎÊÌ⣺ָÕëÓ¦ÓÃʱ×îºÃ¸øÓ趨Òå(³õʼ»¯)ÕâÑù¿ÉÒÔ±£Ö¤Ö¸ÕëµÄÖ¸ÏòÊdzÌÐòÔ±×Ô¼ºÄܹ»°ÑÎյġ£
3.2 :Ö¸ÕëµÄÔ½½ç£¬Õâ¿ÖÅÂÊÇ×îÄѲé³öµÄ°É£¡
3.3 :Ö¸ÕëµÄ¾Ö²¿±äÁ¿ÎÊÌâ¡£¾Ö²¿µÄÖ¸Õë±äÁ¿»á±»³ÌÐò×Ô¶¯ÊÍ·Å£¬Èô³ÌÐòÔ±ÒýÓôËÀàÖ¸Õë¾Í»á³ö´í¡£2007-9-1
4£®¶þάָÕëµÄÓ¦ÓÃʵÀý£º
#include <stdio.h>
#include <string.h>
void sort(char (*client)[10]);
void main()
{
int temp;
char client[3][10];
char (*pClient)[10] = NULL;
for( temp = 0; temp < 3; temp++ )
{
gets(client[temp]);
}
pClient = client;
sort(pClient);
for( temp = 0; temp < 3; temp++ )
{
puts(*(pClient + temp));
}
}
void sort(char (*client)[10])
{
//ðÅÝËã·¨µÄÃ÷ÁËд·¨
int temp1, temp2;
&n
Ïà¹ØÎĵµ£º
// backlightDlg.cpp : implementation file
//
#include "stdafx.h"
#include "backlight.h"
#include "backlightDlg.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CbacklightDlg dialog
CbacklightDlg::CbacklightDlg(CWnd* pParent /*=NULL*/)
: CDialog(CbacklightDlg::IDD, pParent)
{
......
ʱ³£ÔÚcppµÄ´úÂëÖ®Öп´µ½ÕâÑùµÄ´úÂë: PnQ
PnQ
#ifdef __cplusplus PnQ
extern "C" { PnQ
#endif PnQ
PnQ
//Ò»¶Î´úÂë PnQ
PnQ
#ifdef __cplusplus PnQ
} PnQ
#endif PnQ
¡¡¡¡ÕâÑùµÄ´úÂëµ½µ×ÊÇʲôÒâË¼ÄØ£¿Ê×ÏÈ£¬__cplusplusÊÇcppÖеÄ×Ô¶¨Òåºê£¬ÄÇô¶¨ÒåÁËÕâ¸öºêµÄ»°±íʾÕâÊÇÒ»¶ÎcppµÄ´úÂ룬Ҳ¾ÍÊÇ˵£¬ÉÏÃæµÄ´úÂëµ ......
±¾ÎİüÀ¨´ó²¿·ÖC±ê×¼¿âº¯Êý£¬µ«Ã»ÓÐÁгöһЩÓÃ;ÓÐÏ޵ĺ¯ÊýÒÔ¼°Ä³Ð©¿ÉÒÔ¼òµ¥µÄ´ÓÆäËûº¯ÊýºÏ³ÉµÄº¯Êý£¬Ò²Ã»Óаüº¬¶à×ֽںͱ¾µØ»¯º¯Êý¡£
±ê×¼¿âÖеĸ÷¸öº¯Êý¡¢ÀàÐÍÒÔ¼°ºê·Ö±ðÔÚÒÔϱê׼ͷÎļþÖÐ˵Ã÷£º
<assert.h> <float.h> <math.h> <stdarg.h> <stdlib.h>
<ctype.h> <limits.h& ......
ÔÚÏîÄ¿ÊôÐÔÒ³ --> ÅäÖÃÊôÐÔ --> C/C++ --> Êä³öÎļþÀïÃæ£¬½«»ã±àÊä³öµÄÏÂÀÁбí´ÓÎÞÁбíÑ¡ÔñΪÄãÐèÒª»ã±àÊä³öµÄÄÚÈÝ£¬±ÈÈ瓽öÁгö³ÌÐò¼¯(/FA)”£¬Èçͼ1-1£¬Í¼1-2£º
ͼ1-1
ͼ1-2
------------------------------------------------------------------------------------------------ ......