搜索资源列表
用c编写的N*N的螺旋矩阵源代码
- /* 实现效果: 1 2 6 7 15 3 5 8 14 16 4 9 13 17 22 10 12 18 21 23 11 19 20 24 25 */ #include <stdio.h> #define N 5 //阶数,即N*N的螺旋矩阵 void main() { int i, j, num=1, a[N][N]; for(i=0; i<=N/2; i++) &nb
C++程序设计语言实验三
- 实验三:C++编程入门 一、实验内容 1. 类模版。 2. 运算符重载。 3. 友元。 4. 继承。 二、实验题目 1, 设计一个类SavingsAccount,定义一个静态数据成员记录存款的年利率(rate),该类的每个成员都包含一个私有的数据成员balance,表示该成员当前的存款数额。提供一个成员函数CalMonthlyInterest(),用以计算月利息(用balance乘以rate再除以12),并将这个月利息加入balance中。提供一个静态成员函数ModifyRate(
Simulation_IIC.rar
- STM32 模拟I2C 驱动 工程师可以作为参考运用到实际项目开发中,Simulation_IIC\include\fonts.h Simulation_IIC\include\lcd.h Simulation_IIC\include\main.h Simulation_IIC\include\stm32f10x_conf.h Simulation_IIC\include\stm32f10x_it.h Simulation_IIC\project\cortexm2_macro.s
debugmalloc
- #include <stdlib.h> #include <string.h> #include <stdio.h> //#include <iostream> #include "debugmalloc.h" #include "dmhelper.h" /*Define the macro */ #define ALIGN 8 #define FENCE 0xDEADBEEF #define HE
getopt
- #ifdef HAVE_CONFIG_H #include "config.h" #endif #ifndef __STDC__ # ifndef const # define const # endif #endif
shunxu
- //顺序表的建立、查找、插入与删除 #include <stdio.h> #include <malloc.h> #include <stdlib.h> #define ListSize 100 //表最大长度 //结构定义 typedef struct SeqList { int node[ListSize] //存放表结点 int length //当前表长度 } SeqList //插入元素
include
- 一些经常遇到的.h文件,经过整理汇总,会有帮助的-Frequently encountered. H file, after finishing summary, there will be helpful
chaoshiguanli
- #include<stdlib.h> #include "dos.h" #include "graphics.h" #include "math.h" #define PI 3.1415926 #define NULL 0 #include<stdio.h> #include<string.h> -# Include <stdlib.h># Include dos.h# Include graphics.h# I
Mysqlrar
- mysql的出错代码表,根据mysql的头文件mysql/include/mysqld_error.h整理而成 -mysql error code table, according to the mysql header files mysql/include/mysqld_error.h collated from
4
- 四则运算 将算术表达式转换成后缀表达式后计算-#include<stdio.h> #include <stdlib.h>
2
- 单链表的插入和删除实验目的: 1、定义单链表的结点类型 2、通过单链表的定义掌握线性表的链式存储结构的特点; 3、熟悉单链表的建立以及插入、删除等基本操作。 -# include <stdio.h> # include<malloc.h> # define ND sizeof(struct List) struct List {int data struct List*next } void main() {
SIN
- 简易正弦波发生器 //精英团队提供 //控制信号 :P20 //数据线 :P0口-include <reg52.h> sbit WR2 = P2 ^ 0 unsigned char code sin[256]
lcd1602
- sbit DS1302_CLK = P3^4 //实时时钟 线引脚 sbit DS1302_IO = P3^3 //实时时钟数据线引脚 sbit DS1302_RST = P3^5 //实时时钟复位线引脚-#include <REG51.H> #include <intrins.h> //#include "LCD1602.h" //#include "DS1302.h" #define uint unsigned int #defi
dos
- 在cvm中实现dos的滚屏打印方式,并在cvm.h 的基础上增加了诸多实用的函数,包括一些图形界面的函数,所带的五笔输入法可以打词,比系统自带的只能打单个字的要方便很多。 只有dos.h文件是用户用的头文件; 用法如下: #include "dos.h" void dos() /*相当于main*/ { } 用户不能用main,因为main已经在dos.obj里了; dos.obj 的生成:dos.c 和其他的.h文件用于生成dos.obj ,只要 cvm.
Wii_Test
- 这是使用WiimoteLib将Wii遥控器作为基本输入设备的例子。其中包括红外线感应、加速度感应以及按键和LED控制。-This is the use of the Wii remote WiimoteLib as a basic input device examples. These include infra-red sensors, acceleration sensors, as well as buttons and LED control.
c-P-P-lexical-analysis
- c++词法分析很简单的代码#include<iostream.h> #include<fstream.h> #include<stdlib.h> #include<stdio.h> #include<string.h> #include<conio.h> #include<process.h> /*头文件*/ -c++ lexical analysis is very simple c
EVMDM365_BSL_revf
- 包含DM368官方标准源文件和头文件和基本的例程(include.h and.c files)
CvvImage
- 在OpenCV高版本里CvvImage类被取消,如果想继续沿用以前的CvvImage,其实很简单,只要搜到CvvImage的源代码(.h和.cpp)。在自己的工程里面增加一个新的CvvImage类就可以了。然后注意在view类头上加个#include "CvvImage.h"(In the OpenCV version, the CvvImage class is cancelled. If you want to continue to use the previous C
WiFi
- WiFi模块驱动头文件。使用时用#include<WIFI.h>(The WiFi module drives the header file. Use #include<WIFI.h> for use)
SD
- 驱动sd读卡器的头文件,使用时用#include<SD.h>.(The WiFi module drives the header file. Use #include<WIFI.h> for use)