看板 YHSH9601 關於我們 聯絡資訊
這次的程式作業出的好突然 有點摸不清頭緒 以下是作業說明 提供一下意見吧 雖然我po的這個有賺批幣的嫌疑 不過我還是很希望大家能夠研究切磋 學業日益精進 沒辦法 誰叫王建民今天沒拿勝投.....( ′-`)y-~ C Language Programming: Homework #3 Modify the program in page 170 to be a recursive function. You are required to do the following: 1.You need to create a function in addition to the main function. 2.Your recursive function must accept any number of Boolean varaiables which is defined when you run the program (by using argc and argv). 3.The Boolean equation of the Boolean variables can be any one. The simplest Boolean equation can be the one that performs the And operation on all the Boolean variable. 4.Running examples: Assume TruthTable is the executable file after compilation a. TruthTable v1 & v2 & v3 b. TruthTable v1 & v2 & v3 & v4 ^ v5 c. TruthTable v1 & v2 | v3 | v4 d. TruthTable v1 + v2 + v3 + v4 + v5 + v6 > 3 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.110.121 ※ 編輯: a031rex 來自: 140.116.110.121 (04/17 21:23)
jessy1092:根據強者室友翻譯.. 輸入 Boolean 函數 (不管多長) 04/17 21:35
jessy1092:然後再輸出TRUTH TABLE 04/17 21:36
jessy1092:so 有 n 個變數的話.. 就有 2^n 個結果..@@ 04/17 21:36
jimmy0:樓上真是強者 04/17 22:31
mark8422:一樓是強者 04/18 00:15
louis06:強啊 04/18 02:07
khungd2:酷 04/18 03:00
h00286313:斃 04/18 13:21
h00286313:了 04/18 13:21
sopenny: 解 04/18 16:56