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

CͼÐαà³Ìѧϰ


Ò»¡¢ÆÁÄ»²Ù×÷º¯Êý
1. clrscr()Çå³ý×Ö·û´°¿Úº¯Êý
2. window()×Ö·û´°¿Úº¯Êý
3. gotoxy()¹â±ê¶¨Î»º¯Êý
4. clreol() Çå³ý¹â±êÐÐβ×Ö·ûº¯Êý
5. insline() ²åÈë¿ÕÐк¯Êý
6. delline() ɾ³ýÒ»Ðк¯Êý
7. gettext() ¿½½øÎÄ×Öº¯Êý
8. puttext() ¿½³öÎÄ×Öº¯Êý
9. movetext() Òƶ¯ÎÄ×Öº¯Êý
¶þ¡¢×Ö·ûÊôÐÔº¯Êý
10. textmode() Îı¾Ä£Ê½º¯Êý  
11. highvideo()¸ßÁÁ¶Èº¯Êý 
12. lowvideo() µÍÁÁ¶Èº¯Êý
13. normvideo(void);
14. textcolor() Îı¾ÑÕÉ«º¯Êý
15. textattr() Îı¾ÊôÐÔº¯Êý
16.textbackground() Îı¾±³¾°º¯Êý
Èý¡¢ ÆÁÏÔ״̬º¯Êý
17. wherex() ¹â±ê´¦x×ø±êº¯Êý
18. wherey() ¹â±ê´¦y×ø±êº¯Êý
19. gettextinfo() »ñÈ¡Îı¾´°¿ÚÐÅÏ¢º¯Êý
ÔÚBorland C++ÀïÃæÌṩÁË×Ö·ûÆÁÄ»ºÍͼÐκ¯Êý¡£×Ö·ûÆÁÄ»µÄºËÐÄÊÇ´°¿Ú(Window)£¬ËüÊÇÆÁÄ»µÄ»î¶¯²¿·Ö£¬×Ö·ûÊä³ö»òÏÔʾÔڻ´°¿ÚÖнøÐС£´°¿ÚÔÚȱʡʱ£¬¾ÍÊÇÕû¸öÆÁÄ»¡£´°¿Ú¿ÉÒÔ¸ù¾ÝÐèÒªÖ¸¶¨Æä´óС¡£Í¬Ñù£¬¶ÔͼÐκ¯ÊýµÄ²Ù×÷£¬Ò²ÌṩÁË(Viewport)¡£Ò²¾ÍÊÇ˵ͼÐκ¯ÊýµÄ²Ù×÷¶¼ÊÇÔÚÊÓ¿ÚÉϽøÐС£Í¼ÐÎÊÓ¿ÚÓë×Ö·û´°¿Ú¾ßÓÐÏàͬµÄÌØÐÔ£¬Óû§¿ÉÒÔÔÚÆÁÄ»É϶¨Òå´óС²»Í¬µÄÊÓ¿Ú£¬Èô²»¶¨ÒåÊÓ¿Ú´óС£¬Ëü¾ÍÊÇÕû¸öÆÁÄ»¡£
´°¿ÚÊÇÔÚ×Ö·ûÆÁĻϵĸÅÄֻÓÐ×Ö·û²ÅÄÜÔÚ´°¿ÚÖÐÏÔʾ³öÀ´£¬ÕâʱÓû§¿ÉÒÔ·ÃÎʵÄ×îСµ¥Î»ÎªÒ»¸ö×Ö·û¡£ÊÓ¿ÚÊÇÔÚͼÐÎÆÁĻ״̬ϵĸÅÄÎı¾ÓëͼÐζ¼¿ÉÒÔÔÚÊÓ¿ÚÉÏÏÔʾ£¬Óû§¿É·ÃÎʵÄ×îСµ¥Î»ÊÇÒ»¸öÏñËØ(ÏñËØÕâÒ»ÊõÓï×î³õÓÃÀ´Ö¸ÏÔʾÆ÷ÉÏ×îСµÄ¡¢µ¥¶ÀµÄ·¢¹âµãµ¥Ôª¡£È»¶øÏÖÔÚ£¬Æ京ÒåÍØ¿íΪָͼÐÎÏÔʾÆ÷ÉϵÄ×îС¿É·ÃÎʵã)¡£
×Ö·ûºÍͼÐÎ״̬Ï£¬ÆÁÄ»ÉϵÄλÖö¼ÊÇÓÉËüÃǵÄÐÐÓëÁÐËù¾ö¶¨µÄ¡£ÓÐÒ»µãÐëÖ¸³ö£º×Ö·û״̬×óÉϽÇ×ø±êΪ(1,1)£¬µ«Í¼ÐÎ×óÉϽÇ×ø±êΪ(0,0)¡£
Á˽â×Ö·ûÆÁÄ»ºÍͼÐκ¯ÊýÓë´°¿ÚºÍÊӿڵĹØϵÊǺÜÖØÒªµÄ¡£ÀýÈ磬×Ö·ûÆÁÄ» ¹â±êλÖú¯Êýgotoxy()½«¹â±êÒƵ½´°¿ÚµÄx,yλÖÃÉÏ£¬Õâδ±ØÊÇÏà¶ÔÓÚÕû¸öÆÁÄ»¡£ÏÂÃæ½éÉܳ£Óõļ¸Àà×Ö·ûÆÁÄ»º¯ÊýµÄ¹¦ÄÜÓÃ;¡¢²Ù×÷·½·¨¼°ÆäÀýÐгÌÐò¡£
Ò»¡¢ÆÁÄ»²Ù×÷º¯Êý
±àд³ÌÐò»æͼ¾­³£ÒªÓõ½¶Ô×Ö·ûÆÁÄ»½øÐвÙ×÷¡£ÀýÈ磬ÔÚÍùÆÁÄ»ÉÏд×Ö·û֮ǰ£¬Ê×ÏÈÒª½«ÆÁÄ»Çå³ý¸É¾»¡£ÓÖÈ磬ÓÐʱÐèÒªÔÚÆÁÄ»É϶ദдÉÏÈâÖдÌÑùµÄ×Ö·ûÄÚÈÝ£¬Õâʱ×îºÃÓÃÆÁÄ»¿½±´À´¸ßЧÂʵØÍê³ÉÕâÒ»ÈÎÎñ¡£¶ÔÕâЩ²Ù×÷£¬Borland C++ÌṩÁËһϵÁÐ×Ö·ûÆÁÄ»²Ù×÷º¯ÊýÀ´ÊµÏÖ¡£
1. clrscr()Çå³ý×Ö·û´°¿Úº¯Êý
¹¦ÄÜ£ºº¯Êýclrscr()Çå³ýÕû¸öµ±Ç°×Ö·û´°¿Ú£¬²¢ÇҰѹâ±ê¶¨Î»ÓÚ×óÉϽÇ(1,1)´¦¡£
Ó÷¨£º´Ëº¯Êýµ÷Ó÷½Ê½Î


Ïà¹ØÎĵµ£º

ubuntu°²×°c/c++¼¯³É¿ª·¢»·¾³

Ê×ÏÈÈ·±£ÏµÍ³ÒѾ­°²×°ÁËgcc/g++
1> Anjuta
´ò¿ªÖÕ¶Ë:
ÃüÁî:sudo apt-get install anjuta
£¨²»ÄÜ°²×°µÄÐèÒªÌí¼Ó°²×°Ô´
Ìí¼ÓÔ´£ºµã»÷Ö÷²Ëµ¥Éϵēϵͳ”¡·“ϵͳ¹ÜÀ픡·“Èí¼þÔ´”£¬ÊäÈëÃÜÂëºó£¬ÔÚ³öÏֵĶԻ°¿òÖе㓵ÚÈý·½Èí¼þ”£¬
“deb http://anjuta.org.sixxs. ......

LINUXÏÂI2C×ÜÏßÊÊÅäÆ÷³õʼ»¯µ÷ÓÃÁ´

ÒÔ i2c-mpc.c Çý¶¯Ä£¿éΪÀý
fsl_i2c_init -> of_register_platform_driver -> of_register_driver -> driver_register -> bus_add_driver -> driver_attach
-> bus_for_each_dev -> __driver_attach -> driver_probe_device -> really_probe -> drv->probe(dev); ......

C/C++ѧϰ±Ê¼Ç[01].×ÝÏò´òÓ¡ÕûÊý

#include <stdio.h>
#include <string.h>
#include <math.h>
#define BASE 10
int intlen(long n);
int main()
{
int i, j, num, sz;
i = j = num = sz = 0;
if (!scanf("%d", &num) || num <= 0) {
printf("invalid input\n");
retu ......

cĬÈÏÊÇ´«ÖµµÄ

ÔÚcÖУ¬²ÎÊýĬÈÏÊÇ´«ÖµµÄ£¬¼´ÔÚ²ÎÊýÈëջʱ±»¸´ÖÆÒ»·Ý
¡£ÔÚº¯ÊýÀïÃæÐÞ¸ÄÕâЩ²ÎÊý£¬²»»áÓ°ÏìÍâÃæµÄµ÷ÓÃÕß¡£
ÀýÈç
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
void get_str(char * p)
{
    p = (char *)malloc(sizeof("abcd"));
    s ......

C\C++ÖÐÊý×éÔªËØϱêÔ½½ç¿ÉÄÜÒýÆðµÄÎÊÌâ

Êý×éÊÇÀàÐÍÏàͬµÄ¶ÔÏóµÄÐòÁУ¬ÆäÖеĶÔÏó³ÆΪÊý×éÔªËØ¡£Ò²¿ÉÒÔ½«Êý×éÏëÏñ³ÉÒ»Á¬´®µÄÓÃϱêÖµ±àºÅµÄÏàÁÚ´æ´¢Çø¡£
       ¿ÉÄÜÔÚijЩ±à³ÌÓïÑÔÖУ¬Ò»¸öϱê±äÁ¿ÊDz»ÔÊÐí³¬³öÊý×鶨ÒåÖÐËùÉèµÄ½çÏ޵ġ£µ«ÊÇÔÚCºÍC++ÖУ¬Êý×éÊÇûÓÐÕâÖÖ°²È«´ëÊ©µÄ¡£ÏÂÃæÏÈÀ´¿´¿´Êý×éϱêÔ½½çµÄ¼¸ÖÖÒì³£½á¹û¡£
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ