Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

c sharpÈÕÖ¾¿ª¶Ë

    ÕâÊÇÎÒдµÄµÚÒ»¸ö²©¿ÍÈÕÖ¾£¬ÔÚ´ËÊ×ÏȲâÊÔһϱ¾¸ö²©¿ÍϵͳµÄ¹¦ÄÜÇé¿ö£¬Èç·ÖÀ๦ÄÜ£¬ÔĶÁµÄ¼òÒ×ÐÔ£¬´úÂëÏÔʾµÄ·½Ê½µÈ¡£
    so:Ìí¼ÓµÚÒ»¸ö´úÂë³ÌÐò£¬ÈçÏ£º
private void Form1_Load(object sender, EventArgs e)
{//ʹlistView¿Ø¼þÖ§³Ö±à¼­¹¦ÄÜ
System.Windows.Forms.ListView listView1;
System.Windows.Forms.ColumnHeader columnHeader1;
System.Windows.Forms.ColumnHeader columnHeader2;
listView1 = new System.Windows.Forms.ListView();
columnHeader1 = new System.Windows.Forms.ColumnHeader();
columnHeader2 = new System.Windows.Forms.ColumnHeader();
// listView1
listView1.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
columnHeader1,
columnHeader2});
listView1.Dock = System.Windows.Forms.DockStyle.Fill;
listView1.GridLines = true;
listView1.Location = new System.Drawing.Point(0, 0);
listView1.Name = "listView1";
listView1.Size = new System.Drawing.Size(392, 216);
listView1.TabIndex = 0;
listView1.UseCompatibleStateImageBehavior = false;
listView1.View = System.Windows.Forms.View.Details;
// columnHeader1
columnHeader1.Text = " ÎļþÃû³Æ";
columnHeader1.Width = 210;
// columnHeader2
columnHeader2.Text = " ´´½¨Ê±¼ä";
columnHeader2.Width = 180;
Controls.Add(listView1);
foreach (String MyName in Directory.GetFiles("C:\\"))
{
FileInfo MyFile = new FileInfo(MyName);
listView1.Items.Add(MyFile.Name).SubItems.Add(MyFile.CreationTime.ToString());
}
//ÔÊÐílistViewµÄµÚÒ»ÁÐÄܹ»Í¨¹ýË«»÷ÏÔʾÎı¾¿ò½øÐб༭
listView1.LabelEdit = true;
}


Ïà¹ØÎĵµ£º

c ÓïÑÔÖдøconst µÄÖ¸ÕëС¼Ç

Ò»¡¢ÓÐÈçÏ´úÂ룺
int age = 25;
const int *pAge = &age;

ÉÏÃæµÄ´úÂë±íʾ£º
1¡¢Ö¸Õë±äÁ¿pAge´æ·Å±äÁ¿ageµÄµØÖ·£¬ÇÒ²»ÄÜͨ¹ý *pAge = 30£¬À´¸Ä±äÖ¸Õë±äÁ¿pAgeËùÖ¸ÏòµÄ´æ´¢¿Õ¼äµÄÖµ£¬µ«ÊÇ ¶ÔÓÚ age = 30£¬ÔòÊÇûÓÐÎÊÌâµÄ¡£
2¡¢pAge ±¾Éí¿ÉÒÔÔÙ´æ·ÅÆäËü±äÁ¿µÄµØÖ·£¬Ò²¿ÉÒÔÖ¸ÏòNULL£¬Èç pAge = NULL;ÊÇÕýÈ·µÄ¡£
¶ ......

C³ÌÐòʹÓò»Í¬º¯Êýµ÷ÓÃÔ¼¶¨µ÷Óûã±à×Ó¹ý³Ì

ÈçתÔØ£¬Çë×¢Ã÷³ö´¦£ºhttp://blog.csdn.net/zhangyang0402/archive/2010/05/01/5549266.aspx
 
¿ª·¢¹¤¾ß£ºVC ++ 6.0  MASM32
 
Ò»¡¢__cdeclµ÷Ó÷½Ê½
 
1£®  ÔÚVCÖÐн¨Win32 Console Application, TestASM
 
2£®  н¨test.c
#include<stdio.h>
extern void swap(int * ......

C/C++µ¥Ôª²âÀíÂÛ¾«Òª£¨Ê®Ò»£©

µÚ4Õ ÔõÑù²ÅÄܱ£Ö¤²âÊÔЧ¹û£¿
4.1 ºâÁ¿²âÊÔЧ¹ûµÄ»ù±¾Ö¸±ê£º°×ºÐ¸²¸Ç
    ºâÁ¿²âÊÔЧ¹ûµÄ»ù±¾Ö¸±êÊǰ׺и²¸ÇÂÊ£¬¼´Í³¼Æ²âÊÔ¶Ô´úÂëÂß¼­µ¥Î»µÄ¸²¸Ç×´¿ö¡£´úÂëµÄÂß¼­µ¥Î»Ö÷ÒªÓУºÓï¾ä(¿é)£¬Ìõ¼þ¡¢Åж¨¡¢·ÖÖ§¡¢Â·¾¶¡£³£Óõİ׺и²¸ÇÓÐÁùÖÖ£ºÓï¾ä¸²¸Ç¡¢Ìõ¼þ¸²¸Ç¡¢·ÖÖ§¸²¸Ç¡¢Åж¨Ìõ¼þ¸²¸Ç¡¢ÐÞÕýÅж¨Ìõ¼þ¸²¸Ç¡¢º ......

Á´±í×ۺϲÙ×÷C°æʵÏÖ³ÌÐò

¾ö¶¨ÕÒʱ¼ä°ÑÊý¾Ý½á¹¹¸´Ï°Ï£¬´ÓÁ´±í¿ªÊ¼°É¡£Õâһ֪ʶµãËä˵²¢²»Éæ¼°¸´ÔÓµÄËã·¨£¬²»ÐèÒª·Ñ¾¡Í·ÄÔȥ˼¿¼À´ÁúÈ¥Âö£¬µ«ÊÇҪд³öÍêÕûµÄ³ÌÐòÀ´£¬»¹ÊÇÒª»¨Ò»Ð©Ê±¼äµÄ¡£ÌرðÊÇÈç¹û¶ÔÖ¸Õë²Ù×÷²»¹»ÊìÁ·£¬¼«Ò׳ö´í¡£ºÃ¾ÃûÓÃCд³ÌÐòÁË……
ÍêÕû´úÂ룺
/*
* µ¥Á´±í»ù±¾²Ù×÷C°æʵÏÖ³ÌÐò
* °üÀ¨²åÈ롢ɾ³ý¡¢²éÕÒ¡£
*
* ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ