搜索资源列表
about-indias-temple
- 用于计算印度神庙的柱子问题,怎样子才能以最快速的方式算出其最优顺序。-#include stdio.h #include stdlib.h void move(char getone,char putone) { printf( c-> c\n ,getone,putone) } void hanoi(int n,char one,char two,char three) { if(n==1) move(one,thre
1
- 1. 编写并测试如下函数: void Add (int a[], int m, int b[], int n) 该函数将数组b的前n个元素追加到数组a的前m个元素后,假定数组a具有至少存放m+n个元素的空间。例如,如果数组a为{22,33,44,55,66,77,88,99},数组b为{20,30,40,50,60,70,80,90},则调用Add(a,5,b,3)后,将把数组a变为{22,33,44,55,66,20,30,40}。注意数组b并没有改变,而且数组a中只需改变n个元素。
2
- 1. 编写筛选查找素数函数: void sieve(bool isPrime[], int n) 其中isPrime[n]为一个布尔型数组,n为数组大小。由于2是第一个素数,所以设置isPrime[0]和isPrime[1]的值为false,并设置其余的元素初值为true。然后对从4到n-1的每一个i,判断i是否能够被2整除,如果i能够被2整除,则设置isPrime[i]为false。对从2到n/2的每一个可能的数值重复以上处理,当操作结束时,所有值为true的isPrime[i]所对应
wenjianjieyaheduxie
- java实现文件读写和解压 private static void testInput() { // D盘下有个Welcome.java文件,现在按字节读入: int a = 0 // int counter=0 FileInputStream f11 // 输入流 try {-import java.io.BufferedReader import java.io.BufferedWriter import java.io.File
danpianjidaocheleida
- 主程序如下 void main(void) { unsigned int valA,tempe=0,tempe1=0 unsigned char TempCyc //play = 0 Delay400Ms() //启动等待,等LCM讲入工作状态 LCMInit() //LCM初始化 // Delay5Ms() //延时片刻(可不要) // DisplayListChar(0, 0, mcustudio) // DisplayListChar(0
1122
- 其实操作系统在调用 main 函数时是传参数的,main 函数最标准的形式应该是 int main(int argc, char *argv[]),在第 6 节 “指向指针的指针与指针数组” 详细介绍。C 标准也允许 int main(void)这种写法,如果不使用系统传进来的两 个参数也可以写成这种形式。但除了这两种形式之外,定义 main 函数的其它写法都 是错误的或不可移植的。-The 88-bytes (704-bits) in the Configuration zon
SQL
- SQL连接,将Processing和MySQL进行连接,实现数据的互传-MySQL msql MySQL db MySQL dbparam void setup() { size( 100, 100 ) // this example assumes that you are running the // mysql server locally (on localhost ). String
Desktop
- package com.cqvie import android.graphics.* import android.graphics.Paint.Style public class Kuai { //public int HANG, LIE //最大行、最大列 public int hang, lie //?前行、?前列 public int BianChang //方?的?? public int YanSe //方?的?色
Cards-UI-master
- 卡片式View,支持单个卡片,item为卡片的ListView 使用: CardListView list = ... list.setCardTheme(CardTheme.Dark) CardAdapter adapter = new CardAdapter(this, android.R.color.holo_blue_dark) list.setAdapter(adapter) // Alternatively,
13)
- 解决libVLC双击无法全屏的问题 解决libVLC双击无法全屏的问题-void MainInterface::setVideoFullScreen( bool fs ) { b_videoFullScreen = fs if( fs ) { int numscreen = var_InheritInteger( p_intf, qt-fullscreen-screennumber ) if user h
Constractuor
- * 同一个包中不能声明同名的类 * 构造器(构造方法) * 定义:创建和初始化对象的方法(初始化属性) * 1.构造方法必须在类中声明 * 2.构造方法的方法名与类名一致,包含大小写 * 3.构造方法没有返回值 * 4.使用new运算调用构造方法创建对象 * 5.Java根据不同参数的构造方法识别不同的构造方法 * * 构造方法与方法比较 * 1.语法 * 构造方法:方法名与类名一致,没有返回值,使用new运算调用构造方法
183-simple-personal
- EnhancedSafeArray(void) This the default constructor. It should invoke the default constructor of the parent class. EnhancedSafeArray(int) This the single-parameter constructor. This should invoke the single-parameter constructor of the paren
stm32-12864-MENU
- stm32下用12864做的多级菜单,void LCD_WriteData(u8 data) { CheckBusy() RW=0 //? RS=1 //?? DATAOUT12864(data) CE=1 delay_us(5) CE=0 }-Made of 12864 under the stm32 multilevel menu
VMA
- 虚拟内存管理实验。 在Linux环境下编写一个内核模块,分别实现如下几个函数: static void mtest_dump_vma_list(void):依次列出当前进程所占用的虚拟内存空间各段的读、写或执行权限。 static void mtest_find_vma(unsigned long addr):查找出虚拟地址addr所在的vma,并通过printk打印该段的起始地址、终止地址和段标志等信息。 static void
shiyan3
- 1.2 系统功能要求 (1)、设计一款6路或以上的抢答器,这次设计采用了8路抢答器; (2)、 设计一个抢答控制开关(开始抢答后才允许答题者抢答),供主持人用; (3)、设定抢答时间限制,超过时间后,该题作废; (4)设定答题时间 (5)、数字LED显示当前答题者号数 ; (6)、其他功能:有犯规(未按开始键就抢答的)时显示其号码。 -1.2 the system functional requirements (1), design of a road 6 or
libusb-1.0.9
- LIBUSB 最新库源码 int libusb_init(libusb_context **ctx) void libusb_exit(libusb_context *ctx) 等-LIBUSB latest Treasury source int libusb_init (libusb_context** ctx) void libusb_exit (libusb_context* ctx) etc.
ghash-clmulni-intel_asm
- void clmul_ghash_update(char dst, const char src, unsigned int srclen,.
try11
- 冒泡排序 经典算法 计算复杂度 O(N2) VOID MAIN函数包括 -Classic bubble sort algorithm complexity of O (N2) VOID MAIN functions include
try12
- try12文件描述:堆排序 经典算法 计算复杂度 O(NLOGN) VOID MAIN函数包括 -try12 File Descr iption: Classic heap sort algorithm complexity O (NLOGN) VOID MAIN functions include
try13
- try13文件描述: 快速排序 经典算法 计算复杂度 O(NLOGN) VOID MAIN函数包括 -try13 File Descr iption: The classic quick sort algorithm complexity O (NLOGN) VOID MAIN functions include