首页
学习
活动
专区
工具
TVP
发布

WindCoder

所有文章首发于https://windcoder.com/,文章均自动同步于此。
专栏作者
417
文章
791811
阅读量
38
订阅数
java漫谈-Java只有值传递
文中用遥控器(引用)操作电视(对象)为例形象的说明了该引用名词的含义,同时在对定义的“引用”该名词的注释中提到:
WindCoder
2020-01-24
6190
JVM-Java代码运行方式
为了能运行Java,当前的主流思路是设计一个面向 Java 语言特性的虚拟机,并通过编译器将 Java 程序转换成该虚拟机所能识别的指令序列,也称 Java 字节码。之所以这么取名,是因为 Java 字节码指令的操作码(opcode)被固定为一个字节。
WindCoder
2020-01-21
7320
统计输入整形数中每个数出现的次数-C++数组的简单操作
效果图: 现在输入这十个数,注意要递增 1 2 2 2 2 3 4 4 5 5 1出现1次 2出现4次 3出现1次 4出现2次 5出现2次 请按任意键继续................. /* 功能:统计输入整形数中每个数出现的次数-C++数组的简单操作 日期:2013-09-12 */ #include<iostream> using namespace std; int main(void) { int arr[10]; int num = 0;
WindCoder
2018-09-20
1.9K0
计算两点间的距离、点到线的距离,判断一点是否在一个圆内、一点是否在一矩形内、两圆是否相交
#ifndef HOMEWORK16_H_2013_06_19 #define HOMEWORK16_H_2013_06_19 /* 日期:2013-06-19 */ //点 typedef struct Pointer { double x; double y; } POINT; extern POINT point1; extern POINT point2; extern POINT point3; extern POINT point4; extern POINT point
WindCoder
2018-09-20
1.2K0
凯撒密码
/* 功能:凯撒密码 日期:2013-06-18 */ #include<stdio.h> #include<stdlib.h> #include <string.h> void countFrequency(char *ch,int *frequency); int main(void) { char Ch[10000]; int Frequency[26]={0}; printf("请输入密文:n"); gets(Ch); countFrequency(&Ch[0],&Frequency[
WindCoder
2018-09-20
4830
元素对角线之和
/* 功能:元素对角线之和 日期:2013-05-26 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #define LEN 3 int main(void) { int A[LEN][LEN]={0}; int i,j; int sum1=0; int sum2=0;
WindCoder
2018-09-20
4050
字符串转整数
/* 功能:字符串转整数 日期:2013-06-19 */ #include <stdio.h> #include <stdlib.h> #include <string.h> void StringToInteger(char *str,int *number); int main(void) { char ch[1000]={0}; int num[1000]; printf("请输入一个数字字符串"); gets(ch); StringToInteger(ch,num); prin
WindCoder
2018-09-20
1.5K0
绘制自定义迷宫地图
/* 功能:绘制自定义迷宫地图 日期:2013-05-26 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #define LEN 8 int main(void) { int A[LEN][LEN]={0}; int i,j; char ch1;
WindCoder
2018-09-20
7750
求最大公约数
/* 功能:求最大公约数 日期:2013-06-19 */ #include<stdio.h> #include<stdlib.h> int gcd(int m,int n); int main(void) { int num1,num2; printf("请输入两个数字:"); scanf("%d %d",&num1,&num2); printf("最大公约数为:%dn",gcd(num1,num2)); system("pause"); return 0; } /
WindCoder
2018-09-20
4680
寻找次大元素
/* 功能:寻找次大元素 日期:2013-06-13 */ #include<stdio.h> #include<stdlib.h> int findSecondMax (int *p,const int len); int main(void) { int sum[8]={1,3,8,2,9,5,4,8}; int i; printf("一位数组的元素是:"); for (i = 0;i < 8;i++) { printf("%d ",sum[i]); } printf("n
WindCoder
2018-09-20
3640
学生信息排序、查找及修改
/* 功能:学生信息排序、查找及修改 日期:2013-06-24 */ #include<stdio.h> #include<stdlib.h> #include <string.h> //结构体 typedef struct student { char name[20]; int score; }STU; //引用函数 void sort(STU *aStu,int n); STU *find(STU *aStu,int n,char *aName); int findAndEdit(STU *a
WindCoder
2018-09-20
8700
数字插入
/* 功能:数字插入 日期:2013-05-17 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #define LEN 7 int main(void) { int num[LEN]={1,8,10,16,23,40,0}; int i,tmp,j; printf("请输入一个数字:"); scanf("%d",&num[LEN-1]); printf("插入后的数组为:"); for (i = 0;i<=LEN-1;i++) { for (j = 0;j<=LEN-i;j++) { if(num[j]>num[j+1]) { tmp = num[j]; num[j] = num[j+1]; num[j+1] = tmp; } } }
WindCoder
2018-09-20
4190
字符串连接
/* 功能:字符串连接 日期:2013-05-26 */ #include<stdio.h> #include<stdlib.h> #include<math.h>
WindCoder
2018-09-20
1.4K0
数据加密
/* 功能:数据加密 日期:2013-05-26 */ #include<stdio.h> #include<stdlib.h> #include<math.h> #define LEN 4 int main(void) { int A[LEN]={0}; int i,tmp;
WindCoder
2018-09-20
8380
短信分割
/* 功能:短信分割 日期:2013-05-28 */ #include<stdio.h> #include<stdlib.h> #include<string.h> #define LEN 70 #define userLEN 1000 int main(void) { char message[userLEN]={0}; char **p; int i,j,row;
WindCoder
2018-09-20
10.4K0
使用密码加密
/* 功能:使用密码加密 日期:2013-05-29 */ #include <stdio.h> #include <stdlib.h> #include <string.h> #define LEN 1000 int main(void) { char ming[]="abcdefghijklmnopqrstuvwxyz1234567890"; char mi[]="67adrb5jq0sxe8fo1z3ymnl2ivu4gctw9kph"; char tmpMing[LEN]={0}; int i,j; printf("密码表的内容为:"); printf("明文表:%sn",ming); printf("密文表:%sn",mi); printf("请输入明文:"); gets(tmpMing); printf("加密后的密文:"); for (i=0;i<strlen(tmpMing);i++) { for (j=0;j<37;j++) { if (tmpMing[i]==ming[j]) { printf("%c",mi[j]); } } }
WindCoder
2018-09-20
1.3K0
链表实现栈的动态顺序存储实现—C语言
头文件 ElemType.h /*** *ElemType.h - ElemType的定义 * ****/ #ifndef ELEMTYPE_H #define ELEMTYPE_H typedef int ElemType; int compare(ElemType x, ElemType y); void visit(ElemType e); #endif /* ELEMTYPE_H */  DynaSeqStack.h /*** *DynaSeqStack.h - 动态顺序栈的定义 * **
WindCoder
2018-09-20
9730
数值交换
/* 功能:数值交换 日期:2013-05-16 */ #include <stdio.h> #include <stdlib.h> #include <math.h> #define LEN 10 int main(void) { int num[LEN] = {0}; int max,min,tmp,i;
WindCoder
2018-09-20
1K0
矩阵乘法
#include <stdio.h> #include <stdlib.h> #include <math.h> #define LEN 3
WindCoder
2018-09-20
7670
打印九九乘法表
/* 功能:九九乘法表 作者:汐枫 日期:2013-05-08 */ #include <stdio.h> #include <stdlib.h> #include <math.h> int main(void) { int i,j,k,sum; for (i = 1; i <= 9; i ++) { for (j=10-i,k=i,sum=0;j>=1;j--,k++) { sum = i * k ; printf("%d*%d=%d ",i,k,sum); } printf("n"); } printf("n"); system("pause"); return 0; }
WindCoder
2018-09-20
7100
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档