//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //設(shè)置模式 cbreak() noecho() keypad(stdscr, TRUE) //建立窗口 win = newwin(h, w, 3, 20) box(win, 0, 0) keypad(win, TRUE) wmove(win, cury, curx) mvaddstr(16, 1, "Press arrow keys to move the cursor within the window.\n") mvaddstr(17, 1, "Press q to quit.\n") refresh() wrefresh(win)
標(biāo)簽: EXIT_FAILURE initcurs initscr perror
上傳時(shí)間: 2013-12-20
上傳用戶:FreeSky
//初始化 initscr() //獲得屏幕尺寸 getmaxyx(stdscr, h, w) //畫背景 for(i=0 i<h i++) for(j=0 j<w j++){ mvaddch(i, j, ACS_CKBOARD) } refresh() //建立窗口 pad = newpad(80, 128) for(i=0 i<80 i++){ char line[128] sprintf(line, "This line in pad is numbered d\n", i) mvwprintw(pad, i, 0, line) } //刷新屏幕 refresh() prefresh(pad, 0, 1, 5, 10, 20, 45) for(i=0 i<50 i++){ prefresh(pad, i+1, 1, 5, 10, 20, 45) usleep(30000) } //等待按鍵 getch()
標(biāo)簽: getmaxyx initscr stdscr for
上傳時(shí)間: 2014-08-30
上傳用戶:龍飛艇
這是一個(gè)可以自動(dòng)尋找圖像中的長(zhǎng)方形, 正方形, 圓形, 菱形的程式
上傳時(shí)間: 2017-06-13
上傳用戶:duoshen1989
The code performs a number (ITERS) of iterations of the Bailey s 6-step FFT algorithm (following the ideas in the CMU Task parallel suite). 1.- Generates an input signal vector (dgen) with size n=n1xn2 stored in row major order In this code the size of the input signal is NN=NxN (n=NN, n1=n2=N) 2.- Transpose (tpose) A to have it stored in column major order 3.- Perform independent FFTs on the rows (cffts) 4.- Scale each element of the resulting array by a factor of w[n]**(p*q) 5.- Transpose (tpose) to prepair it for the next step 6.- Perform independent FFTs on the rows (cffts) 7.- Transpose the resulting matrix The code requires nested Parallelism.
標(biāo)簽: iterations performs Bailey number
上傳時(shí)間: 2014-01-05
上傳用戶:libenshu01
computer networking 計(jì)算機(jī)網(wǎng)路概論課本習(xí)題解答
標(biāo)簽: networking computer
上傳時(shí)間: 2014-05-27
上傳用戶:電子世界
dsp hư ớ ng dẫ n giao tiế p LCD code viế t bằ ng C
上傳時(shí)間: 2017-06-17
上傳用戶:xuanjie
hư ớ ng dẫ n về dsp tham khả o các cô ng cụ cơ bả n
上傳時(shí)間: 2014-12-01
上傳用戶:zhichenglu
dsp từ cơ bả n đ ế n nâ ng cao 1
上傳時(shí)間: 2014-12-05
上傳用戶:watch100
C語言是在70年代初問世的。一九七八年由美國(guó)電話電報(bào)公司(AT&T)貝爾實(shí)驗(yàn)室正式發(fā)表了C語言。同時(shí)由B.W.Kernighan和D.M.Ritchit合著了著名的“THE C PROGRAMMING LANGUAGE”一書。通常簡(jiǎn)稱為《K&R》,也有人稱之為《K&R》標(biāo)準(zhǔn)。但是,在《K&R》中并沒有定義一個(gè)完整的標(biāo)準(zhǔn)C語言,后來由美國(guó)國(guó)家標(biāo)準(zhǔn)學(xué)會(huì)在此基礎(chǔ)上制定了一個(gè)C 語言標(biāo)準(zhǔn),于一九八三年發(fā)表。通常稱之為ANSI C。
標(biāo)簽: PROGRAMMING Kernighan Ritchit THE
上傳時(shí)間: 2014-11-12
上傳用戶:思琦琦
網(wǎng)路流視頻的一些基礎(chǔ)概念 包含基礎(chǔ)視頻介紹 流視頻傳輸概念等
標(biāo)簽:
上傳時(shí)間: 2017-06-18
上傳用戶:qq21508895
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1