ÔÚlinuxÖÐÈçºÎÓÃcÓïÑÔ´òÓ¡³öÒ»ÌõºáÏߺÍÊúÏß
ÔÚlinuxÖÐÈçºÎÓÃcÓïÑÔ´òÓ¡³öÒ»ÌõºáÏߺÍÊúÏߣ¬Á¬×ŵÄÄÇÖÖ£¬ÏñÕâÖÖµÄ
#define xline ________________________________
#define yline | \
| \
¿´¿´¿ÉÒÔ²»£¿
printf("________________________");
- -#
ÕÒͼÐοâ
¶¥
Çë½Ì³ÌÐòÔõôÔËÐа¢¡£
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[]="©¸©¤©¤©Ø©¤©¤©¤©¤©
Ïà¹ØÎÊ´ð£º
дÁ˸ö²âÊÔ³ÌÐòÈçÏÂ
struct hostent *hp;
char AlarmDevIP[20];
int x2;
hp = gethostbyname("www.google.com");
if (hp)
{
......
Óиöwinform³ÌÐò,ʹÓÃc#+mysql,ÐèÒªÔÚÒ»¸ö´°ÌåÉèÖÃmysql×Ô¶¯É¾³ý¹¦ÄÜ,°üÀ¨×Ô¶¯É¾³ý¶àÉÙÌì֮ǰµÄÊý¾ÝÒÔ¼°ÊÇ·ñ¿ªÆô×Ô¶¯É¾³ý¹¦ÄÜ,ÎÒ³ÌÐòÍ˳öºó,»¹Ôõô¿ØÖÆMysql×Ô¼ºÉ¾³ý°¡?ÊDz»ÊÇÒªÓÃmysqlµÄeventÀ´ÊµÏÖ?c#¿ÉÒÔµ÷ÓÃmysq ......
ÓÉÓÚÎҲŸոսӴ¥socket±à³Ì£¬×Ô¼ºÐ´ÁËÒ»¸ö¼òµ¥³ÌÐò£¬µ«¾ÍÊÇÔÚÔËÐеÄʱºò³öÏֶδíÎó£¬ÎÞ·¨½â¾ö£¬ÏÖÔÚÎÒ°ÑÔ´´úÂëÌù³öÀ´£¬Çë¸÷λ´óϺָÕýһϣ¡Ð»Ð»£¡
#include<stdio.h>
#include<stdlib.h>
#include& ......
ÈçÌ⣬C/C++ÖеÄexeclÔõôµ÷ÓÃдºÃµÄjava³ÌÐò£¬
execl("/opt/java1.5/bin/java","MyClass",NULL);
ÕâÑùµÄ²»ÐÐŶ¡£
²»»á.
ÔËÐÐjava³ÌÐò
ÕÒ¹¤¾ß²é¿´Ò»ÏÂÄǸö³ÌÐòµÄÃüÁîÐÐ
ËÑË÷Ï£ºjni ......