- 博客(5)
- 收藏
- 关注
原创 写点SQL的基本语法用来备忘
一、 表创建 create table 表名 ( 成员名 数据类型 数据占用大小, 成员名 数据类型 数据占用大小, 成员名 数据类型 数据占用大小 ) 二、 查询语句 Select (),(),(), From 表名 As ,表名As Where 注: where中的不同条件用and或者or连接起来。。 如果查询的两张表中有相同的数据而不想都输出,要进行一次两表对应数据相同的比较。(a.b...
2019-05-21 17:17:59
86
原创 不定期分享自己练习中写的,勉励自己在这条路上坚持吧。
//求区间内素数// #include <stdio.h> #include<windows.h> int PRIME(int); int main() { int i,n,m,j,k=0; int p; printf(“Please input lower and upper bounds of intervals:\n”); scanf("%d %d",&n,&...
2019-05-20 17:17:33
89
原创 c语言链表的小问题
想不通咋不能用呢。。 //链表// #include<stdio.h> #include<stdlib.h> struct Grade_Info { int score; struct Grade_Info *next; }; typedef struct Grade_Info NODE; NODE *Create_LinkList(); void Insert_LinkL...
2019-05-15 16:42:51
259
原创 三角形面积问题
这几天翻出来以前用来求三角形面积的, 思路上引用s=sqrt(p(p-a)(p-b)(p-c)), 然后对三边是否满足三角形判断。 代码如下: #include<stdio.h> #include<math.h> int main(void) { double a,b,c,s,m,n,o; double area; printf(“Please input the leng...
2019-03-31 11:26:50
251
原创 求助,关于字符串数组的问题。不知道为什么只能输入数据没办法输出。目标用英文输入城市名后升序输出。
#include <stdio.h> #include <string.h> #define CITYNUM 10 void main() { int i,j,k,num; char city[CITYNUM][20]; char str[80]; num=0; for(i=0;i<CITYNUM;i++) { printf(“input the name of th...
2019-03-27 12:00:03
168
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人