虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

COUNT

  • 一个很好的排序算法

    一个很好的排序算法,void shaker(item ,COUNT)

    标签: 排序算法

    上传时间: 2014-01-11

    上传用户:hustfanenze

  • // // Histogram Sample // This sample shows how to use the Sample Grabber filter for video image p

    // // Histogram Sample // This sample shows how to use the Sample Grabber filter for video image processing. // Conceptual background: // A histogram is just a frequency COUNT of every pixel value in the image. // There are various well-known mathematical operations that you can perform on an image // using histograms, to enhance the image, etc. // Histogram stretch (aka automatic gain control): // Stretches the image histogram to fill the entire range of values. This is a "point operation," // meaning each pixel is scaled to a new value, without examining the neighboring pixels. The // histogram stretch does not actually require you to calculate the full histogram. The scaling factor // is calculated from the minimum and maximum values in the image.

    标签: Sample Histogram Grabber sample

    上传时间: 2013-12-15

    上传用户:ryb

  • simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu

    simulates coin tossing. Let the program toss a coin each time the user chooses the “Toss Coin” menu option. COUNT the number of times each side of the coin appears. Display the results. The program should call a separate method flip that takes no arguments and returns false for tails and true for heads. [ Note: If the program realistically simulates coin tossing, each side of the coin should appear approximately half the time.]

    标签: the coin simulates chooses

    上传时间: 2014-08-30

    上传用户:pompey

  • K3:--- P1.6 K4:--- P1.7 BEEP:--- P3.7 K3 --- 控制按键 K4 --- 清零按键 开机显示: SECOND-CLOCK 0 TIM

    K3:--- P1.6 K4:--- P1.7 BEEP:--- P3.7 K3 --- 控制按键 K4 --- 清零按键 开机显示: SECOND-CLOCK 0 TIME 00:00:00:00 K3 --- 控制按键: 第一次按下时,开始计时。 显示 BEGIN COUNT 1 TIME 00:00:01:88 第二次按下时,暂停计时。 显示 PAUST COUNT 2 TIME 00:00:01:88 第三次按下时,累计计时。

    标签: SECOND-CLOCK K3 BEEP K4

    上传时间: 2016-05-10

    上传用户:清风冷雨

  • Java: 在n 张扑克牌中找出顺子 题目是这样的:有n张扑克牌

    Java: 在n 张扑克牌中找出顺子 题目是这样的:有n张扑克牌,每张牌的取值范围是:2,3,4,5,6,7,8,9,10,J,Q,K,A。在这n张牌中找出顺子(5张及5张以上的连续的牌),并将这些顺子打印出来。 思路:我的思路其实很简单,首先就是要去掉重复的牌,因为同样的顺子之算一个,显然JAVA中的Set很适合这个工作。同时又需要对这些牌进行排序,毫无疑问就是TreeSet了。然后从小到大遍历这些牌,并设置一个计数器COUNT。若发现连续的牌,则COUNT++;若发现不连续的,分2中情况:若COUNT>4,则找到了一个顺子,存起来;反之则什么都不做。然后COUNT=1,从新开始找顺子。下面就是代码:

    标签: Java

    上传时间: 2013-12-22

    上传用户:hewenzhi

  • 操作系统课程设计_进程调度演示源程序 #include "stdio.h" #include "stdlib.h" #include "string.h" typedef struct

    操作系统课程设计_进程调度演示源程序 #include "stdio.h" #include "stdlib.h" #include "string.h" typedef struct node { char name[10] /*进程标识符*/ int prio /*进程优先数*/ int round /*进程时间轮转时间片*/ int cputime /*进程占用CPU时间*/ int needtime /*进程到完成还要的时间*/ int COUNT /*计数器*/ char state /*进程的状态*/ struct node *next /*链指针*/ }PCB

    标签: include typedef stdlib string

    上传时间: 2016-08-09

    上传用户:凤临西北

  • 用多线程同步方法解决读者阅览问题 1) 每个读者进入阅览室后

    用多线程同步方法解决读者阅览问题 1) 每个读者进入阅览室后,即时显示“Entered” 及其线程自定义标识,还同时显示阅览室共有几名顾客及其所坐的位置。 2) 至少有10个读者,每人阅览至少3秒钟。 3) 多个读者须共享操作函数代码。 2总的设计思想及系统平台、语言、工具: 设计思想:程序设定的是10个读者和5个座位,对读者进行编号,依次进入阅览室读书,为每一座位列一表目,包括座号和读者号等,读者离开时要登出,即消掉登记的信息。 系统平台:LINUX 语言:C语言 工具:vi编辑器、gcc编译器 操作系统:linux操作系统 调试工具:edit、masm、link、debug. 3数据结构与模块说明(功能与流程图) 数据结构 int COUNT=0 //记录阅览室读者数量 sem_t full //定义阅览室座位信号量 int seat[5] //用数组表示座位 pthread_t reader[10] //定义读者线程 pthread_mutex_t mutex //定义互斥量 3.2功能说明 可以标识读者,随机为读者设置在阅览室的读书时间  可以显示阅览室读者的人数  可以显示读者所坐的位置,座位状态以及列出空座位

    标签: 多线程同步

    上传时间: 2016-08-10

    上传用户:zsjzc

  • The P89LPC938 is a single-chip microcontroller, available in low cost packages, based on a high per

    The P89LPC938 is a single-chip microcontroller, available in low cost packages, based on a high performance processor architecture that executes instructions in two to four clocks, six times the rate of standard 80C51 devices. Many system-level functions have been incorporated into the P89LPC938 in order to reduce component COUNT, board space, and system cost.

    标签: microcontroller single-chip available packages

    上传时间: 2013-12-04

    上传用户:远远ssad

  • // -*- Mode: Verilog -*- // Filename : wb_master.v // Description : Wishbone Master Behavorial //

    // -*- Mode: Verilog -*- // Filename : wb_master.v // Description : Wishbone Master Behavorial // Author : Winefred Washington // Created On : 2002 12 24 // Last Modified By: . // Last Modified On: . // Update COUNT : 0 // Status : Unknown, Use with caution! // Description Specification // General Description: 8, 16, 32-bit WISHBONE Master // Supported cycles: MASTER, READ/WRITE // MASTER, BLOCK READ/WRITE // MASTER, RMW // Data port, size: 8, 16, 32-bit // Data port, granularity 8-bit // Data port, Max. operand size 32-bit // Data transfer ordering: little endian // Data transfer sequencing: undefined

    标签: Description Behavorial wb_master Filename

    上传时间: 2014-07-11

    上传用户:zhanditian

  • at91ARM9200串口例程

    at91ARM9200串口例程,希望对大家有所帮助。 使用方式: TestCom /dev/ttyS* -w COUNT data TestCom /dev/ttyS* -r

    标签: 9200 ARM at 91

    上传时间: 2016-11-21

    上传用户:13160677563