看板 b93902HW 關於我們 聯絡資訊
※ 引述《civelant (阿痕)》之銘言: : ※ 引述《civelant (阿痕)》之銘言: : : 想請問一下那個程式 : : 我照課本上的寫法 : : 然後用 : : lex hw1.l : : cc -ll lex.yy.c : : 為何會出現錯誤訊息 : : 說 `vowel' undeclared (first use in this function) : : (vowel是我在regular definitions那部份定義的東西) : : 明明之前就有定義阿 : : 是我哪裡寫錯了嗎? : 請問一下測資要從鍵盤輸入要怎麼改 : 像投影片上寫的 a.out < data : 這似乎是把測資寫在data這個檔裡面 : 那如果要從鍵盤直接輸入測資 要怎麼用? 3.3.5(b) 有人可以翻譯一下嗎? All strings of lowercase letters in which the letters are in ascending lexicographic order 意思是像 adhxz 這樣的嗎? 那如果aadhyz這樣可以嗎?(就有兩個一樣的字連續) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 203.70.6.73
JY:我認為 aadhyz 可以,因為它沒有違反 ascending lex. order 03/20 21:13
nameofevil:我以為aa 應該是 not decending order @__@? 03/21 01:32
zdk7r:aa應該是不符合 proper decending order 03/21 01:39