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

¼±°¢~~~~Cº¯Êý¿âÁ¬½Óµ½C++³ÌÐòºóÎÞ·¨Õý³£±àÒ롢ʹÓÃ

ÎÒÔÚlinuxÏÂдÁËÒ»¸öCµÄapiº¯Êý¿â£¬ºÍÆäËûµÄһЩCº¯Êý¿âÒ»Æð±àÒë³ÉÁ˾²Ì¬¿â£¬ ±ðÈ˵ijÌÐòÊÇÓÃC++дµÄ³ÌÐò£¬ ÒªÓõ½ÎÒµÄCº¯Êý¿â£¬ ÇëÎÊÔÚCº¯Êý¿â¸Ä¶¯Á¿²»´óµÄÇé¿öÏÂÈçºÎÈÃC++³ÌÐòÕý³£Ê¹ÓÃCµÄAPI,
´úÂëÈçÏ£¬¿ÒÇë¸ßÊÖÖ¸µã£¬Çë×Ðϸ˵Ã÷Ï£¬¼±Óã¬Ð»Ð»ÁË

[size=7]api.h:[/size]
[size=6]#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <netinet/in.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <pthread.h>
#include <malloc.h>
#include <signal.h>
#include "RegisterDevice.h"
#include "Api.h"

#ifndef SUCCESS
#define SUCCESS 0
#endif

#ifndef FAILED
#define FAILED -1
#endif

#ifndef MAX_CMD_LEN
#define MAX_CMD_LEN 60
#endif

#ifndef MAX_BUF_LEN
#define MAX_BUF_LEN 60
#endif

#ifndef DEFAULT_ARGS
#define DEFAULT_ARGS 5
#endif

extern int set_devname(const char *devname);
extern int ushare(const char *sharename);
extern int share(const char *sharename, c


Ïà¹ØÎÊ´ð£º

C ³ÌÐòÎÊÌâ (¶þ) - C/C++ / CÓïÑÔ

ÎÊһϣº
#include <stdio.h>
int main()
{
  char x, y, z;
  int i;
  int a[16];
  for(i=0; i<=16; i++)
  {
  a[i] = 0;
  ......

´ÓÎļþ¶ÁC´®µÄÎÊÌâ

¶¨ÒåÁË

ifstream fin("in.txt");

±ÈÈçÎļþÊ×ÐÐÊÇÒ»¸öÊý×Ö£¬µÚ¶þÐÐÊÇÒ»´®×Ö·û¡£

int M;
char* str;

fin>>M;
fin>>str;

M¿ÉÒÔ¶Á³öÀ´£¬str×ÜÊÇÎÞ·¨¶ÁÈ ......

CÖеÄһЩСÎÊÌâ¡£¡£¡£

/* Note:Your choice is C IDE

×÷Óãº Ëæ»úÊý¼ÓÃÜ·¨£¬£¬£¬£¬
ÒÔÏÂÓÐÐí¶à²»¶®£¬Çë½Ìһϣ¬ÇëÖ÷Òâ´úÂë;
*/
#include <stdio.h>
#include <stdlib.h>
union
{
int value;
struct
{
c ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ