码迷,mamicode.com
首页 >  
搜索关键字:struct tag    ( 27518个结果
33-IO(下)
1. Java 中的 IO 原理 首先 Java 中的 IO 都是依赖〈操作系统内核〉进行的,我们程序中的 IO 读写其实调用的是〈操作系统内核〉中的 read&write 两大系统调用。 那内核是如何进行 IO 交互的呢? 网卡收到经过网线传来的网络数据,并将网络数据写到内存中。 当网卡把数据写入 ...
分类:其他好文   时间:2021-06-06 19:37:10    阅读次数:0
实验6 结构体
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 2 typedef struct student { int id; /* 学生学号 */ char name[20]; /* 学生姓名 */ char subject ...
分类:其他好文   时间:2021-06-06 19:16:23    阅读次数:0
c语言中用结构体表示点的坐标,并计算两点之间的距离
c语言中用结构体表示点的坐标,并计算两点之间的距离 1、 #include <stdio.h> #include <math.h> #define sqr(x) ((x) * (x)) typedef struct{ double x; double y; }Point; double dist(P ...
分类:编程语言   时间:2021-06-06 18:46:18    阅读次数:0
Golang 方法
★基本介绍 在某些情况下,我们需要声明方法,比如person结构体,除了有一些字段外,Person结构体还有一些行为,比如:可以说话、跑步等,这时候就要用方法才能实现。 Golang中的方法是作用在指定的数据类型上的(即:和指定的数据类型绑定),因此自定义类型,都可以由方法,而不仅仅是struct。 ...
分类:其他好文   时间:2021-06-05 18:12:15    阅读次数:0
实验6
1.学生信息处理 代码如下: (全部手敲了一遍累到自己了,就没有加很多注释.....) 1 #include <stdio.h> 2 #include <string.h> 3 #define N 3 4 typedef struct student{ 5 int num; //学号 6 char ...
分类:其他好文   时间:2021-06-05 17:45:16    阅读次数:0
Historian数据库中sql查询数据的方法
1,查询实时值,从live表中查询,tag名为Item_0 select * from live WHERE TagName = 'Item_0' 返回结果 2,查询历史值,从history表中查询,tag名为Item_0 select * from history WHERE TagName = ...
分类:数据库   时间:2021-06-04 19:44:02    阅读次数:0
GORM如何获取查询对象的属性
package main import ( "fmt" "gorm.io/driver/mysql" "gorm.io/gorm" "time" ) type User struct { ID int Name string CreatedTime time.Time } func main() { ...
分类:其他好文   时间:2021-06-04 19:06:12    阅读次数:0
docker镜像
列出镜像: docker images REPOSITORY: 镜像所在仓库名称 TAG: 镜像版本 IMAGE ID: 镜像id CREATED: 镜像创建时间 SIZE: 镜像大小 唯一表示一个镜像: repository:tag 或者imageId 网络中搜索需要的镜像: docker sea ...
分类:其他好文   时间:2021-06-04 18:47:30    阅读次数:0
UVa 10382 Watering Grass (贪心 区间覆盖)
利用几何关系转化以后,变成经典的区间覆盖问题 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int maxn = 10010; const double eps = 1e-11; int n, L, ...
分类:其他好文   时间:2021-06-03 17:39:32    阅读次数:0
【数学】模运算类
const int MOD = 1e9 + 7; struct ModularIntegers { int num; template <typename T> ModularIntegers(const T& x) { if(x >= 0 && x < MOD) num = x; else { n ...
分类:其他好文   时间:2021-06-02 20:32:48    阅读次数:0
27518条   上一页 1 ... 10 11 12 13 14 ... 2752 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!