方向键怎么打出来的? c语言中怎样输入和读取方向键?
C\u8bed\u8a00\u600e\u4e48\u8f93\u5165\u65b9\u5411\u952e\u5de6\uff1f#include#include int main(){int key1,key2; while(key1 = _getch()){if(key1 == 27)//ESC\u5efa\u9000\u51fabreak;key2 =_getch();if(key1 = 224){switch(key2){case 72:printf("up!\n");break;case 75:printf("left!\n");break;case 77:printf("right!\n");break;case 80:printf("down!\n");break;}}}return 0;}\u65b9\u5411\u952e\uff0c\u63091\u4e2a\u952e\uff0c\u67092\u4e2a\u4fe1\u53f7\u3002\u6570\u503c\u4e0e\u64cd\u4f5c\u7cfb\u7edf\u952e\u76d8\u8bbe\u7f6e\u6709\u5173\u3002\u5224\u65ad\u65b9\u5411\u952e\u9700\u89812\u4e2a\u952e\u503c\u3002win-7 \u952e\u503c\u5982\u4e0b\uff1aint key1,key2; key1 = getch(); key2 =getch();\u4e0a\u79fb 224,72 (0xe0,0x48)\u5de6\u79fb 224,75 (0xe0,0x4b)\u53f3\u79fb 224,77 (0xe0,0x4d)\u4e0b\u79fb 224,80 (0xe0,0x50)ESC \u662f\u5355\u4fe1\u53f7\uff0c27 (0x1b)
\u53e6\u5916\u697c\u4e3b\u8981\u505a\u6e38\u620f\u7684\u8bddwindows\u7f16\u7a0b\u624d\u662f\u738b\u9053\u554a\uff0c\u5efa\u8bae\u697c\u4e3b\u5148\u53bb\u4e86\u89e3\u4e0bwindows\u7684\u6d88\u606f\u673a\u5236\uff0cwindows\u7f16\u7a0b\u7684API\u867d\u7136\u5f88\u590d\u6742\uff0c\u4f46\u662f\u5b83\u6709\u6a21\u7248\uff0c\u5199\u7684\u65f6\u5019\u6539\u6a21\u7248\u5c31\u884c\u4e86\uff0c\u4e0d\u7528\u523b\u610f\u8bb0\uff0c\u5199\u591a\u4e86\u5c31\u8bb0\u4f4f\u4e86\u3002\u63a8\u8350\u697c\u4e3b\u53bb\u770b\u4e00\u4e0bwindows\u7a0b\u5e8f\u8bbe\u8ba1\u3002
\u5728C\u4ee3\u7801\u4e2d\u53ef\u8bbe\u7f6e\u5982\u4e0b\u81ea\u7f16\u7684intokey( )\u51fd\u6570\uff0c\u7528\u4ee5\u63a5\u6536\u65b9\u5411\u952e\u503c\u3002\u5e93\u51fd\u6570kbhit( )\u662f\u68c0\u6d4b\u662f\u5426\u6709\u6309\u952e\u88ab\u6309\u4e0b\uff0c\u5e93\u51fd\u6570getch( )\u662f\u8bfb\u53d6\u952e\u76d8\u6309\u952e\u503c\u7684\uff0c\u4e0d\u9700\u6309\u56de\u8f66\uff0c\u4e5f\u4e0d\u56de\u663e\u3002dir\u662f\u4ee3\u8868\u65b9\u5411\u7684\u53d8\u91cf\uff0c\u6839\u636e\u4e0d\u540c\u7684\u65b9\u5411\u952e\u503c\uff0c\u8ba9dir\u53d61\u52304\u8fd9\u56db\u4e2a\u4e0d\u540c\u7684\u503c\u3002\u5176\u5b83\u7684\u7a0b\u5e8f\u6bb5\u5c31\u53ef\u6839\u636edir\u7684\u503c\u8ba9\u4e1c\u897f\u671d\u67d0\u4e2a\u65b9\u5411\u79fb\u52a8\u3002\u65b9\u5411\u952e\u6309\u4e0b\u540e\u4f1a\u4ea7\u751f2\u4e2a\u503c\uff0c\u7b2c\u4e00\u4e2a\u662f224\uff0c\u53e6\u4e00\u4e2a\u5206\u522b\u4e3a\u4e0a\u4e0b\u5de6\u53f3\u768472\u300180\u300175\u300177\uff0c\u56e0\u6b64\u8981\u8bfb\u53d62\u6b21\u503c\u6765\u5224\u65ad\u3002\u8981\u5305\u542b#include .
void intokey( )
{ int flag;
if ( kbhit( ) ) //\u5224\u65ad\u6709\u952e\u6309\u4e0b\u65f6\u624d\u6267\u884c\u4e0b\u9762\u7684\u64cd\u4f5c
{ flag = getch( ); //\u7528flag\u6765\u83b7\u53d6\u952e\u503c
if (flag==224)
{ flag = getch( ); //\u503c\u4e3a224\u65f6\u8868\u793a\u6309\u4e0b\u4e86\u65b9\u5411\u952e\uff0c\u8981\u518d\u6b21\u83b7\u53d6\u624d\u884c
if ( flag==72 && dir != 2 ) dir = 1;
if ( flag==80 && dir != 1 ) dir = 2;
if ( flag==75 && dir != 4 ) dir = 3;
if ( flag==77 && dir != 3 ) dir = 4;
}
if (flag==13)
{ while( 1 ) if ( ( flag=getch( ) )==13 ) break ; }
}
}
\u6ce8\uff1a\u8fd9\u4e2a\u51fd\u6570\u6765\u6e90\u4e8e\u67d0\u4e9b\u201c\u8d2a\u5403\u86c7\u201d\u7684\u4ee3\u7801\uff0c\u7565\u6709\u4fee\u6539\uff0c\u8db3\u53ef\u83b7\u53d6\u65b9\u5411\u952e\u503c\u3002\u5176\u4e2d\u76841\u30012\u3001 3\u30014\u5206\u522b\u5bf9\u5e94\u7740\u4e0a\u4e0b\u5de6\u53f3\u3002\u5f53flag\u83b7\u5f97\u952e\u503c\u540e\uff0c\u5206\u4e24\u79cd\u60c5\u51b5\uff1a\u4e00\u662fflag=224\uff0c\u6b64\u65f6\u518d\u6b21\u83b7\u53d6\u952e\u503c\u4ee5\u5224\u65ad\u8f93\u5165\u7684\u662f4\u4e2a\u65b9\u5411\u4e2d\u7684\u54ea\u4e00\u4e2a\uff1b\u4e8c\u662fflag=13\uff0c\u8868\u793a\u6309\u4e0b\u56de\u8f66\u952e\uff0c\u6211\u4eec\u5c31\u6267\u884c\u5faa\u73af\uff0c\u7a0b\u5e8f\u6682\u505c\uff0c\u7b49\u5f85\u518d\u6b21\u8f93\u5165\u56de\u8f66\uff0c\u7a0b\u5e8f\u7ee7\u7eed\u8fd0\u884c\u3002
↖ ALT+43081
↗ ALT+43082
↘ ALT+43083
↙ ALT+43084
→←↑↓ 打开智能ABC输入法 按一下字母V键松手再按1键 向后翻(按+键)看到了吧
打开职能ABC输入法,按“V”再按“4”,“4”是F3下面的那个
↑↓← → 用搜狗拼音吧
直接打上下左右就可以选
搜狗 直接 输入 上 下 左 右 就有箭头
绛旓細鏂瑰悜閿竴鑸父鐢ㄧ殑鏈夆啇 鈫栤啒鈫椻啓鈫 鈫撯啋锛岃繖浜涙柟鍚戠鍙烽兘鏄庝箞鎵撳嚭鏉ョ殑鍛紵寰堝缃戝弸閮藉湪闂紝浠婂ぉ灏忕紪灏卞拰澶у涓璧锋潵瀛︿範濡備綍鎵撳嚭鏂瑰悜绠ご 鏂瑰悜閿庝箞鎵 鐢ㄦ悳鐙楄緭鍏ユ硶鈥斺旇彍鍗曗斺旇〃鎯呯鍙鈥斺旂壒娈婄鍙 鎴戜滑灏辨墦寮鐗规畩绗﹀彿琛紝鍦ㄨ繖閲屾垜浠彲浠ョ偣閫夎嚜宸辫鐢ㄧ殑鏂瑰悜绗﹀彿銆傜敤鎼滅嫍杈撳叆娉曡繕鍙互鐩存帴鐢ㄦ嫾闊宠緭鍏ユ柟...
绛旓細鎵撳紑鏅鸿兘ABC杈撳叆娉 灏辨槸鍐欑潃鏍囧噯鐨勯偅涓 鎸変綇Alt閿鐨勫悓鏃跺啀鍘诲垎鍒寜浠ヤ笅鏁板瓧閿問 ALT+43081鈫 ALT+43082鈫 ALT+43083鈫 ALT+43084鈫掆啇鈫戔啌 鎵撳紑鏅鸿兘ABC杈撳叆娉 鎸変竴涓嬪瓧姣峍閿澗鎵嬪啀鎸1閿 鍚戝悗缈伙紙鎸+閿級鐪嬪埌浜嗗惂
绛旓細閿洏涓婄殑涓嬮敭鏄柟鍚戦敭涔嬩竴,閫氬父鏍囨敞涓衡溾啌鈥銆傝缁嗚В閲婂涓:澶у鏁拌绠楁満閿洏涓婇兘浼氭湁涓缁勬柟鍚戦敭,瀹冧滑鐢ㄤ簬鍦ㄦ枃鏈腑绉诲姩鍏夋爣鎴栭夋嫨鏂囨湰鍖哄煙銆傝繖浜涙柟鍚戦敭鍖呮嫭涓娿佷笅銆佸乏鍜屽彸鍥涗釜鏂瑰悜銆備笅閿綅浜庨敭鐩樼殑鍙充晶鎴栦腑澶尯鍩,鍏舵爣璇嗛氬父涓哄悜涓嬬殑绠ご绗﹀彿鈥溾啌鈥濄傚綋鐢ㄦ埛鎸変笅杩欎釜閿椂,鍏夋爣浼氬悜涓嬬Щ鍔ㄤ竴琛屻傝繖涓敭鍦ㄨ绠楁満鎿嶄綔涓...
绛旓細Excel琛ㄦ牸涓紙绗旇鏈數鑴戯級鏂瑰悜閿洏涓嶈兘绉诲姩鍗曞厓鏍硷紝鍙兘鏄洜涓烘寜Scroll Lock杩欎釜閿粰鍏抽棴浜嗭紝鎵撳紑瀹冿紝鏂瑰悜閿洏灏卞彲浠ヤ娇鐢ㄤ簡銆傛搷浣滄柟娉曞涓嬶細宸ュ叿锛氱瑪璁版湰鐢佃剳 鎵惧紑excel琛ㄦ牸 鎸夐敭鐩樹笂鐨刉indows+R閿紝宸︿笅瑙掑嚭鏉ヤ竴涓繍琛屽璇濇 鍦ㄦ墦寮鐨勯偅涓涓緭鍏モ渙sk鈥濊繖涓変釜瀛楁瘝 鍑烘潵灞忓箷閿洏锛岀偣鍑诲彸涓嬭鍊掓暟绗簩...
绛旓細1銆侀鍏堟墦寮涓涓怑xcel琛ㄦ牸銆戙傚鍥炬墍绀猴細2銆佸乏鍙崇Щ鍔ㄩ敭鐩樹笂鐨勩愭柟鍚戦敭鈫愨啋銆戙傞紶鏍囩偣鍑籆4锛屽悜鍙崇Щ鍔ㄤ細绉诲姩鍒癉4浣嶇疆銆傚鍥炬墍绀猴細3銆侀紶鏍囩偣鍑籆4鍗曞厓鏍硷紝鍐嶆绉诲姩閿洏涓婄殑鏂瑰悜閿啇鈫掞紝杩欐椂浼氬彂鐜伴紶鏍囨病鏈夎窡鐫鏂瑰悜閿殑绉诲姩鑰岀Щ鍔紝鑰屾槸銆愭暣涓睆骞曞湪绉诲姩銆戯紝椤甸潰涓嬫柟鐨勩愭粦鍔ㄦ潯銆戝湪绉诲姩銆傚鍥炬墍绀猴細4銆佽繖鏃...
绛旓細鍥炵瓟锛氳繘鍏ORD,閫夋嫨鑿滃崟鐨勬彃鍏,绗﹀彿,鐢ㄦ粦鍧楀線涓,鎵惧埌鏂瑰悜閿,鐐瑰嚮榧犳爣,鎻掑叆鎵闇瑕佺殑鏂瑰悜閿,鐒跺悗鐢╓ORD鐨勯夋嫨,澶嶅埗,绮樿创鍔熻兘,绮樿创鍒颁綘闇瑕佺殑鏂囧瓧澶勫氨鍙互浜嗐傗啋鈫愨啈鈫撯問鈫椻啒鈫
绛旓細鈫 鈫戔啇 鈫掑洓涓鏂瑰悜閿 銆佺敤鏍囧噯鎷块紶鏍囧彸閿偣鏈鍚庝竴涓伆鑹茬殑鍥炬爣锛岀劧鍚庨夋嫨涓婇潰鐨勭壒娈婄鍙峰氨鍙互浜嗐傗問鈫椻啒鈫欒繖4涓敭銆佹寜浣廇lt+43082锛屽氨鍙互鎵撳嚭鏉浜 43801 43082 43083 43084
绛旓細1. 鎵撳紑Excel骞堕夋嫨瑕佺紪杈戠殑鍗曞厓鏍笺2. 浣跨敤閿洏涓婄殑鏂瑰悜閿(涓娿佷笅銆佸乏銆佸彸)鏉ュ湪琛ㄦ牸涓Щ鍔ㄥ埌鐩搁偦鐨勫崟鍏冩牸銆備笂閿皢浣垮厜鏍囧湪涓婃柟绉诲姩锛屼笅閿皢浣垮厜鏍囧湪涓嬫柟绉诲姩锛屽乏閿皢浣垮厜鏍囧悜宸︾Щ鍔紝鍙抽敭灏嗕娇鍏夋爣鍚戝彸绉诲姩銆3. 鎸変笅鍥炶溅閿垨Tab閿紝鍙互璺冲埌涓嬩竴涓牸瀛愩傚洖杞﹂敭灏嗕娇鍏夋爣鍦ㄤ笅鏂圭Щ鍔紝Tab閿皢浣...
绛旓細涓婁笅宸﹀彸鏈夊緢澶氳緭鍏ユ硶鐨勭壒娈婄鍙疯緭鍏ュ姛鑳藉彲浠ヨ緭鍏 渚嬪鎼滅嫍锛岃蒋閿洏澶勭偣鍙抽敭閫夌壒娈婄鍙 鍊炬枩绠ご 鈫 alt+43081 鈫 alt+43082 鈫榓lt+43083 鈫 alt+43084 灏辨槸鎸変綇ait閿悗椤哄簭杈撳叆43081 鐒跺悗鏀惧紑alt
绛旓細鐢ㄦ櫤鑳紸BC鐨勮緭鍏ユ硶鐨勮瘽 杈撳叆V1鐒跺悗涓嬬炕鍐嶄笅缈 鏈鍚庡氨鏄鏂瑰悜绠簡