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

CÑÕÉ«±ÈÕÕ±í


·½Ê½ ·ûºÅ³£Á¿ ÏÔʾÁÐ×ÐÐÊýºÍÑÕÉ«
0 BW40 40×25 ºÚ°×ÏÔʾ
1 C40 40×25 ²ÊÉ«ÏÔʾ
2 BW80 80×25 ºÚ°×ÏÔʾ
3 C80 80×25 ²ÊÉ«ÏÔʾ
7 MONO 80×25 µ¥É«ÏÔʾ
-1 LASTMODE ÉÏÒ»´ÎµÄÏÔʾ·½Ê½
Turbo C Ò²¿ÉÒÔÈÃÓû§¸ù¾Ý×Ô¼ºµÄÐèÒªÖØÐÂÉ趨ÏÔʾ´°¿Ú£¬Ò²¾ÍÊÇ˵£¬Í¨¹ýʹÓô°¿ÚÉè
Öú¯Êýwindow()¶¨ÒåÆÁÄ»ÉϵÄÒ»¸ö¾ØÐÎÓò×÷Ϊ´°¿Ú¡£window()º¯ÊýµÄº¯ÊýÔ­ÐÍΪ£º
void window(int left, int top, int right, int bottom)£»
º¯ÊýÖÐÐÎʽ²ÎÊý£¨int left£¬int top£©ÊÇ´°¿Ú×óÉϽǵÄ×ø±ê£¬£¨int right£¬int bottom£©ÊÇ´°¿ÚµÄ
ÓÒϽÇ×ø±ê£¬ÆäÖУ¨left£¬top£©ºÍ£¨right£¬bottom£©ÊÇÏà¶ÔÓÚÕû¸öÆÁÄ»¶øÑԵġ£ÀýÈ磬Ҫ¶¨
ÒåÒ»¸ö´°¿Ú×óÉϽÇÔÚÆÁÄ»£¨20£¬5£©´¦£¬´óСΪ30 ÁÐ15 ÐеĴ°¿Ú¿Éд³É£º
window(20, 5, 50, 25);
Èôwindow()º¯ÊýÖеÄ×ø±ê³¬¹ýÁËÆÁÄ»×ø±êµÄ½çÏÞ£¬Ôò´°¿ÚµÄ¶¨Òå¾ÍʧȥÁËÒâÒ壬Ҳ¾ÍÊÇ˵
¶¨Ò彫²»Æð×÷Ó㬵«³ÌÐò±àÒëÁ´½Óʱ²¢²»³ö´í¡£
´°¿Ú¶¨ÒåÖ®ºó£¬ÓÃÓйش°¿ÚµÄÊäÈëÊä³öº¯Êý¾Í¿ÉÒÔÖ»ÔÚ´Ë´°¿ÚÄÚ½øÐвÙ×÷¶ø²»³¬³ö´°¿Ú
µÄ±ß½ç¡£
ÁíÍ⣬һ¸öÆÁÄ»¿ÉÒÔ¶¨Òå¶à¸ö´°¿Ú£¬µ«ÏÖÐд°¿ÚÖ»ÄÜÓÐÒ»¸ö£¨ÒòΪDOS Ϊµ¥ÈÎÎñ²Ù×÷
ϵͳ£©¡£µ±ÐèÒªÓÃÁíÒ»´°¿Úʱ£¬¿É½«¶¨Òå¸Ã´°¿ÚµÄwindow()º¯ÊýÔÙµ÷ÓÃÒ»´Î, ´Ëʱ¸Ã´°¿Ú±ã
³ÉΪÏÖÐд°¿ÚÁË¡£
2) Îı¾´°¿ÚÑÕÉ«ºÍÆäËüÊôÐÔµÄÉèÖÃ
Îı¾´°¿ÚÑÕÉ«µÄÉèÖðüÀ¨±³¾°ÑÕÉ«µÄÉèÖúÍ×Ö·ûÑÕÉ«£¨¼ÈÇ°¾°É«£©µÄÉèÖã¬Ê¹Óõĺ¯Êý
¼°ÆäÔ­ÐÍΪ£º
3
ÉèÖñ³¾°ÑÕÉ«º¯Êý£ºvoid textbackground(int color)£»
ÉèÖÃ×Ö·ûÑÕÉ«º¯Êý£ºvoid textcolor(int color)£»
ÓйØÑÕÉ«µÄ¶¨Òå¼û±í3-2¡£±íÖеķûºÅ³£ÊýÓëÏàÓ¦µÄÊýÖµµÈ¼Û£¬¶þÕß¿ÉÒÔ»¥»»¡£ÀýÈçÉ趨À¼
É«±³¾°¿ÉÒÔʹÓÃtextbackground(1)£¬Ò²¿ÉÒÔʹÓÃtextbackground(BLUE)£¬Á½ÕßûÓÐÈκÎÇø±ð£¬
Ö»²»¹ýºóÕ߱ȽÏÈÝÒ×¼ÇÒ䣬һ¿´¾ÍÖªµÀÊÇÀ¼É«¡£
±í3-2 ÑÕÉ«±í
·ûºÅ³£Êý ÊýÖµ º¬Òå ±³¾°»ò±³¾°
BLACK 0 ºÚ Ç°¾°¡¢±³¾°É«
BLUE 1 À¶ Ç°¾°¡¢±³¾°É«
GREEN 2 ÂÌ Ç°¾°¡¢±³¾°É«
CYAN 3 Çà Ç°¾°¡¢±³¾°É«
RED 4 ºì Ç°¾°¡¢±³¾°É«
MAGENTA 5 Ñóºì Ç°¾°¡¢±³¾°É«
BROWN 6 ×Ø Ç°¾°¡¢±³¾°É«
LIGHTGRAY 7 µ­»Ò Ç°¾°¡¢±³¾°É«
DARKGRAY 8 Éî»Ò ÓÃÓÚÇ°¾°É«£®
LIGHTBLUE 9 µ­À¶ ÓÃÓÚÇ°¾°É«
LIGHTGREEN 10 µ­ÂÌ ÓÃÓÚÇ°¾°É«
LIGHTCYAN 11 µ­Çà ÓÃÓÚÇ°¾°É«
LIGHTRED 12 µ­ºì ÓÃÓÚÇ°¾°É«
LIGHTMAGENTA 13 µ­Ñóºì ÓÃÓÚÇ°¾°É«
YELLOW 14 »Æ ÓÃÓÚÇ°¾°É«
WHITE 15 °× ÓÃÓÚÇ°¾°É«
BLI


Ïà¹ØÎĵµ£º

C Fork º¯Êý

Fork º¯Êý£º
#include <unistd.h>
pid_t fork(void);
ÓÉfork ´´½¨µÄнø³Ì±»³ÆΪ×Ó½ø³Ì¡£fork º¯Êý±»µ÷ÓÃÁ½´Î£¬µ«ÊÇ·µ»ØÁ½´Î¡£Á½´Î·µ»ØµÄΨһÇø±ðÊÇ×Ó½ø³ÌµÄ·µ»ØÖµÊÇ0£¬¶ø¸¸½ø³ÌµÄ·µ»ØÖµÔòÊÇÐÂ×Ó½ø³ÌµÄID¡£½«×Ó½ø³ÌµÄID ·µ»Ø¸ø¸¸½ø³ÌµÄÀíÓÉÊÇ£ºÒ»¸ö½ø³Ì¿ÉÒÔÓжà¸ö×Ó½ø³Ì£¬²¢ÇÒûÓк¯ÊýÊÇÒ»¸ö½ø³Ì»ñµÃÆä×Ó½ø³ÌµÄ½ø³ ......

windowsÏÂCд·þÎñ»ù±¾¿ò¼Ü

ÎÒ½«ÒµÎñ´úÂëÈ¥µôÁË£¬Ö»ÊÇÓÃÀ´´î¸ö»ù±¾¿ò¼Ü£¬Óõ½µÄʱºòÖ±½ÓÄÃÀ´ÓþͿÉÒÔÁË¡£(ÎÒÕâ¸öÊÇÆðÒ»¸ösocket)Èç¹ûÓÐʲô½¨ÒéÇëÁªÏµÎÒ¡£ChuangshengGuan@Gmail.com
main.c
Code:
#include "Services.h"
int main(int argc, char *argv[])
{
  SERVICE_TABLE_ENTRY ServiceTable[2];
 
  /* Ö¸Ïò±íʾ·þ ......

ARM CǶÈëʽ±à³ÌÖеļ¸¸ö¹Ø¼ü×Ö

ARM CǶÈëʽ±à³ÌÖеļ¸¸ö¹Ø¼ü×Ö
1¡¢·ÃÎʾø¶ÔµØÖ·µÄÄÚ´æλÖãº
     #define pISR_EINT0 (*(unsigned *) (_ISR_STRATADDRESS+0x74))
     ÉÏÊöÓï¾ä°ÑÎÞ·ûºÅÕûÊý_ISR_STRATADDRESS+0x74Ç¿ÖÆת»»ÎªÖ¸Õ룬ָÏòRAM£¬ÓÃÏÂÃæµÄÓï¾ä¿ÉÒÔ·ÃÎÊËü£º
pISR_EINT0 = (int)Eint0_ISR
 & ......

Ò»¸öLinuxÏÂCÏ̳߳صÄʵÏÖ

ʲôʱºòÐèÒª´´½¨Ï̳߳ØÄØ£¿¼òµ¥µÄ˵£¬Èç¹ûÒ»¸öÓ¦ÓÃÐèҪƵ·±µÄ´´½¨ºÍÏú»ÙỊ̈߳¬¶øÈÎÎñÖ´ÐеÄʱ¼äÓַdz£¶Ì£¬ÕâÑùÏ̴߳´½¨ºÍÏú»ÙµÄ´øÀ´µÄ¿ªÏú¾Í²»ÈݺöÊÓ£¬ÕâʱҲÊÇÏ̳߳ظóö³¡µÄ»ú»áÁË¡£Èç¹ûÏ̴߳´½¨ºÍÏú»Ùʱ¼äÏà±ÈÈÎÎñÖ´ÐÐʱ¼ä¿ÉÒÔºöÂÔ²»¼Æ£¬ÔòûÓбØҪʹÓÃÏ̳߳ØÁË¡£ÏÂÃæÊÇLinuxϵͳÏÂÓÃCÓïÑÔ´´½¨µÄÒ»¸öÏ̳߳ء£Ïß³Ì³Ø ......

C's egg pain

1.ÊäÈëÒ»¶Î×Öĸ¼ÓÊý×ֵľä×Ó£¬È»ºóÊä³öÆäÖÐÓм¸×éÊý×Ö£¬²¢ÇÒÊä³ö¸÷×éÊý×Ö£¬²¢¶ÔÆäÇóƽ¾ùÖµ£¨È¡Õû¼´¿É£©
#include<stdio.h>
#include<math.h>
int main()
{
int i,x=0,t=0,n=0,p=0;
char a[90]={0};
scanf("%s",a);
printf("Found:");
for(i=0;i<90;i++)
{
if(a[i]&g ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ