開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
dev c++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
問題(Question):
輸入bit為1時,輸出該bit就要有0和一的組合,若輸入bit為0時,不CARE
如輸入00001111
輸出 00000000,00000001,00000010,00000011...00001111
若輸入為1000001
輸出 00000000,00000001,10000000,10000001
function prototype:
void pattern_gen(unsigned char inputmask,char *outputstr)
{
...implement this...
}
main()
{
...implement this...
}
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
小弟目前卡關當中...
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 111.249.151.117
推
09/07 14:59, , 1F
09/07 14:59, 1F
→
09/07 14:59, , 2F
09/07 14:59, 2F
→
09/07 15:02, , 3F
09/07 15:02, 3F
→
09/07 22:37, , 4F
09/07 22:37, 4F
→
09/09 09:38, , 5F
09/09 09:38, 5F
→
09/09 09:38, , 6F
09/09 09:38, 6F
討論串 (同標題文章)