A simple object to store a color and perform Hex/RGB conversions. methods included ColorSetRGB - ColorGetHex RGBToHex(r, g, b) hexToRGB(hex) ColorBlend(colorFrom, colorTo) ColorBlendGetColor(alpha) ColorBlendToString()
标签: ColorSetRGB conversions included methods
上传时间: 2017-04-29
上传用户:chenxichenyue
* This source demonstrates sending HTTP POST request to webserver from C++ * This uses sockets hence can be compiled on Linux, UNIX, Win
标签: This demonstrates webserver sending
上传时间: 2013-12-26
上传用户:haohaoxuexi
//初始化 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
//初始化 if(initscr() == NULL) { perror("initcurs") exit(EXIT_FAILURE) } cbreak() noecho() keypad(stdscr, TRUE) //建立菜单项 for(i=0 i<N_ITEMS i++){ items[i] = new_item(months[i], "") } //建立菜单 mymenu = new_menu(items) //设置为5行单列的菜单 set_menu_format(mymenu, 5, 1) set_menu_mark(mymenu, "*") //获得菜单的行数很列数 scale_menu(mymenu, &mrows, &mcols) //建立窗口和子窗口 win = newwin(mrows + 2, mcols + 2, 3, 30) keypad(win, TRUE) box(win, 0, 0) subwin = derwin(win, 0, 0, 1, 1) //设置菜单的窗口 set_menu_sub(mymenu, subwin) //在子窗口上放置菜单 post_menu(mymenu) refresh() wrefresh(win)
标签: EXIT_FAILURE initcurs initscr cbreak
上传时间: 2013-11-29
上传用户:小眼睛LSL
这个幻灯片讨论了adaboost的背景和现状;并且结合课程设计,讨论了实际应用adaboost的情况,包括Alpha参数调整,避免overfitting等。
上传时间: 2013-12-29
上传用户:181992417
BP神经网络程序,C语言源代码 如下: #include "iostream.h" #include "iomanip.h" #include "stdlib.h" #include "math.h" #include "stdio.h" #include "time.h" #include "fstream.h" #define N 120 //学习样本个数 #define IN 3 //输入层神经元数目 #define HN 2 //隐层神经元数目 #define ON 2 //输出层神经元数目 #define Z 20000 //旧权值保存-》每次study的权值都保存下来 double P[IN] //单个样本输入数据 double T[ON] //单个样本教师数据 double U11[IN][HN] //输入层至第一隐层权值 double V[HN][ON] //隐层至输出层权值 double X1[HN] //第一隐层的输入 double Y[ON] //输出层的输入 double H1[HN] //第一隐层的输出 double O[ON] //输出层的输出 double YU_HN1[HN] //第一隐层的阈值 double YU_ON[ON] //输出层的阈值 double err_m[N] //第m个样本的总误差 double a //学习效率 double alpha //动量因子
标签: include iostream iomanip stdlib
上传时间: 2017-06-15
上传用户:xinzhch
program to solve a finite difference discretization of Helmholtz equation : (d2/dx2)u + (d2/dy2)u - alpha u = f using Jacobi iterative method. COMMENTS: OpenMP version 3: 1 PR outside the iteration loop, 4 Barriers Directives are used in this code to achieve paralleism. All do loops are parallized with default static scheduling.
标签: discretization difference Helmholtz equation
上传时间: 2014-01-11
上传用户:bruce5996
java记事本,可以实现类似于win记事本的功能
上传时间: 2017-06-26
上传用户:yd19890720
电力系统多功能电表 CRC校验代码源程序大全,支持以下规约或电表 ALPHA规约,IEC1107规约,DLT645规约,EDMI规约,ION-ModBUS RTU规约,ModBus规约,Quad4规约
上传时间: 2014-01-03
上传用户:水口鸿胜电器
用多线程实现矩阵的相乘,这个是操作系统课程的一个简单实验,有linux和win下的实现
上传时间: 2013-12-11
上传用户:ANRAN