freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

數(shù)據(jù)庫(kù)課程設(shè)計(jì)之無(wú)損連接性(編輯修改稿)

2025-02-14 15:47 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 程序的運(yùn)行。【例】已知RU,F,U={A,B,C,D,E},F(xiàn)={A→C,B→C,C→D,DE→C,CE→A},R的一個(gè)分解為R1(AD),R2(AB),R3(BE),R4(CDE),R5(AE),判斷這個(gè)分解是否具有無(wú)損連接性。(1)首先,需要解決的問(wèn)題是關(guān)系模式屬性集,關(guān)系模式函數(shù)依賴集,模式分解的輸入,此時(shí)需要有個(gè)用戶說(shuō)明書(shū),告訴用戶該怎么輸入,輸入什么,輸入的東西是什么格式的,例如,必須輸入U(xiǎn)={ A,B,C,D,E},定義一個(gè)字符型數(shù)組stringAttribute[],InputStreamReader isra=new InputStreamReader()。 char[]stringAttribute=new char[20]。 (stringAttribute)。依次存入ABCDE五個(gè)屬性。為了方便輸出,定義一個(gè)字符型變量ma=’,’ 還有定義一個(gè)字符型數(shù)組brace[]為左右大括號(hào)。其次定義字符數(shù)組dependence[]來(lái)儲(chǔ)存輸入的函數(shù)依賴,modeposition[]來(lái)儲(chǔ)存輸入的模式分解。(stringAttribute)輸出就好了。 (2)為了確保輸入的信息是否正確,依次輸出(“您輸入的模式的屬性集為:”+new String(stringAttribute));(“您輸入的模式的屬性集為:”+new String(dependence));(“您輸入的模式的屬性集為:”+new String(modeposition));(輸入是否正確?y/n)。 Scanner scanner = new Scanner()。 char character = (char) ()。 if ((39。y39。)) { (go on)。continue label;} else { (error)。Break; }若是輸入正確, 見(jiàn)結(jié)果分析中的截圖4.Package TableChangepublic class Table { public static void main( String args[]) throws DBFException, IOException {DBFField field = new DBFField()。 (Table)。 // give a name to the field ( )。 // and set its type ( 5)。 // and length of the fieldDBFField fields[]=new DBFField[5]。fields[0] = new DBFField()。fields[0].setName(A)。fields[0].setDataType( )。fields[0].setFieldLength( 5)。再依次fields[1] = new DBFField()。fields[1].setName(B)。fields[1].setDataType( )。fields[1].setFieldLength( 5)。fields[2] = new DBFField()。fields[2].setName(C)。fields[2].setDataType( )。fields[2].setFieldLength( 5)。fields[3] = new DBFField()。fields[3].setName(D)。fields[3].setDataType( )。fields[3].setFieldLength( 5)。 fields[4] = new DBFField()。fields[4].setName(E)。fields[4].setDataType( )。fields[4].setFieldLength( 5)。public class Function{public static void main(string[] args){ //這個(gè)函數(shù)的目的是用來(lái)判斷用輸出表格中的數(shù)據(jù)Char [][] data=new char[3][5]。 //二維數(shù)組記錄表格中的數(shù)據(jù) (屬性 )。 for(int temp=0。temp5。temp++) ( +stringAttribute[temp])。 (\n)。 ()。這樣輸出的結(jié)果就是 屬性 A B C D E 表格的最左邊是函數(shù)依賴dependence[]若“屬性”屬于“模式”中的屬性,則填aj,否則填bij(dependence[0])。 for(int j=0。j5。j++) { if(stringAttribute[0]==dependence[j]) //判斷屬性是否屬于模式中的屬性,若是,則填aj data[0][j]=39。a[j]39。
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1