-
There is a shared object – int array[] between Write and Read. Write sets the array, Read gets the array and sorts ascending. Write a program to implement the write/read question by using synchronization mechanism and GUI.
標簽:
array
Write
Read
the
上傳時間:
2016-02-02
上傳用戶:playboys0
-
、該個詞法分析器要求至少能夠識別以下幾類單詞:
a. 關鍵字:else if int return void while共6個,所有的關鍵字都是保留字,并且必須是小寫;
b. 標識符:識別與C語言詞法規定相一致的標識符,通過下列正則表達式定義:ID = letter (letter | digit)*;
c. 常數:NUM=(+ | - |ε)digit digit*(.digit digit* |ε)(e(+ | - |ε) digit digit* |ε),letter = a|..|z|A|..|Z|,digit = 0|..|9,包括整數,如123, -123, +123等;小數,如123.45, +123.45, -123.45;科學計數法表示的常數,如+1.23e3,-2.3e-9;
d. 專用符號:+ - * / < <= > >= == != = , ( ) [ ] { } /* */;
標簽:
return
while
else
void
上傳時間:
2013-12-08
上傳用戶:gtf1207
-
1. 學生成績刪除功能:該功能通過調用int shanchu(struct Student *p,int x,int num,float a[])來實現。該功能采用的是詢問管理人員的意見之后再功能實現,由學號來引出學生信息,當學號不存在時,系統將給出信息“該學生不存在!”。然后詢問管理員是否繼續刪除。
2. 學生成績添加功能:該功能通過調用void luru(struct Student *p)來實現。實現了手工輸入功能,當然可以通過連接數據庫來在數據庫中進行修改。
3. 學生成績更新功能:該功能通過調用void xiugai(struct Student *p,int x,int num,float a[])來實現。同樣可以在連接數據庫之后字其中進行修改。
4. 學生成績排列功能:該功能通過調用void paixu(struct Student *p,int x,float
5. a[])來實現。本系統采用按平均成績由高到低來排序。
6. 學生信息查詢功能:該功能通過調用void chaxun(struct Student *p,int x,int num,float a[])來實現。本系統采用根據學號來查詢學生信息,當連接數據庫之后就可以用查詢分析器來進行,即使用SQL語句來實現。
標簽:
int
Student
shanchu
struct
上傳時間:
2013-12-02
上傳用戶:hebmuljb
-
Methods
void close()
int read()
reads and returns a chracter.
int read(char[] characterArray)
populates an array of characters with data.
boolean ready()
- returns “true” if there is data available.
……
標簽:
read
characterArray
int
chracter
上傳時間:
2013-12-18
上傳用戶:小儒尼尼奧
-
溫度華氏轉變攝氏
#include <stdio.h>
#include <stdlib.h>
enum x {A,B,C,D,E}
int main(void)
{
int a=73,b=85,c=66
{
if (a>=90)
printf("a=A等級!!\n")
else if (a>=80)
printf("73分=B等級!!\n")
else if (a>=70)
printf("73分=C等級!!\n")
else if (a>=60)
printf("73分=D等級!!\n")
else if (a<60)
printf("73分=E等級!!\n")
}
{
if (b>=90)
printf("b=A等級!!\n")
else if (b>=80)
printf("85分=B等級!!\n")
else if (b>=70)
printf("85分=C等級!!\n")
else if (b>=60)
printf("85分=D等級!!\n")
else if (b<60)
printf("85分=E等級!!\n")
}
{
if (c>=90)
printf("c=A等級!!\n")
else if (c>=80)
printf("66分=B等級!!\n")
else if (c>=70)
printf("66分=C等級!!\n")
else if (c>=60)
printf("66分=D等級!!\n")
else if (c<60)
printf("66分=E等級!!\n")
}
system("pause")
return 0
}
標簽:
include
stdlib
stdio
gt
上傳時間:
2014-11-10
上傳用戶:wpwpwlxwlx
-
溫度華氏轉變攝氏
#include <stdio.h>
#include <stdlib.h>
enum x {A,B,C,D,E}
int main(void)
{
int a=73,b=85,c=66
{
if (a>=90)
printf("a=A等級!!\n")
else if (a>=80)
printf("73分=B等級!!\n")
else if (a>=70)
printf("73分=C等級!!\n")
else if (a>=60)
printf("73分=D等級!!\n")
else if (a<60)
printf("73分=E等級!!\n")
}
{
if (b>=90)
printf("b=A等級!!\n")
else if (b>=80)
printf("85分=B等級!!\n")
else if (b>=70)
printf("85分=C等級!!\n")
else if (b>=60)
printf("85分=D等級!!\n")
else if (b<60)
printf("85分=E等級!!\n")
}
{
if (c>=90)
printf("c=A等級!!\n")
else if (c>=80)
printf("66分=B等級!!\n")
else if (c>=70)
printf("66分=C等級!!\n")
else if (c>=60)
printf("66分=D等級!!\n")
else if (c<60)
printf("66分=E等級!!\n")
}
system("pause")
return 0
}
標簽:
include
stdlib
stdio
gt
上傳時間:
2013-12-12
上傳用戶:亞亞娟娟123
-
#include<stdio.h>
void main(void)
{int n,k,derivata,a[10],i
printf("n=") scanf(" d",&n)
for(i=0 i<=n i++)
{ printf("a[ d]=",i) scanf(" d",&a[i])
}
printf("k=") scanf(" d",&k)
for(derivata=1 derivata<=k derivata++)
{
for(i=0 i<=n i++)
a[i]=a[i]*(n-i)
n--
for(i=0 i<=n i++)
printf(" d ",a[i])
printf("\n")
}}
標簽:
void
derivata
include
printf
上傳時間:
2017-09-17
上傳用戶:duoshen1989
-
DEbug 關于制作瑞星殺毒軟件密鑰盤的源碼 MOV BX,200 ;內存基址(0面) MOV DH,00 ;磁頭號00 MOV DL,00 ;驅動器號00(A盤) MOV CX,4F01 ;4F(即79)號磁道01號扇區 即(CH=4F CL=01) MOV AH,05 ;格式化磁道 MOV AL,09 ;連續讀取9個扇區 INT 13 ;調用13號中斷 INT 3 MOV BX,300 ;內存基址(1面) MOV DH,01 ;磁頭號01 MOV DL,00 ;驅動器號00(A盤) MOV CX,4F01 ;4F(即79)號磁道01號扇區 即(CH=4F CL=01) MOV AH,05 ;格式化磁道 MOV AL,09 ;連續讀取9個扇區 INT 13 ;調用13號中斷 INT 20 ;返回dos 初學匯編,請各位多多指教!
標簽:
MOV
00
DEbug
200
上傳時間:
2015-01-07
上傳用戶:我干你啊
-
使用的是API編程,可格式化、校驗和讀寫特殊扇區??捎米鱓indows下的磁盤加密。本函數還有以下兩個缺點以待改進: 1.本函數還只能讀能讀 A: 和 B:,即只能對軟盤操作 2.不能改變磁盤扇區大小,只能是標準的 512 個字節。 參數說明: command 操作: 0 重置磁盤 2 讀扇區 3 寫扇區 4 校驗磁道 5 格式化磁道 8 得到設備參數 (int 1EH) drive 驅動器 A:=0 B:=1 head 磁頭號,范圍 0 - 1 track 磁道號,范圍 0 - 84 ( 80 - 84 為特殊磁道,通常用來加密 ) sector 扇區號,范圍 0 - 255 ( 19 - 255 為非標準扇區編號,通常用來加密) nsectors 每次讀或寫的扇區數,不能超出每磁道的最大扇區數 buffer 數據寫入或讀出的緩沖區,大小為 512 個字節 返回值 ( 同 Int 13H ): 0x0 成功 0x1 無效的命令 0x3 磁盤被寫保護 0x4 扇區沒有找到 0xa 發現壞扇區 0x80 磁盤沒有準備好
標簽:
Windows
API
函數
磁盤
上傳時間:
2013-12-05
上傳用戶:moerwang
-
A C++ framework for creating Linux and Windows communications applications that contain Dialogic/Intel NetStructure products. Includes media and network classes (analog, digital, SIP, H323), multithreaded event handling, distributed app support.
標簽:
communications
applications
framework
creating
上傳時間:
2014-01-11
上傳用戶:mhp0114