#include<stdio.h> void main(void) {int n,k,derivata,a[10],i printf("n=") scanf(" d",&n) for(i=0 i<=n i++) { printf("a[ d]=",i) scanf(" d",&a[i]) } printf("k=") scanf(" d",&k) for(derivata=1 derivata<=k derivata++) { for(i=0 i<=n i++) a[i]=a[i]*(n-i) n-- for(i=0 i<=n i++) printf(" d ",a[i]) printf("\n") }}
資源簡介:#include<stdio.h> void main(void) {int n,k,derivata,a[10],i printf("n=") scanf(" d",&n) for(i=0 i<=n i++) { printf("a[ d]=",i) scanf(" d",&a[i]) } printf("k=") scanf(" d",&k) for(derivata=1 derivata<=k derivata++) { f...
上傳時間: 2017-09-17
上傳用戶:duoshen1989
資源簡介:c語言中寫二進制數。引用例子: #define Bin(n) LongToBin(0x##n##l) void main(void) { unsigned char c c = Bin(10101001) // c = 0xA9 }
上傳時間: 2015-04-13
上傳用戶:a6697238
資源簡介:void Main(void) { sys_init() // Initial 44B0X s Interrupt,Port and UART // user interface uart_printf("\n\r Led Test Example\n") for( ) { led_test() } }
上傳時間: 2014-01-18
上傳用戶:牧羊人8920
資源簡介:void Main(void) { sys_init() // Initial 44B0X s Interrupt,Port and UART wdtimer_test() // test start }
上傳時間: 2013-12-29
上傳用戶:koulian
資源簡介:溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf(...
上傳時間: 2014-11-10
上傳用戶:wpwpwlxwlx
資源簡介:溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf(...
上傳時間: 2013-12-12
上傳用戶:亞亞娟娟123
資源簡介:成績顯示三個部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread printf("請輸入分數\n") scanf("%f",&gread) if(gread>=80&&gread<=100) printf("成績為A\n") else if(gread>=60&&gread<=79) { printf("...
上傳時間: 2014-01-15
上傳用戶:waizhang
資源簡介:指定一個數字轉換回十進位,八進位,十六進位#include <stdio.h> #include <stdlib.h> int main(void) { int number =89 printf("數字 %d\n",number) /* %d 為十進位輸出格式*/ printf("八進位為 %o\n",number) /* %o 為八進位輸出格式*/ ...
上傳時間: 2013-11-29
上傳用戶:tyler
資源簡介:#include <stdio.h> #include<math.h> void pid_init() void pid_tune() void pid_setinteg() void pid_bumpless() float pid_calc() void main()
上傳時間: 2016-04-19
上傳用戶:851197153
資源簡介:河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,int) int main(void) { int n int option printf("題目二:河內塔問題\n") printf("請輸入要搬移的圓盤數目\n") scanf("%d",&n) printf("...
上傳時間: 2016-12-08
上傳用戶:努力努力再努力
資源簡介:#include<stdio.h> #include<string.h> #include<limits.h> #include<unistd.h> #include<sys/types.h> #define PROMPT_STRING "[myshell]$" #define QUIT_STRING "exit\n" static char inbuf[MAX_CANON] char * g_ptr char * g_lim exter...
上傳時間: 2016-12-31
上傳用戶:colinal
資源簡介::#include <stdlib.h>#include <stdio.h>#include <time.h> void InsertSort(int a[],int *(k1),int *(k2))//0:直接插入排序{ int i,j int temp *(k1)=0 *(k2)=0 for(i=0 i<149 i++) { temp=a[i+1] *(k2)++ ...
上傳時間: 2014-11-30
上傳用戶:362279997
資源簡介:#include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h> #include <malloc.h> FILE *fp /*////////////////////////////////////////////////////////////////////////////// This is a pretreatment. /////////////////...
上傳時間: 2015-07-16
上傳用戶:ynsnjs
資源簡介:#include"c1.h" typedef int ElemType #include"c2-2.h" #include"bo2-4.cpp" void MergeList_CL(LinkList &La,LinkList Lb) { LinkList p=Lb->next Lb->next=La->next La->next=p->next free(p) La=Lb }
上傳時間: 2016-03-03
上傳用戶:rishian
資源簡介:linux 下串口編程 #include <stdio.h> /*標準輸入輸出定義*/ #include <stdlib.h> /*標準函數庫定義*/ #include <unistd.h> /*Unix標準函數定義*/ #include <sys/types.h> /**/ #include <sys/stat.h> /**/ #include <fcntl.h> /*文件控制定義*/ #incl...
上傳時間: 2014-01-18
上傳用戶:xjz632
資源簡介:fft源代碼,#include "f2407_c.h" #include "math.h" #define N 32 // FFT變換的點數 extern void fft(void); extern void resave(void); interrupt void phantom(void); void sysinit(void); extern int input[2*N];
上傳時間: 2016-06-28
上傳用戶:LouieWu
資源簡介:client socket include <sys/types.h> include <sys/socket.h> include <stdio.h> include <netinet/in.h> include <arpa/inet.h> include <unistd.h> int main() { int sockfd int len struct sockaddr_in address int result cha...
上傳時間: 2017-07-29
上傳用戶:wab1981
資源簡介:用C51寫的普通拼音輸入法源程序代碼:原作使用了一個二維數組用以查表,我認為這樣比較的浪費空間,而且每個字表的索引地址要手工輸入,效率不高。所以我用結構體將其改寫了一下。就是大家現在看到的這個。? 因為代碼比較的大,共有6,000多漢字,這樣就得要12...
上傳時間: 2013-10-30
上傳用戶:cainaifa
資源簡介://------------------------------------------------------------------------------------//此程序為ADC轉換程序,可以選擇向ADC0BUSY寫1或用定時器0,1,2,3作為ADC的啟動信號。////----------------------------------------------------------------------...
上傳時間: 2013-10-13
上傳用戶:SimonQQ
資源簡介:C++完美演繹 經典算法 如 /* 頭文件:my_include.h */ #include <stdio.h> /* 展開C語言的內建函數指令 */ #define PI 3.1415926 /* 宏常量,在稍后章節再詳解 */ #define circle(radius) (PI*radius*radius) /* 宏函數,圓的面積 */ /* 將比較數值大小的...
上傳時間: 2014-01-17
上傳用戶:epson850
資源簡介:感知器的VC實現#include "percept.h" #include "stdio.h" #include "stdlib.h"
上傳時間: 2013-12-17
上傳用戶:偷心的海盜
資源簡介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上傳時間: 2015-05-22
上傳用戶:lwwhust
資源簡介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上傳時間: 2015-05-22
上傳用戶:cc1915
資源簡介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上傳時間: 2014-01-03
上傳用戶:JIUSHICHEN
資源簡介:#include "stdio.h" #include "math.h" #include "malloc.h" #include "string.h" #define m 6 #define n 29 #define p 0.5
上傳時間: 2014-06-01
上傳用戶:yepeng139
資源簡介:#include <stdio.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #include <math.h> #include <conio.h> struct DuLNode{ struct DuLNode *prior int data struct DuLNode *next
上傳時間: 2014-01-01
上傳用戶:caiiicc
資源簡介:一個很好用的 lcd 時鐘程序 C語言 #include<reg51.h> #include<stdio.h> //定義計時器0 的重裝值 #define RELOAD_HIGH 0x3C #define RELOAD_LOW 0xD2 //定義按鍵彈跳時間 #define DB_VAL //定義設置模式的最大時間間隔 #define TIMEOUT 200 //定...
上傳時間: 2014-12-19
上傳用戶:zukfu
資源簡介:基于終端的訂花系統_socket #include<stdio.h> #include<stdlib.h> #include<errno.h> #include<string.h> #include<sys/types.h> #include<netinet/in.h> #include<sys/socket.h> #include<sys/wait.h> #include<sys/ipc.h> #include<unistd....
上傳時間: 2014-01-18
上傳用戶:003030
資源簡介:#include <stdio.h> #define MAX 10
上傳時間: 2013-12-18
上傳用戶:talenthn
資源簡介:package youxiangtu import java.io.* public class YXTu{ static public void main(String[] args){
上傳時間: 2014-01-10
上傳用戶:zjf3110