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

¡¾×ª¡¿°´¹Ò»ú¼üºó³ÌÐòÍ˵½ºǫ́ÔËÐУ¬°´c¼ü½áÊø³ÌÐò

http://blog.csdn.net/utopia2006/archive/2008/05/30/2495667.aspx
Ä¿µÄ£ºµ±³ÌÐòÔÚǰ̨ÔËÐÐʱ£¬°´¹Ò»ú¼ü³ÌÐò²»Í˳ö£¬Ö»ÊÇÍ˵½ºǫ́ÔËÐУ¬³ÌÐòÔÚºǫ́ÔËÐÐʱ£¬°´c¼üÄܰѳÌÐò½áÊø
·½·¨£ºÔÚHandleWsEventL()ÖÐÆÁ±Î¹Ò»ú¼üKAknUidValueEndKeyCloseEvent,ÔÚÖµÔÚavkon.hrhÖж¨Ò壬ʵ¼ùÖз¢ÏÖ8.0sdkµÄavkon.hrhûÓж¨ÒåKAknUidValueEndKeyCloseEvent£¬Î¨ÓÐÊÖ¹¤Ìí¼Ó¶¨Òå#define  KAknUidValueEndKeyCloseEvent   0x101F87F0
²âÊÔ£ºÔÚ3230£¬N70ºÍE61iÉϲâÊÔͨ¹ý
void CMyClientAppUi::HandleWsEventL(const TWsEvent &aEvent, CCoeControl *aDestination)
{
 switch (aEvent.Type())
 {
 case KAknUidValueEndKeyCloseEvent:
 break;
 default:
 CAknAppUi::HandleWsEventL(aEvent, aDestination);
 }
}
// ----------------------------------------------------
// CPocoClientAppUi::HandleCommandL(TInt aCommand)
// takes care of command handling
// ----------------------------------------------------
//
void CMyClientAppUi::HandleCommandL(TInt aCommand)
{
 switch ( aCommand )
 {
 case EEikCmdExit:
  {
   Exit();    
   break;
  }
  // TODO: Add Your command handling code here
 
 default:
  break;     
 }
 
}
//----------------------------------------------------------------------------------------------------------------------------------------------------------------------
ÐèÒªµ¯³ö¿òµÄ»°£¬¿É²Î¿¼£ºhttp://discussion.forum.nokia.com/forum/showthread.php?t=191426
5Â¥£º“·ÇÒª×öµÄ»°¡£¡£¡£ÓÃÒ»¸öglobalnote£¬µ±Óû§°´Ï“·ñ”µÄʱºò£¬ÔÙ°Ñ×Ô¼ºÇе½Ç°Ì¨¡£”
6Â¥£º
void CBTAlarmAppUi::HandleWsEventL(const TWsEvent &aEvent,
  CCoeControl *aDestination)
 {
 if (KAknUidValueEndKeyCloseEvent == aEvent.Type())//Ϊ¹Ò»ú¼üʱ
  {
  TInt flag;
  flag = ShowGlobalConfirmDialogL(_L("are you sure close application?"));
  //close the application
  i


Ïà¹ØÎĵµ£º

c ÓïÑÔÌõ¼þ±àÒë Ïê½â

Ô¤´¦Àí¹ý³ÌɨÃèÔ´´úÂ룬¶ÔÆä½øÐгõ²½µÄת»»£¬²úÉúеÄÔ´´úÂëÌṩ¸ø±àÒëÆ÷¡£¿É¼ûÔ¤´¦Àí¹ý³ÌÏÈÓÚ±àÒëÆ÷¶ÔÔ´´úÂë½øÐд¦Àí¡£
ÔÚCÓïÑÔÖУ¬²¢Ã»ÓÐÈκÎÄÚÔڵĻúÖÆÀ´Íê³ÉÈçÏÂһЩ¹¦ÄÜ£ºÔÚ±àÒëʱ°üº¬ÆäËûÔ´Îļþ¡¢¶¨Òåºê¡¢¸ù¾ÝÌõ¼þ¾ö¶¨±àÒëʱÊÇ·ñ°üº¬Ä³Ð©´úÂë¡£ÒªÍê³ÉÕâЩ¹¤×÷£¬¾ÍÐèҪʹÓÃÔ¤´¦Àí³ÌÐò¡£¾¡¹ÜÔÚĿǰ¾ø´ó¶àÊý±àÒëÆ÷¶¼°üº ......

C/C++ÓïÑÔvoid¼°voidÖ¸ÕëÉî²ã̽Ë÷

C/C++ÓïÑÔvoid¼°voidÖ¸ÕëÉî²ã̽Ë÷
1.¸ÅÊö
Ðí¶à³õѧÕß¶ÔC/C++ÓïÑÔÖеÄvoid¼°voidÖ¸ÕëÀàÐͲ»ÉõÀí½â£¬Òò´ËÔÚʹÓÃÉϳöÏÖÁËһЩ´íÎó¡£±¾ÎĽ«¶Ôvoid¹Ø¼ü×ÖµÄÉî¿Ìº¬Òå½øÐнâ˵£¬²¢ÏêÊövoid¼°voidÖ¸ÕëÀàÐ͵ÄʹÓ÷½·¨Óë¼¼ÇÉ¡£
2.voidµÄº¬Òå
voidµÄ×ÖÃæÒâ˼ÊÇ“ÎÞÀàÐÍ”£¬void *ÔòΪ“ÎÞÀàÐÍÖ¸Õ딣¬void ......

The meaning of the c in calloc

The meaning of the c in calloc was vividly discussed in comp.lang.c in October 2000 (see here), with both clear (because, unlike malloc, calloc clears the memory it returns) and count (because, unlike malloc, calloc is passed a count of elements to allocate) suggested as possible explanations, howev ......

CС³ÌÐò£¨Ôöɾ¸Ä²éÈ«ÃæÁ·Ï°£©

1.ÅÅÐòС³ÌÐò£ºÁ·Ï°ÅÅÐò»ù±¾Ëã·¨ºÍº¯ÊýµÄÓ¦Ó㬲¢Ìåζº¯ÊýÓ÷¨µÄºÃ´¦¡£
 #include "stdio.h"
#include "stdlib.h"
#include "string.h"
#define DATA 10
int ArrGrounp[ DATA ];
int ArrGrounp1[DATA];
#define DEFINE1 "ÇëÊäÈë10¸öÊý£º\n"
#define DEFINE2 "Âú×ãÌõ¼þµÄÊýÓУº"
#define DEFINE3 "\nÂú×ãÌõ¼þ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ