- 博客(10)
- 资源 (10)
- 收藏
- 关注
原创 C++有关Struct的问题
#include <stdio.h> #include <stdlib.h> struct test { test(int n) { printf("test(%d)\n",n); } test() { printf("test()\n"); } void fun() { ...
2019-09-07 20:21:21
265
原创 湖大829 库函数的调用
熟练掌握标准库函数的调用 常用数学函数:cos、sqrt、pow、exp、fabs、log、log10等 常用字符函数:isalnum、isalpha、isdigit、islower、toupper等 常用字符串函数:strcpy、strcmp、strcat、strlen等 一、常用的数学函数 exp double exp( double arg ); 说明:计算...
2019-08-28 14:13:38
460
2
原创 CCF 201809-2 买菜 100分
#include <iostream> using namespace std; unsigned int a[2001][2]; unsigned int b[2001][2]; unsigned int sum = 0; int time[1000000]; /* run this program using the console pauser or add your ow...
2019-08-27 19:39:25
207
原创 CCF 201809-1 卖菜 C100分
#include <stdio.h> #include <stdlib.h> unsigned int n; unsigned int Price[1001]; int main(int argc, char *argv[]) { int i = 0; scanf("%d",&n); for(i = 0; i < n; i++) { sca...
2019-08-27 16:21:19
174
原创 CCF 201903-1 小中大
#include <stdio.h> #include <stdlib.h> #define Number 100000 int a[Number]; int main() { int n; int Max,Min,Median; scanf("%d",&n); for(int i = 0; i < n; i++) ...
2019-08-23 21:59:27
293
原创 CCF 201812-2 小明放学
#include <stdio.h> int main() { unsigned int Red,Green,Yellow; int Count,Pos; int data[100][2]; unsigned long long int Sum = 0; int a[4] = {0, Red, Red+Green+Yellow, Red+Gr...
2019-08-23 21:50:06
156
原创 CCF 201812-1 小明上学
#include <stdio.h> int main() { unsigned int Red,Green,Yellow; int Count; int data[100][2]; unsigned Sum = 0; scanf("%d %d %d",&Red,&Yellow,&Green); scanf(...
2019-08-23 20:42:18
139
原创 CCF 201903-2 二十四点 (100分)
#include <stdio.h> typedef struct data { int Item; char s[7]; int ans; }a[100]; a data; void judge(a data, int n); int main() { int n = 0; scanf("%d", &n); for(...
2019-08-22 15:42:16
224
原创 DSP开方算法(牛顿迭代法)
一、牛顿迭代法介绍 牛顿迭代法(Newton's method)又称牛顿-拉夫逊方法,是一种在实数域和复数域上的近似求解方程的方法。 二、开方根的实现 /* *实现环境 TMS320F28335 */ typedef unsigned char uint8_t; typedef unsigned short int uint16_t; typed...
2018-11-18 23:58:50
2578
原创 linux内核定时器
Linux内核中许多工作都高度依赖时间信息。因此了解Linux内核时间机制很有必要。 在Linux内核中,有一些重要的内核定时器变量,jiffies、HZ、以及xtime。 一:HZ和jiffies HZ的值取决与体系架构,在x86系统上,在2.4内核中,该值默认设置为100;在2.6内核中,该值变为了1000,在基于ARM的平台上,2.6内核将HZ设置为100,在3.4内核版本中,可...
2018-11-10 23:39:52
281
2020湖南大学考研计算机科学与技术专业课资料.7z
2019-09-26
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅