摘要: #include "stdafx.h"#include #include #include #include typedef struct card{char suit[10];char face[10];}CARD;void Deal(CARD *wCard);void shuffle(CARD ... 阅读全文
posted @ 2015-04-13 23:01 码农@163 阅读(295) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include #include #define NUM_ELECTORATE 10#define NUM_CANDIDATE 3struct candicate{char name[20];int count;}candidate[3] =... 阅读全文
posted @ 2015-04-13 22:21 码农@163 阅读(155) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include #include void InputScore(int *p,int m,int n);int FindMax(int *p,int m,int n,int *pRow,int *pCol);int main(){int *... 阅读全文
posted @ 2015-04-13 21:02 码农@163 阅读(417) 评论(0) 推荐(0) 编辑
摘要: include "stdafx.h"#include #include #include #define N 10void Swap(int *x,int *y);void Transpose(int a[][N],int n);void InputMatrix(int a[][N],int n);... 阅读全文
posted @ 2015-04-13 20:33 码农@163 阅读(210) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include #include int main(){int n;static char * monthName[] = {"Illegal month","January","February","March","April","May"... 阅读全文
posted @ 2015-04-13 20:11 码农@163 阅读(338) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include #include #define N 100void Insert(char s[]);int main(){char str[N];printf_s("input a string:");gets_s(str);Insert... 阅读全文
posted @ 2015-04-13 16:47 码农@163 阅读(424) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include void Squeeze(char s[],char c);int main(){char str[20],ch;printf_s("input a string:");gets_s(str);printf_s("input ... 阅读全文
posted @ 2015-04-13 16:20 码农@163 阅读(137) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include float fun1(float x);float fun2(float x);float Integral(float (*f)(float),float a,float b);int main(){float y1,y2;... 阅读全文
posted @ 2015-04-13 16:15 码农@163 阅读(141) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#include #include int DayofYear(int year,int month, int day);void MonthDay(int year,int yearDay,int *pMonth,int *pDay);void Menu(vo... 阅读全文
posted @ 2015-04-13 15:58 码农@163 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 输入某一年 以及某一年的天数 就 是几月的第几天#include "stdafx.h"#include #include int Monthday(int year,int yearDay,int *pMonth,int *pDay);int dayTab[2][13] = {{0,31,28,31... 阅读全文
posted @ 2015-04-13 15:19 码农@163 阅读(325) 评论(0) 推荐(0) 编辑