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

ÔÚlinuxÖÐÈçºÎÓÃcÓïÑÔ´òÓ¡³öÒ»ÌõºáÏߺÍÊúÏß

ÔÚlinuxÖÐÈçºÎÓÃcÓïÑÔ´òÓ¡³öÒ»ÌõºáÏߺÍÊúÏߣ¬Á¬×ŵÄÄÇÖÖ£¬ÏñÕâÖֵĠ                    
#define xline ________________________________
#define yline | \
              | \

¿´¿´¿ÉÒÔ²»£¿

printf("________________________");

ÒýÓÃ
printf("________________________");

- -#

ÕÒͼÐοâ

ÒýÓÃ
#define xline ________________________________
#define yline | \
              | \

¿´¿´¿ÉÒÔ²»£¿


¶¥

Çë½Ì³ÌÐòÔõôÔËÐа¢¡£
  1 #include "stdio.h"
  2 #define yline  "| \
  3              | \"
  4
  5 int main()
  6 {
  7        printf("%s", yline);
  8 } 

Èç¹ûprintf²»ÐеĻ°,¾ÍÖ»ÄÜÕÒͼÐοâÁË°É

¶¥1Â¥µÄ

»æÖƱí¸ñµÄ·ûºÅ£¬²»¹ýºÃÏñÁ¬½ÓµÄ²»ÊǺܽô

C/C++ code:
char aa1[]="©°©¤©¤©Ð©¤©¤©¤©¤©´";
char aa2[]="©¦ ©¦ ©¦";
char aa3[]="©¸©¤©¤©Ø©¤©¤©¤©¤©


Ïà¹ØÎÊ´ð£º

linux»·¾³ÏÂgethostbynameº¯ÊýÎÊÌâ - C/C++ / CÓïÑÔ

дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
   
  struct hostent *hp; 
char AlarmDevIP[20];  
  int x2;

hp = gethostbyname("www.google.com");
if (hp)
{ ......

c#¿ØÖÆMysql ʵÏÖ×Ô¶¯É¾³ý¹¦ÄÜ - .NET¼¼Êõ / C#

Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......

¹ØÓÚlinuxÏÂsocket±à³ÌµÄÎÊÌ⣡ - C/C++ / CÓïÑÔ

ÓÉÓÚÎҲŸոսӴ¥socket±à³Ì£¬×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥³ÌÐò£¬µ«¾ÍÊÇÔÚÔËÐеÄʱºò³öÏֶδíÎó£¬ÎÞ·¨½â¾ö£¬ÏÖÔÚÎÒ°ÑÔ´´úÂëÌù³öÀ´£¬Çë¸÷λ´óϺָÕýһϣ¡Ð»Ð»£¡
#include<stdio.h>
#include<stdlib.h>
#include& ......

execlÔõôµ÷ÓÃjava³ÌÐò - C/C++ / CÓïÑÔ

ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£

²»»á.

ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ

ËÑË÷Ï£ºjni ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ