看板 EE_DSnP 關於我們 聯絡資訊
請問一下,Spec 上說: Each line represents an input pattern, where its string length should match the number of circuit inputs. The patterns, of course, should contain only '0' and '1' and no space character is allowed between the input assignments in a pattern. 感覺起來好像: 1. 不能有空白行 (Each line represents an input pattern) 2. 每一行的長度一定等於 PI 的數量 (string length matchs the number of circuit inputs) 3. 每一行一定只有 '0' 或 '1' (因為 2.) 可是,ref prog好像是用類似 "cin >> string_var" 的方式,乎略了換行和空白 Ex1: // #PI = 1 -------- 1 1 -------- ref prog: No error my prog: Pattern(1 1) length(3) does not match Ex2: -------- 1 -------- ref prog: No error my prog: Pattern() length(0) does not match Ex3 -------- 1 -------- ref prog: No error my prog: Pattern( 1) length(2) does not match 可以請問一下 Pattern File 的詳細格式嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.228.152.196
scuendless:之前好像有說可以忽略pattern前後的空白(pattern間不可 01/16 12:37