//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } //設置模式 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)
標簽: EXIT_FAILURE initcurs initscr perror
上傳時間: 2013-12-20
上傳用戶:FreeSky
width = gdk_pixbuf_animation_get_width(ani) height = gdk_pixbuf_animation_get_height(ani) current_frame_list = gdk_pixbuf_animation_get_frames(ani) pixmap = gdk_pixmap_new(w->window, width, height, -1) clean_pixmap = gdk_pixmap_new(w->window, width, height, -1) if (w->style->bg_pixmap[GTK_STATE_NORMAL]) { GdkPixmap *bg = w->style->bg_pixmap[GTK_STATE_NORMAL] GdkGC *gc GdkGCValues values values.tile = bg values.fill = GDK_TILED gc = gdk_gc_new_with_values(w->window, &values, GDK_GC_FILL|GDK_GC_TILE) gdk_gc_set_ts_origin(gc, (w->allocation.width - width)/2, (w->allocation.height-height)/2) gdk_draw_rectangle(clean_pixmap,gc, TRUE, 0, 0, width, height) gdk_gc_destroy(gc) } else { gdk_draw_rectangle(clean_pixmap, w->style->bg_gc[GTK_STATE_NORMAL], TRUE, 0, 0, width, height) }
標簽: gdk_pixbuf_animation_get_height gdk_pixbuf_animation_get_width ani height
上傳時間: 2013-12-26
上傳用戶:thinode
倉庫下線條碼源碼,可以接收紅外掃描條碼,報表輸出
標簽:
上傳時間: 2014-12-05
上傳用戶:qq521
delphi 商品管理系統,報表輸出,權限控制,本例為orale數據庫
上傳時間: 2017-06-12
上傳用戶:皇族傳媒
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.
標簽: iterations performs Bailey number
上傳時間: 2014-01-05
上傳用戶:libenshu01
Microsoft Visual C++ is a programming environment used to create applications for the Microsoft Windows operating systems . To use this ebook , you must have installed either Microsoft Visual C++ 6.0 or Microsoft Visual Studio 6.0.
標簽: Microsoft applications environment programming
上傳時間: 2017-06-18
上傳用戶:huyiming139
學會一個程式語言,是一回事兒;學會如何以此語言設計並實作出有效的程式,又是一回事兒。C++ 尤其如此,因為它很不尋常地涵蓋了罕見的威力和豐富的表現力,不但建立在一個全功能的傳統語言(C)之上,更提供極為廣泛的物件導向(object-oriented)性質,以及對templates 和exceptions(異常狀態)的支援。
標簽: 程式
上傳時間: 2013-12-09
上傳用戶:ANRAN
This is the project README file. Here, you should describe your project. Tell the reader (someone who does not know anything about this project) all he/she needs to know. The comments should usually include at least:
標簽: project the describe someone
上傳時間: 2017-06-22
上傳用戶:450976175
此包包含了眾多矩陣處理程序,能夠滿足矩陣處理的一般要求,由于將各功能分開到不同的“.cpp”文件中,故使用時需要用戶自行選取更換合適自己使用的“.cpp”文件。其中,矩陣功能有:輸出矩陣、矩陣轉置、矩陣歸一化、判斷矩陣對稱、判斷矩陣對稱正定、全選主元法求矩陣行列式、全選主元高斯(Gauss)消去法求一般矩陣的秩、用全選主元高斯-約當(Gauss-Jordan)消去法計算實(復)矩陣的逆矩陣、用“變量循環重新編號法”法求對稱正定矩陣逆、特蘭持(Trench)法求托伯利茲(Toeplitz)矩陣逆、實矩陣LU分解、用豪斯荷爾德(Householder)變換對一般m*n階的實矩陣進行QR分解、對稱正定陣的喬里斯基(Cholesky)分解及求其行列式值、一般實矩陣的奇異值分解、廣義逆的奇異值分解。
上傳時間: 2013-12-27
上傳用戶:duoshen1989
NN Functions a program in Lisp to demonstrate working of an artificial neuron. (Enter an input vector X and weight vector W. Calculate weighted sum XW. Transform this using signal or activation functions like logistic, threshold, hyperbolic-tangent, linear, exponential, sigmoid or some other functions (syntax provided) and display the output).
標簽: demonstrate artificial Functions program
上傳時間: 2013-12-30
上傳用戶:hfmm633