搜索资源列表
PV
- 读者写者问题,共享原则如下:1、读/写互斥访问;2、写/写互斥访问;3、允许多个读者同时对文件进行访问。-semaphore rmutex=1,rwmutex=1 int count=0 Cobegin reader: writer:
2
- 1.请编写一个函数void fun(char *tt,int pp[]),统计在tt字符中"a"到"z"26各字母各自出现的次数,并依次放在pp所指的数组中。 2.下列程序定义了n×n的二维数组,并在主函数中赋值。请编写函数fun,函数的功能使求出数组周边元素的平均值并作为函数值返回给主函数中的s。-1. Please write a function void fun (char* tt, int pp []), statistics tt characters " a&qu
A_barycenter_based_fast_thinning_algorithm
- 分析快速细化算法和 OPTA 细化算法不足产生的内在原因 ,提出一种新的基于重心的快速细化算法.该算 法根据被细化图像的特点 ,用密度重心快速将纹线细化到 3 个像素宽度内 ,计算 4 邻域拓扑实现彻底细化.仿真结 果表明 ,在细化效率方面 ,该算法一次遍历删除超过一半的大量冗余像素 ,是快速细化算法的 3~7 倍 在细化要求 方面 ,该算法可达到绝对单像素、 光滑无毛刺 ,并能保持端点不被吞噬 ,能够很好地满足图像细化的要求. -The int rinsic origin of
pop3
- 收邮件的协议有两种,一种是POP3,另外一种较为高级的协议是IMAP4,有的邮箱使用的是POP3协议,比如网易163免费邮箱、新浪免费邮箱、搜狐免费邮箱,有的邮箱使用的是IMAP4协议,比如Gmail免费邮箱,有的两种都可以,比如QQ邮箱。这些免费邮箱都需要做一些设置(例如选择开启 POP3)才能开启从客户端(比如自己做的接收邮件的程序)接收邮件的功能-private Pop3ConnectionState Connect(string host, int port, SslHandShake
list.c
- C++ #include <fstream>y using std::ifstream int main() { char line[81] char fname[81] cout << "Enter file name: " cin >> fname -c plus
c-sj-qw
- 拓展部分的代码 #include "graphics.h" int main() { int gdriver, gmode gdriver=VGA -To expand part of the code# include " graphics.h int main () {int gdriver gmode gdriver = VGA
bar
- 函数名: bar 功 能: 画一个二维条形图 用 法: void far bar(int left, int top, int right, int bottom) -Function name: bar function: draw a two-dimensional bar usage: void far bar (int left, int top, int right, int bottom)
bar3d
- 函数名: bar3d 功 能: 画一个三维条形图 用 法: void far bar3d(int left, int top, int right, int bottom, int depth, int topflag)-Function name: bar3d function: draw a three-dimensional bar graph usage: void far bar3d (int left, int top, int right, int bottom,
bdos
- 函数名: bdosptr 功 能: DOS系统调用 用 法: int bdosptr(int dosfun, void *argument, unsigned dosal) -Function name: bdosptr Function: DOS system call usage: int bdosptr (int dosfun, void* argument, unsigned dosal)
AD7880
- 基于stm32f103的ad7880采集程序-#include"sys.h" #define CS_AD1 PDout(15) #define CONVST_AD1 PDout(14) #define RD_AD1 PDout(13) #define BUSY_AD1 PDin(12) #define CS_AD2 PGout(15) #define CONVST_AD2 PGout(14) #define RD_AD2 PGout(13) #defi
Bai-Tap-Chuyen-Tin
- Bai 2.18cin>>n int scs=SoChuSo(n) for(int i=n-9*scs i<=n i++) { if(KiemTra(i)) { cout<<i return 0 } } cout<<0
A-simple-procedure
- #include<stdio.h> int main() { printf(“this is a c program.\n”) return 0 }-A simple procedure
CCC
- 题目:#if #ifdef和#ifndef的综合应用。 1. 程序分析: 2.程序源代码: 复制代码 代码如下: #include stdio.h #include conio.h #define MAX #define MAXIMUM(x,y) (x>y)?x:y #define MINIMUM(x,y) (x>y)?y:x void main() { int a=10,b=20 #ifdef MAX printf( \
HUDDSNUN
- 题目:#if #ifdef和#ifndef的综合应用。 程序源代码: #include stdio.h #include conio.h #define MAX #define MAXIMUM(x,y) (x>y)?x:y #define MINIMUM(x,y) (x>y)?y:x void main() { int a=10,b=20 #ifdef MAX printf( \40: The larger one is d\n