所学语法整理: 占位符{0} 空格/t 换行/n 注释符: //单行注释 ///多行注释int n1=10;//声明变量,赋值,使用,int代表整数,string代表字符串,char代表字符,decimal一般代表金钱,double代表双整形整数,bool代表布尔类型,只有true跟false两种值 ...
分类:
其他好文 时间:
2021-06-07 20:36:49
阅读次数:
0
1、 #include <stdio.h> int main(void) { FILE *fp; // 打开文件前,必须定义FILE*型指针变量。 char file[128]; printf("please input the filename: "); scanf("%s", file); // ...
分类:
编程语言 时间:
2021-06-07 20:01:39
阅读次数:
0
create database zuoye; -- 创建数据库 use zuoye; -- 使?数据库 #创建?个库表 create table Student -- 学?表 ( Sno char(3) NOT NULL Primary key , -- 学号 ,设为主键,不允许空值 Sname c ...
分类:
数据库 时间:
2021-06-07 19:59:03
阅读次数:
0
#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
location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET,POST'; add_header Access-Control-Allow-Headers 'DN ...
分类:
其他好文 时间:
2021-06-06 18:45:56
阅读次数:
0
create database zuoye; -- 创建数据库 use zuoye; -- 使用数据库 #创建几个库表 create table Student -- 学生表 ( Sno char(3) NOT NULL Primary key , -- 学号 ,设为主键,不允许空值 Sname c ...
分类:
数据库 时间:
2021-06-05 17:46:33
阅读次数:
0
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
通过stat函数获取文件的大小,单位bytes;无需将文件读入内存,可以计算大文件; #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdio.h> int stat(const char *pa ...
分类:
编程语言 时间:
2021-06-05 17:44:27
阅读次数:
0
直接上代码 void Add(int a, double b, short c, const char * f) { std::cout << f << a << ", " << b << ", " << c << ";\n"; } void *p = nullptr; template <type ...
分类:
编程语言 时间:
2021-06-04 19:35:50
阅读次数:
0
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