CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - INT 1
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - INT 1 - List
[
Other Web Code
]
词法分析程序(编译原理)
DL : 0
用C语言写的词法分析程序 #include "stdio.h" #include"string.h" #include "stdlib.h" FILE *fp; char filename[20]; char token[100]; int m=0; char getch() { char ch; ch=fgetc(fp); return ch; } char getbc(char ch) { while(ch==' ') ch=getch(); return ch; }
Date
: 2009-04-29
Size
: 1.19kb
User
:
zhimoai
[
Other Web Code
]
test
DL : 0
[解决方法] 对上述程序改动如下: 发送端: MMM SendBag ZeroMemory(&SendBag,sizeof(SendBag)) ............. int send = 0 while(send<sizeof(MMM)) { int nCharSend=send(m_hSocket,(char*)(&SendBag+send),sizeof(MMM)-send,0) send+=nCharSend } 接收端: MMM RecvBag ZeroMemory(&RecvBag,sizeof(RecvBag)) recv写法同上while... 此方法适合传送结构体的实现. 赶快试试看.-[Solutions] to the above changes in procedures are as follows: the sending end: MMM SendBag ZeroMemory (
Date
: 2026-01-06
Size
: 193kb
User
:
刘壮
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.