char c[] = "hello world" ·ÖÅä¾Ö²¿Êý×é
char* c = "hello world" ·ÖÅäÈ«¾ÖÊý×é È«¾ÖÇøÓòµÄÖµÊDz»ÄܽøÐÐÐ޸ĵÄ
1 ³£Á¿Ö¸Õ룡Èç int b, c; int * const a = &b;
±íʾaÊÇÒ»¸ö³£Á¿Ö¸ÕëËüÖ¸Ïò±äÁ¿bµÄÄÚ´æ¡£µ«ÊÇÒòΪÊdz£Á¿Ö¸ÕëËùÒÔ²»ÄÜÔÙÓÃaÖ¸ÏòÆäËû±äÁ¿£¬Èç a = &c; ´íÎ󣡿ÉÒÔÐÞ¸ÄÖ¸ÏòÄÚ´æµÄÖµ£¬Èç:*a = 20; BTW ³£Á¿Ö¸ÕëÉùÃ÷µÄʱºò±ØÐëÏòÎÒÄÇÑù¸³³õÖµ¡£
2 Ö¸Ïò³£Á¿µÄÖ¸Õ룡Èç int b, c; int const *a; a = &b; a = &c;
¶¼¿ÉÒÔ£¬Î¨¶ÀËüÖ¸ÏòµÄÄÚ´æ²»Äܱ»Ð޸ġ£È磺*a=20;ÕâÊÇÎ¥·¨µÄ£¡´íÎó£¡
Õâ¾ÍÊÇÖ÷ÒªÇø±ð£¡
BTW »¹ÓÐÒ»¸ö¼ÇסËûÃDz»Í¬ÐÎʽµÄ¼¼ÇÉ£¡¿´const¹Ø¼ü×Ö£¬ËûºóÃæµÄ²»¿ÉÐ޸ģ¬Èçint * const a = &b; ºóÃæÊÇa,Ôò˵Ã÷a²»ÄÜÐ޸ģ¡
int const * a = &b;ºóÃæÊÇ*aÔò˵Ã÷*a²»¿É±»Ð޸ģ¡
ÔںöàÊéÉÏ»òMSDNÊǾ³£Óà const int a=5;
int b=6;
const int *p=&b;
Æäʵ const int* ºÍint const* Ò»Ñù£¬¾ÍÊdz£Ö¸Õë Ò²¾ÍÊÇËüËùÖ¸ÏòµÄÊý¾Ý£¨ÔÚÕâÊÇint£©Êdz£Á¿£¬Ëü×Ô¼ºµÄÊý¾ÝÀàÐÍÊÇconst int*
»¹ÓÐconst int *p=&b;ÊÇ¿ÉÒ﵀ ËäÈ»b²»Êdz£Á¿¡£
µ«ÊÇ const int a=6;
&nbs ......
char c[] = "hello world" ·ÖÅä¾Ö²¿Êý×é
char* c = "hello world" ·ÖÅäÈ«¾ÖÊý×é È«¾ÖÇøÓòµÄÖµÊDz»ÄܽøÐÐÐ޸ĵÄ
1 ³£Á¿Ö¸Õ룡Èç int b, c; int * const a = &b;
±íʾaÊÇÒ»¸ö³£Á¿Ö¸ÕëËüÖ¸Ïò±äÁ¿bµÄÄÚ´æ¡£µ«ÊÇÒòΪÊdz£Á¿Ö¸ÕëËùÒÔ²»ÄÜÔÙÓÃaÖ¸ÏòÆäËû±äÁ¿£¬Èç a = &c; ´íÎ󣡿ÉÒÔÐÞ¸ÄÖ¸ÏòÄÚ´æµÄÖµ£¬Èç:*a = 20; BTW ³£Á¿Ö¸ÕëÉùÃ÷µÄʱºò±ØÐëÏòÎÒÄÇÑù¸³³õÖµ¡£
2 Ö¸Ïò³£Á¿µÄÖ¸Õ룡Èç int b, c; int const *a; a = &b; a = &c;
¶¼¿ÉÒÔ£¬Î¨¶ÀËüÖ¸ÏòµÄÄÚ´æ²»Äܱ»Ð޸ġ£È磺*a=20;ÕâÊÇÎ¥·¨µÄ£¡´íÎó£¡
Õâ¾ÍÊÇÖ÷ÒªÇø±ð£¡
BTW »¹ÓÐÒ»¸ö¼ÇסËûÃDz»Í¬ÐÎʽµÄ¼¼ÇÉ£¡¿´const¹Ø¼ü×Ö£¬ËûºóÃæµÄ²»¿ÉÐ޸ģ¬Èçint * const a = &b; ºóÃæÊÇa,Ôò˵Ã÷a²»ÄÜÐ޸ģ¡
int const * a = &b;ºóÃæÊÇ*aÔò˵Ã÷*a²»¿É±»Ð޸ģ¡
ÔںöàÊéÉÏ»òMSDNÊǾ³£Óà const int a=5;
int b=6;
const int *p=&b;
Æäʵ const int* ºÍint const* Ò»Ñù£¬¾ÍÊdz£Ö¸Õë Ò²¾ÍÊÇËüËùÖ¸ÏòµÄÊý¾Ý£¨ÔÚÕâÊÇint£©Êdz£Á¿£¬Ëü×Ô¼ºµÄÊý¾ÝÀàÐÍÊÇconst int*
»¹ÓÐconst int *p=&b;ÊÇ¿ÉÒ﵀ ËäÈ»b²»Êdz£Á¿¡£
µ«ÊÇ const int a=6;
&nbs ......
±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇhttpÐÒéºÍhtml¡¢js¡¢css±ê×¼¡£ÕâЩ¶¼Êǹú¼ÊͳһµÄ±ê×¼£¬ºÍ.net¡¢java¡¢phpÕâЩÓïÑÔÍêȫûÓйØϵµÄ¡£±ÈÀýÈçÏÂÃæÒ»¶Î´úÂ룺
<html>
<body>
<form runat="server" id="form1">
<%
string str_response="hello world";
........................................
Response.Write(str_response);
%>
<asp:Button ID="bn_1" runat="Server" Text="µã»÷"/>
</form>
</body>
</html>
³¤³¤µÄÒ»¶Î´úÂë×îÖջᱻ½âÎö³ÉÏÂÃæÕâÑù
<html>
<body>
<form id="form1" action="">
hello world
<input type="submit" value="µã»÷" name="bn_1"/>
</form>
</body>
</html>
IIS°ïÖúÎÒÃÇ£¬½«<%%>ÀïÃæµÄÄÚÈÝת»¯³ÉÒªÊä³öµÄÄÚÈÝ£¬Í¬Ê±½«<asp:ÕâÐ ......
±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇhttpÐÒéºÍhtml¡¢js¡¢css±ê×¼¡£ÕâЩ¶¼Êǹú¼ÊͳһµÄ±ê×¼£¬ºÍ.net¡¢java¡¢phpÕâЩÓïÑÔÍêȫûÓйØϵµÄ¡£±ÈÀýÈçÏÂÃæÒ»¶Î´úÂ룺
<html>
<body>
<form runat="server" id="form1">
<%
string str_response="hello world";
........................................
Response.Write(str_response);
%>
<asp:Button ID="bn_1" runat="Server" Text="µã»÷"/>
</form>
</body>
</html>
³¤³¤µÄÒ»¶Î´úÂë×îÖջᱻ½âÎö³ÉÏÂÃæÕâÑù
<html>
<body>
<form id="form1" action="">
hello world
<input type="submit" value="µã»÷" name="bn_1"/>
</form>
</body>
</html>
IIS°ïÖúÎÒÃÇ£¬½«<%%>ÀïÃæµÄÄÚÈÝת»¯³ÉÒªÊä³öµÄÄÚÈÝ£¬Í¬Ê±½«<asp:ÕâÐ ......
±¾ÎÄ´¥¼°µ½Socket TCP/IP±à³Ì·½ÃæµÄ֪ʶ£¬ÆäʵÕâÊǺܼòµ¥µÄÄÚÈÝ£¬´ó¼Ò¿´²»Ã÷µÄµØ·½´ó¿ÉÒÔÏÈÍù϶Á£¬ÒÔºóÔÙ¿´Ò»±é£¬¿ÉÄÜ»á¾õµÃºÜ¼òµ¥¡£
ºÜ¶àÈËдÍøÕ¾ÓùßÁËIISºÍTomcatÕâЩ¸ß¼¶µÄºǫ́À´×öÍøÕ¾ºǫ́·þÎñ£¬È»¶ø£¬ÔÚÕâЩºǫ́»¹Ã»ÓÐÎÊÊÀ֮ǰ£¬ÈËÃÇÊÇÔõô±àдÍøÕ¾µÄÄØ£¿ËûÃǵײ㹲ͬ×ñÊصÄ×¼ÔòºÍ±ê×¼ÓÖÊÇʲôÄØ£¿
Õâ¾ÍÊÇhttpÐÒéºÍhtml¡¢js¡¢css±ê×¼¡£ÕâЩ¶¼Êǹú¼ÊͳһµÄ±ê×¼£¬ºÍ.net¡¢java¡¢phpÕâЩÓïÑÔÍêȫûÓйØϵµÄ¡£±ÈÀýÈçÏÂÃæÒ»¶Î´úÂ룺
<html>
<body>
<form runat="server" id="form1">
<%
string str_response="hello world";
........................................
Response.Write(str_response);
%>
<asp:Button ID="bn_1" runat="Server" Text="µã»÷"/>
</form>
</body>
</html>
³¤³¤µÄÒ»¶Î´úÂë×îÖջᱻ½âÎö³ÉÏÂÃæÕâÑù
<html>
<body>
<form id="form1" action="">
hello world
<input type="submit" value="µã»÷" name="bn_1"/>
</form>
</body>
</html>
IIS°ïÖúÎÒÃÇ£¬½«<%%>ÀïÃæµÄÄÚÈÝת»¯³ÉÒªÊä³öµÄÄÚÈÝ£¬Í¬Ê±½«<asp:ÕâÐ ......
˵Ã÷: ÔÚ±àÒëÏò¸ÃÇëÇóÌṩ·þÎñËùÐè×ÊÔ´µÄ¹ý³ÌÖгöÏÖ´íÎó¡£Çë¼ì²éÏÂÁÐÌض¨´íÎóÏêϸÐÅÏ¢²¢Êʵ±µØÐÞ¸ÄÔ´´úÂë¡£
±àÒëÆ÷´íÎóÐÅÏ¢: CS0016: δÄÜдÈëÊä³öÎļþ“c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\5bad199f\ab65559a\App_Web_index.aspx.cdcab7d2.anxmasko.dll”--“¾Ü¾ø·ÃÎÊ¡£ ”
Ô´´íÎó:
[ûÓÐÏà¹ØµÄÔ´ÐÐ]
Ô´Îļþ: ÐÐ: 0
“/”Ó¦ÓóÌÐòÖеķþÎñÆ÷´íÎó¡£
±àÒë´íÎó
c:\windows\temp\ÖØÒªÐÔ
c:\windows\temp\Óë·þÎñÆ÷µÄÎȶ¨Ö®¼äÓзdz£´óµÄ¹Øϵ¡£
´ó¼ÒÓÅ»¯Ê²Ã´µÄ£¬¶¼²»ÒªÂÒÀ´£®
£±ÓÐÈË˵ÎÒ°Ñc:\windows\tempÀïµÄÎļþȫɾÁË!
£²¡¡ÓÐÈË˵¡¡,¿´µ½C:\WINDOWS\TempĿ¼ÏÂÓÐ8¸öG½«½ü ÕâЩ¶¼ÊÇ.datºÍ.tmpµÄ,ÓÐÓÃÂðÕâЩ¶«Î÷?Ôõô¼õСռµÄ¿Õ¼ä°¡
½á¹û£¬ÕâÑùÄÇÑùµÄ³ö´í£®
zend ³ö´í£¬mysql³ö´í£¬¡¡¸½¼þ´«²»ÁË£¬¡¡ÓÅ»¯³öÈç´Ë½á¹û£¬ºÎ±Ø£®
£Ã:/windows/Temp,ÊÇϵͳÁÙʱÎļþ¼Ð,ÀïÃæµÄÎļþʱϵͳÔËÐÐʱ²úÉúµÄÁÙʱÎļþ µ«ÊDz»´ú±í£¬¿ÉÒÔËæ±ãɾ³ý£®
Áíתһ£¬´ó¼Ò¿´£®
C:\windows\TempȨÏÞ¶ÔÊý¾Ý¿âµÄÓ°Ïì
Á¬½ÓAccess´íÎó..N¾ÃûÓÐÓÃAccessÁË....¾ÍËã°ÑÊý¾Ý¿â¸øIISÓû§ÍêÈ«µÄȨ ......
The C# classes that you design will be used by code that you write and possibly by code that
other people write. Your C# classes may be used by a VB.NET application or from within an
ASP.NET page. Moreover, your classes may very well be used alongside other classes
designed by other .NET developers.
Code written in a .NET language references classes by their names, and all of these classes
used together suggests an obvious dilemma: What happens if a developer wants to use two
classes that have the same name?
Suppose you write a C# class that reads records from a database and you name the class
Recordset. Code that wants to use your class may create objects as follows:
Recordset MyRecordset = new Recordset();
Now suppose that you package your classes into a .NET assembly and distribute your
assembly for use by other applications. Furthermore, suppose that someone obtains your
assembly and integrates it into his or her application. What happens if that same application
also ......
The C# classes that you design will be used by code that you write and possibly by code that
other people write. Your C# classes may be used by a VB.NET application or from within an
ASP.NET page. Moreover, your classes may very well be used alongside other classes
designed by other .NET developers.
Code written in a .NET language references classes by their names, and all of these classes
used together suggests an obvious dilemma: What happens if a developer wants to use two
classes that have the same name?
Suppose you write a C# class that reads records from a database and you name the class
Recordset. Code that wants to use your class may create objects as follows:
Recordset MyRecordset = new Recordset();
Now suppose that you package your classes into a .NET assembly and distribute your
assembly for use by other applications. Furthermore, suppose that someone obtains your
assembly and integrates it into his or her application. What happens if that same application
also ......
×Ô¼ºÊ¹ÓÃvim±à¼´úÂëÒ²ÊÇÓÐÒ»¶Îʱ¼äÀ´£¬Ä¿Ç°ÔĶÁ¡¢Ð޸ġ¢Ð´´úÂë»ù±¾¶¼Àë²»¿ªËûÁË¡£±¾ÈËʹÓùýµÄ±à¼Æ÷ºÜÉÙ£¬ÒÔÇ°Ò»°ã¶¼ÊÇʹÓóÌÐò¿ª·¢IDE×Ô´øµÄ±à¼Æ÷Щ´úÂ룬û¾õµÃʲô·½±ã¡£¿ªÊ¼Ê¹ÓÃvimµÄ¸Õ¸Õ½Ó´¥linux³ÌÐò¿ª·¢µÄʱºò£¬ÄÇʱ¿´µ½ÆäËûÈËÒ»°ã¶¼ÊÇÔÚwindowsÏÂʹÓÃSource Insight ±à¼´úÂ룬ȻºóÔÚÐéÄâ»úlinuxÏÂmake¡£ÎұȽÏϲ»¶½Ó´¥ÐµĶ«Î÷£¬¶øÇÒ¸Õ½Ó´¥inux¶ÔÃüÁîºÍʹÓû·¾³¶¼²»ÊǺÜÊìϤ£¬Òò´ËÏëÉîÈëµÄÁ˽âlinuxϵÄʹÓû·¾³¡£¾ö¶¨ÔÚ×Ô¼ºµÄµçÄÔÉÏ°²×°linux²Ù×÷ϵͳ(±¾ÈËÏÖÔÚʹÓÃdebian 5.0·¢Ðа棬»¶Ó´ó¼Ò½»Á÷)£¬²»Ê¹ÓÃÐéÄâ»ú¡£
ÔÚlinux»·¾³Ï£¬Ê×ÒªµÄÈÎÎñµÄ½â¾öÈçºÎÔĶÁ¡¢±à¼´úÂ룬ͨ¹ýÉÏÍøËÑË÷vim Emacs geditµÈһЩ£¬·´ÕýÊÇÒ»¿ªÊ¼½Ó´¥ºÍ×îÖÕʹÓõÄÊÇvim¡£Í¨¹ýµÄѧϰvimÖÐÎÄ°ïÖúÎĵµ£¬×îÐÂVim version 7.2Óû§ÊÖ²áµÄÁ´½ÓµØÖ·£º
http://vimcdoc.sourceforge.net/doc/usr_toc.html
°´ÕÕusr_tocµÄÁ÷³Ì×ßÏÂÀ´£¬·¢ÏÖvimÕæÈç´ó¼Ò˵µÄÊǸöÇ¿´óµÄ±à¼Èí¼þ£¬²¢ÕÆÎÕÁËvim³õ²½µÄ±à¼¼¼ÇÉ¡£ÔÚ´ËÌرð¸ÐлvimµÄ¿ª·¢Î¬»¤ÈËÔ±¡¢vim script¹±Ï×Õߣ¬ºÍ°Ñ°ïÖúÎĵµ·Òë³ÉÖÐÎĵÄ×÷Õß¡£
  ......
×î½üÔÚ×ösamsung
s3c2416
ÔÚlinuxϵÄspiÇý¶¯³ÌÐò£¬²âÊÔÁËÏÂsamsung·¢²¼µÄspiµÄÄÚºËÔ´´úÂ룬ÎÞÂÛÊDzÉÓÃdma»òÕß·Çdmaģʽ¶¼ÎÞ·¨¹¤×÷¡£ÔĶÁ¸ÃÇý¶¯´úÂ룬·¢ÏÖ
ÕâÂëÓ¦¸ÃÊÇÒ»¸öδÍê³ÉµÄ°æ±¾£¬´æÔںܶàµÄbug¡£ÓÚÊÇÔÚÕâ¸ö°æ±¾µÄ»ù´¡ÉϽøÐÐÐ޸ģ¬ÖØдһ¸ö¿ÉÓõġ¢Ö§³ÖÈ«Ë«¹¤µÄͨѶµÄÇý¶¯¡£Ä¿Ç°²âÊÔ»ù±¾Äܹ»Õý³£¹¤×÷£¬
Ö§³Ö°ëË«¹¤¡¢È«Ë«¹¤¡¢spiÓ²¼þÖжÏģʽºÍdmaģʽ¡£
¶Ôhspi-s3c2443.[ch]Ô´Îļþ¸ù¾ÝÊý¾Ý·¢ËͺͽÓÊÕµÄÁ÷³Ì½øÐзÖÎö£¬ÔÚδ²ÉÓÃdmaģʽÏ£¬º¯Êýµ÷ÓõÄÁ÷³Ì£ºs3c_spi_xfer
-> s3c_spi_doxfer -> s3c_spi_message_start ->
down_interruptible(&spi->sem)£¬µ½ÕâÀӲ¼þ»á²úÉúspiÖжϣ¬½øÈëµ½ÖжϷþÎñ³ÌÐò
s3c_spi_irq ÖУ¬ÖжϺ¯Êýµ÷Óà spi_s3c_irq_nextbyte
½øÐÐÊý¾Ý·¢ËÍ£¬¸ù¾Ýspi->stateµÄÖµ×öÏàÓ¦µÄ²Ù×÷£¬Êý¾Ý·¢ËÍ»ò½ÓÊÕÍê³Éºó£¬µ÷Óà s3c_spi_stop
¹Ø±Õspi£¬²¢up(&spi->sem)£¬³ÌÐòÁ÷³Ì»Øµ½ÁËs3c_spi_doxferº¯ÊýµÄ
down_interruptible(&spi->sem)£¬º¯Êý·µ»ØÍ˳ö£¬Ò»¸öspiµÄÊý¾ÝÊÕ·¢Á÷³ÌÍê³É¡£
&nb ......
×î½üÔÚ×ösamsung
s3c2416
ÔÚlinuxϵÄspiÇý¶¯³ÌÐò£¬²âÊÔÁËÏÂsamsung·¢²¼µÄspiµÄÄÚºËÔ´´úÂ룬ÎÞÂÛÊDzÉÓÃdma»òÕß·Çdmaģʽ¶¼ÎÞ·¨¹¤×÷¡£ÔĶÁ¸ÃÇý¶¯´úÂ룬·¢ÏÖ
ÕâÂëÓ¦¸ÃÊÇÒ»¸öδÍê³ÉµÄ°æ±¾£¬´æÔںܶàµÄbug¡£ÓÚÊÇÔÚÕâ¸ö°æ±¾µÄ»ù´¡ÉϽøÐÐÐ޸ģ¬ÖØдһ¸ö¿ÉÓõġ¢Ö§³ÖÈ«Ë«¹¤µÄͨѶµÄÇý¶¯¡£Ä¿Ç°²âÊÔ»ù±¾Äܹ»Õý³£¹¤×÷£¬
Ö§³Ö°ëË«¹¤¡¢È«Ë«¹¤¡¢spiÓ²¼þÖжÏģʽºÍdmaģʽ¡£
¶Ôhspi-s3c2443.[ch]Ô´Îļþ¸ù¾ÝÊý¾Ý·¢ËͺͽÓÊÕµÄÁ÷³Ì½øÐзÖÎö£¬ÔÚδ²ÉÓÃdmaģʽÏ£¬º¯Êýµ÷ÓõÄÁ÷³Ì£ºs3c_spi_xfer
-> s3c_spi_doxfer -> s3c_spi_message_start ->
down_interruptible(&spi->sem)£¬µ½ÕâÀӲ¼þ»á²úÉúspiÖжϣ¬½øÈëµ½ÖжϷþÎñ³ÌÐò
s3c_spi_irq ÖУ¬ÖжϺ¯Êýµ÷Óà spi_s3c_irq_nextbyte
½øÐÐÊý¾Ý·¢ËÍ£¬¸ù¾Ýspi->stateµÄÖµ×öÏàÓ¦µÄ²Ù×÷£¬Êý¾Ý·¢ËÍ»ò½ÓÊÕÍê³Éºó£¬µ÷Óà s3c_spi_stop
¹Ø±Õspi£¬²¢up(&spi->sem)£¬³ÌÐòÁ÷³Ì»Øµ½ÁËs3c_spi_doxferº¯ÊýµÄ
down_interruptible(&spi->sem)£¬º¯Êý·µ»ØÍ˳ö£¬Ò»¸öspiµÄÊý¾ÝÊÕ·¢Á÷³ÌÍê³É¡£
&nb ......