码迷,mamicode.com
首页 >  
搜索关键字:visaul stdio    ( 10042个结果
pipioj 1175: 货运费用(最短路)
1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 using namespace std; 4 #define mk make_pair 5 #define pb push_back 6 const int ...
分类:其他好文   时间:2021-01-06 11:49:40    阅读次数:0
图的最短路径(Dijkstra)(Floyd),拓扑排序,生成树代码
使用邻接矩阵存储加权图,无穷大使用常数MAXLEN代表,然后使用Dijkstra方法求取最短路径 1 #include <stdio.h> 2 3 #define MAXLEN 1000 4 int cost[7][7]; 5 int dist[7]; 6 7 void creategraph(in ...
分类:编程语言   时间:2021-01-06 11:45:19    阅读次数:0
snprintf c组织一个文件全路径
#include <string.h> #include <stdarg.h> #include <stdio.h> #include <limits.h> #include <stdio.h> #define CONFIG_DIR "/etc/usbs/" int main() { FILE *f ...
分类:其他好文   时间:2021-01-05 11:25:23    阅读次数:0
share memory demo
shm.h 1 #ifndef __SHM_H 2 #define __SHM_H 3 4 #include <stdio.h> 5 6 #include <sys/ipc.h> 7 #include <sys/shm.h> 8 9 #define SHM_KEY ((key_t)0x2020123 ...
分类:其他好文   时间:2021-01-05 10:37:14    阅读次数:0
队列数据结构代码
使用数组创建队列 1 #include <stdio.h> 2 #define MAXQUEUE 10 3 4 int queue[MAXQUEUE]; 5 int front = -1; 6 int rear = -1; 7 8 int enqueue(int value) 9 { 10 if(r ...
分类:其他好文   时间:2021-01-04 11:36:12    阅读次数:0
函数调用-如何设计参数 可变参数函数
#include<stdio.h> int max(int a, int b)//形参 { return a > b ? a : b; } int main() { int x, y; scanf("%d%d", &x, &y); printf("%d", max(x, y));//实际参数 ret ...
分类:其他好文   时间:2021-01-04 10:39:27    阅读次数:0
dev项目
#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<string.h> #define LEN sizeof(struct scorenode) #define DEBUG struct scorenode{ int num ...
分类:其他好文   时间:2021-01-02 11:46:23    阅读次数:0
c++语言学习(6)--分支结构 (2)
1、复合语句(程序块) 例子1: 输入两个整数,计算并显示较大的值和较小的值。 #include"stdio.h" int main() { int n1,n2,max,min; puts("请输入两个整数:"); printf("整数1:"); scanf("%d",&n1); printf("整 ...
分类:编程语言   时间:2020-12-30 11:15:10    阅读次数:0
#2020征文-开发板 Hi3861GPIO操作 点灯和按键实验操作
在大概了解鸿蒙系统后和学习完编译环境搭建,于是我做了一个小小的实验,利用Hi3861GPIO操作完成点灯和按键实验 先看最简单得LED灯闪烁操作 源码结构如下: Hello world.c文件内容: #include <stdio.h> #include <unistd.h> #include "o ...
分类:其他好文   时间:2020-12-30 11:13:42    阅读次数:0
C语言实验课第三次实验第一题
sy3_1.c 用双层循环(嵌套循环)输出如下字符图形(不用数组,重复做输出 1 位数字/字符操作) 98765 9876 987 98 9 98 987 9876 98765 代码: #include <stdio.h>#include <stdlib.h> int main(){ int i,j ...
分类:编程语言   时间:2020-12-28 11:27:17    阅读次数:0
10042条   上一页 1 ... 25 26 27 28 29 ... 1005 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!