if (pfile() == 0) unlink(inname) else fprintf(stderr, "%s: I/O Error -- File unchanged\n", inname) fclose(outfile) fclose(infile) } exit(0)
資源簡介:if (pfile() == 0) unlink(inname) else fprintf(stderr, "%s: I/O Error -- File unchanged\n", inname) fclose(outfile) fclose(infile) } exit(0)
上傳時(shí)間: 2015-03-12
上傳用戶:l254587896
資源簡介:ADC10, Sample A0, AVcc Ref, Set P1.0 if A0 > 0.5*AV
上傳時(shí)間: 2013-12-01
上傳用戶:pinksun9
資源簡介:ADC10, Sample A0, 1.5V Ref, Set P1.0 if A0 > 0.2V
上傳時(shí)間: 2013-12-11
上傳用戶:himbly
資源簡介:計(jì)算簡單字符串的java類 例如:IF:(1>0)TRUE(1)
上傳時(shí)間: 2014-01-17
上傳用戶:refent
資源簡介:AT89C2051驅(qū)動步進(jìn)電機(jī)的電路和源碼:AT89C2051驅(qū)動步進(jìn)電機(jī)的電路和源碼 程序:stepper.c stepper.hex/* * STEPPER.C * sweeping stepper's rotor cw and cww 400 steps * Copyright (c) 1999 by W.Sirichote */#i nclude c:\mc5151io.h /* include i/o heade...
上傳時(shí)間: 2013-11-21
上傳用戶:boyaboy
資源簡介:#include<stdio.h> #define TREEMAX 100 typedef struct? BT { char data; BT *lchild; BT *rchild; }BT; BT *CreateTree(); void Preorder(BT *T); void Postorder(BT *T); void Inorder(BT *T); void Leafnum(BT *T); void Nodenum(BT *T); int TreeDep...
上傳時(shí)間: 2020-06-11
上傳用戶:ccccy
資源簡介:基于單片機(jī)的密碼鎖設(shè)計(jì),內(nèi)含工程文件和源碼文件以及電路圖#include "config.h"?void main(){??? LCD_Initial();????????????????????? ?//lcd初始化??? init_sys();???????????????????????? ?//硬...
上傳時(shí)間: 2022-07-17
上傳用戶:默默
資源簡介:it is impotant to somepeople,all in good time,if you see it,must love it !thank you i f you see it,must love it !thank you
上傳時(shí)間: 2014-01-16
上傳用戶:xfbs821
資源簡介:(1) This pin may function as either a JTAG port or a user I/O pin. If the device is configured to use the JTAG ports for in-system programming, this pin is not available as a user I/O pin. (2) The user I/O pin count includes dedicated inp...
上傳時(shí)間: 2014-01-27
上傳用戶:qwe1234
資源簡介:設(shè)定a為N(0,1)的500個(gè)隨機(jī)數(shù)和i長為500,以n=8、16、64.分別調(diào)用u_pcm.m ,從中計(jì)算量化誤差f=a-a_quan并繪圖,分別輸出各樣值的量化誤差圖形。
上傳時(shí)間: 2014-01-17
上傳用戶:偷心的海盜
資源簡介:One dimensional wavelet transform s input data from file dataIn.txt h[] : -1 0 1 2 g[] : 1 1 0 3 c[] : 1 4 2 5 4 6 7 8
上傳時(shí)間: 2016-08-24
上傳用戶:gaojiao1999
資源簡介:本程序利用直接端口 I/O 操作來訪問并行口。支持操作系統(tǒng): Windows 98/ME/2000/XP/2003 程序編譯環(huán)境: C++ Builder 5.0 / C++ Builder 6.0。
上傳時(shí)間: 2016-10-09
上傳用戶:moerwang
資源簡介:if you want to it you can download and i m a student,this is a paper,I m wish it can help you.
上傳時(shí)間: 2014-01-16
上傳用戶:氣溫達(dá)上千萬的
資源簡介:單片機(jī)模擬串口通訊 I/O口模擬232通訊程序 使用兩種方式的C程序 占用定時(shí)器0
上傳時(shí)間: 2014-01-21
上傳用戶:英雄
資源簡介:I/O并行口直接驅(qū)動LED顯示 利用AT89S51單片機(jī)的P0端口的P0.0-P0.7連接到一個(gè)共陰數(shù)碼管的a-h(huán)的筆段上,數(shù)碼管的公共端接地。在數(shù)碼管上循環(huán)顯示0-9數(shù)字,時(shí)間間隔0.2秒。
上傳時(shí)間: 2017-05-17
上傳用戶:84425894
資源簡介://9488定時(shí)器B功能測試 9488定時(shí)器B功能測試B:DAMI調(diào)試通過: 9488 8位定時(shí)器B的使用 有關(guān)的I/O為三個(gè):TBPWM(輸出)(P1.0) 模式有:間隔定時(shí)功能,PWM模式 有定時(shí)中斷:定時(shí)器B溢出中斷
上傳時(shí)間: 2017-06-01
上傳用戶:ryb
資源簡介:用單片機(jī)AT89C51改造普通雙桶洗衣機(jī):AT89C2051作為AT89C51的簡化版雖然去掉了P0、P2等端口,使I/O口減少了,但是卻增加了一個(gè)電壓比較器,因此其功能在某些方面反而有所增強(qiáng),如能用來處理模擬量、進(jìn)行簡單的模數(shù)轉(zhuǎn)換等。本文利用這一功能設(shè)計(jì)了一個(gè)數(shù)字電容...
上傳時(shí)間: 2013-12-31
上傳用戶:ming529
資源簡介://獲得當(dāng)前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判斷是否支持該模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //取得信息 width = v...
上傳時(shí)間: 2014-12-19
上傳用戶:maizezhen
資源簡介:#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 100 int iNumOfStu=0; struct score ??{ ??float math; ??float english; ??float computer; ??}; struct student ??{ ??int numb...
上傳時(shí)間: 2019-06-08
上傳用戶:啊的撒旦
資源簡介:#include<stdio.h> #include<string.h> #include<stdlib.h> #define N 100 int iNumOfStu=0; struct score ??{ ??float math; ??float english; ??float computer; ??}; struct student ??{ ??int numb...
上傳時(shí)間: 2019-06-09
上傳用戶:啊的撒旦
資源簡介:C51原理及相關(guān)基礎(chǔ)入門知識 第一章:C51 流程控制語句一、分類條件語句、循環(huán)語句和開關(guān)語句。下面將對這些語句作詳細(xì)介紹。(1) 條件語句條件語句的一般形式為:if(表達(dá)式)語句 1;else語句 2;上述結(jié)構(gòu)表示: 如果表達(dá)式的值為非0(TURE)即真, 則執(zhí)行語句1, 執(zhí)...
上傳時(shí)間: 2013-10-24
上傳用戶:Sophie
資源簡介:有兩種方式可以讓設(shè)備和應(yīng)用程序之間聯(lián)系:1.?通過為設(shè)備創(chuàng)建的一個(gè)符號鏈;2.?通過輸出到一個(gè)接口WDM驅(qū)動程序建議使用輸出到一個(gè)接口而不推薦使用創(chuàng)建符號鏈的方法。這個(gè)接口保證PDO的安全,也保證安全地創(chuàng)建一個(gè)惟一的、獨(dú)立于語言的訪問設(shè)備的方法。一個(gè)...
上傳時(shí)間: 2013-10-17
上傳用戶:gai928943
資源簡介:16 16點(diǎn)陣顯示漢字原理及顯示程序 #include "config.h" #define??????????????? DOTLED_LINE_PORT??????? PORTB #define??????????????? DOTLED_LINE_DDR??????????????? DDRB #define???????...
上傳時(shí)間: 2013-11-18
上傳用戶:mnacyf
資源簡介:溫濕度傳感器 sht11 仿真程序 sbit?out =P3^0;?//加熱口 ?//sbit?input =P1^1;//檢測口 ?//sbit?speek =P2^0;//報(bào)警 ?sbit?clo =P3^7;//時(shí)鐘 ?sbit?ST =P3^5;//開始 ?sbit?EOC =P3^6;//成功信號 ?sbit?gwei =P3^4;//個(gè)位 ?sbit?swe...
上傳時(shí)間: 2013-11-07
上傳用戶:我們的船長
資源簡介:溫濕度傳感器 sht11 仿真程序 sbit?out =P3^0;?//加熱口 ?//sbit?input =P1^1;//檢測口 ?//sbit?speek =P2^0;//報(bào)警 ?sbit?clo =P3^7;//時(shí)鐘 ?sbit?ST =P3^5;//開始 ?sbit?EOC =P3^6;//成功信號 ?sbit?gwei =P3^4;//個(gè)位 ?sbit?swe...
上傳時(shí)間: 2013-10-16
上傳用戶:黃蛋的蛋黃
資源簡介:該程序模擬UNIX中save與resume函數(shù),并介紹在VC中如何使用匯編進(jìn)行機(jī)器級的操作. 主函數(shù)很簡單首先引入兩個(gè)外部函數(shù),extern "C"表示按傳統(tǒng)C命名習(xí)慣.函數(shù)save將程序指針保存在(*s)中并返回0,為什么有 if(save(&sp)){...} if后的語句看起來永遠(yuǎn)都不會被執(zhí)行...
上傳時(shí)間: 2015-09-10
上傳用戶:變形金剛
資源簡介:89s51單片機(jī)控制繼電器! 由s51io口輸出低電平使三極管導(dǎo)通 從而控制繼電器閉合 #include <reg51.H> sbit P0_0=P0^0 sbit P1_7=P1^7 main() {while(1) { if (P0_0==0) P1_7==1 } }
上傳時(shí)間: 2013-12-17
上傳用戶:xsnjzljj
資源簡介:成績顯示三個(gè)部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread printf("請輸入分?jǐn)?shù)\n") scanf("%f",&gread) if(gread>=80&&gread<=100) printf("成績?yōu)锳\n") else if(gread>=60&&gread<=79) { printf("...
上傳時(shí)間: 2014-01-15
上傳用戶:waizhang
資源簡介:function [U,center,result,w,obj_fcn]= fenlei(data) [data_n,in_n] = size(data) m= 2 % Exponent for U max_iter = 100 % Max. iteration min_impro =1e-5 % Min. improvement c=3 [center, U, obj_fcn] = fcm(data, c) for i=1:max_iter...
上傳時(shí)間: 2013-12-18
上傳用戶:ynzfm
資源簡介://獲得當(dāng)前的模式 oldmode = vga_getcurrentmode[] //初始化 vga_init[] //判斷是否支持該模式 if[vga_hasmode[mode]] vga_setmode[mode] else { printf["No such mode\n"] exit[1] } //獲得當(dāng)前的模式 m...
上傳時(shí)間: 2017-03-24
上傳用戶:ecooo