经典小程序代码
“经典小程序代码”相关的资料有哪些?“经典小程序代码”相关的范文有哪些?怎么写?下面是小编为您精心整理的“经典小程序代码”相关范文大全或资料大全,欢迎大家分享。
JAVA经典实用程序代码
1百分制分数到等级分数 package pm;
public class SwitchTest { //编写程序,实现从百分制分数到等级分数的转换 // //>=90 A // 80~89 B // 70~79 C // 60~69 D // <60 E public static void main(String[] args) { int s=87; switch(s/10){
case 10 :System.out.println(\ case 9 :System.out.println(\ case 8 :System.out.println(\ case 7 :System.out.println(\ case 6 :System.out.println(\ default :System.out.println(\ } } }
2成法口诀阵形 package pm;
public class SwitchTest{ public static void main(String[] args){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(j+\ } System.out.println(); }
} }
3华氏和摄氏的转换法
package pm;
import java.util.Scanner; public c
JAVA经典实用程序代码
1百分制分数到等级分数 package pm;
public class SwitchTest { //编写程序,实现从百分制分数到等级分数的转换 // //>=90 A // 80~89 B // 70~79 C // 60~69 D // <60 E public static void main(String[] args) { int s=87; switch(s/10){
case 10 :System.out.println(\ case 9 :System.out.println(\ case 8 :System.out.println(\ case 7 :System.out.println(\ case 6 :System.out.println(\ default :System.out.println(\ } } }
2成法口诀阵形 package pm;
public class SwitchTest{ public static void main(String[] args){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(j+\ } System.out.println(); }
} }
3华氏和摄氏的转换法
package pm;
import java.util.Scanner; public c
用户自检程序代码
用户自检程序代码
报错方式:橙灯闪烁次数
闪烁2次 :1000 后托盘无纸 闪烁3次 :1300 卡纸
闪烁4次 :1600 墨水可能用尽 :1660 未安装墨盒
闪烁5次 :1401 未安装打印头或安装不正确 打印头故障ID
:1403 打印头温度传感器错误
:1405 打印头有关EEPROM的数据错误 闪烁7次 :1487 安装了多个相同颜色的墨盒 :1680 墨盒安装位置错误 闪烁8次 :1700 告警 废墨吸收垫将满 闪烁11次:2500 自动校准打印头失败 闪烁12次:4100 额外内容打印错误
闪烁13次:1683 墨水余量检测失效(现有墨水存储量) 闪烁14次:1684 不能识别墨盒(安装了不兼容的墨盒) :1750 (安装了不支持的墨盒)
闪烁15次:1682 不能识别墨盒(墨盒出现硬件错误) 闪烁16次:1688 无墨(墨盒内没有墨水)
维修报错代码(告警灯和电源灯循环闪烁)
循环2次:5100 小车错误 可能出现故障部件
matlab源程序代码
clear all;
clc;
tic;
X=zeros(1000,4);Y=zeros(1000,4);U=zeros(1000,1);
M=3;
a=[28 18 74 74 70 72 60 36 12 18 14 90 78 24 54 62 98 36 38 32]; b=[42 50 34 6 18 98 50 40 4 20 78 36 20 52 6 60 14 58 88 54]; Aeq=zeros(20,80);
for j=1:20
for k=1:20
if j==k
Aeq(j,k)=1;
else
Aeq(j,k)=0;
end
end
for k=21:40
if k==j+20
Aeq(j,k)=1;
else
Aeq(j,k)=0;
end
end
for k=41:60
if k==j+40
Aeq(j,k)=1;
else
Aeq(j,k)=0;
end
end
for k=61:80
if k==j+60
Aeq(j,k)=1;
else
Aeq(j,k)=0;
end
end
end
Aeq;
A=zeros(4,80);
for i=1:4
for k=1:80
if i==1
for k=1:20
A(i,k)=1;
end
end
if i==2
for k=21:40
A(i,k)
反演地表温度 程序代码
pro LST_inversion
out_name=LST_inversion(irimg_file,nirimg_file,tirimg_file,ndvifilepath,pvfilepath,emfilepath) end
function LST_inversion,irimg_file,nirimg_file,tirimg_file ,ndvifilepath,pvfilepath,emfilepath;,t,tp compile_opt idl2
envi,/restore_base_save_files
envi_batch_init,log_file='batch.txt' ;打开红光波段影像
; irimg_file = dialog_pickfile(title='打开红光波段影像') irimg_file='F:\\HJ-1B温度反演\\2010.9.20\\3波段裁剪' ndvifilepath='G:\\NDVI' pvfilepath='G:\\PV'
emfilepath='G:\\比辐射率'
ENVI_OPEN_FILE,irimg_file,r_fid=
matlab车牌识别程序代码
% 车牌识别程序主体 clc;
close all; clear all;
%========================================================== %说明: % %
%=========================================================== % ==============测定算法执行的时间,开始计时================= tic %%%%%记录程序运行时间
%=====================读入图片================================ [fn,pn,fi]=uigetfile('*.jpg','选择图片'); I=imread([pn fn]); figure; imshow(I);
title('原始图像');%显示原始图像
chepailujing=[pn fn] I_bai=I;
[PY2,PY1,PX2,PX1]=caitu_fenge(I);
% I=rgb2hsv(I);
% [PY2,PY1,PX2,PX1]=caitu_tiqu(I,I_bai);%用HSI模型识别蓝色,用
民航气象报文解码程序代码
Permission to modify and redistribute is explicitly granted for all purposes. I do not provide any guarantee as to the correctness of the decoding, and do not accept any responsibility.
This HTML page contains a JavaScript decoder for the international METAR standard code for reporting of weather observations.
I think the decoder is quite complete, according to the unofficial specifications I have checked against, but I could not thoroughly test every single field. Should you find any errors, please do not hesitate to cont
C语言简单程序代码
以下代码亲自运行成功,可黏贴到vc中运行
gets和puts函数 #include\void main() { char str[20]; gets(str);//输入字符串 puts(str);//输出字符串 }
整型、字符、字符串、一维数组的初始化、输入和输出 #include\#include\void main() { int i = 2; printf(\请输入一个int型\ int ii; scanf(\ printf(\//字符类型 char c = 'x'; printf(\请输入一个char型\ char cc; scanf(\ //cc = getchar(); printf(\ //putchar(cc); //字符串型 char str[] = \ printf(\请输入一个字符串类型\ char strr[100];//必须指定大小 //scanf(\字符数组名就代表了地址 gets(strr);//字符串输入函数 //printf(\ puts(strr); //一维数组
int a[5] = {1,2,3,4,5}; for(int j = 0;j < 5;j ++)
printf
民航气象报文解码程序代码
Permission to modify and redistribute is explicitly granted for all purposes. I do not provide any guarantee as to the correctness of the decoding, and do not accept any responsibility.
This HTML page contains a JavaScript decoder for the international METAR standard code for reporting of weather observations.
I think the decoder is quite complete, according to the unofficial specifications I have checked against, but I could not thoroughly test every single field. Should you find any errors, please do not hesitate to cont
C语言编写象棋程序代码
可编辑/*--------------------chess.c----------------------*/
#include "dos.h"
#include "stdio.h"
/*----------------------------------------------------*/
#define RED 7
#define BLACK 14
#define true 1
#define false 0
#define SELECT 0
#define MOVE 1
#define RED_UP 0x1100
#define RED_DOWN 0x1f00
#define RED_LEFT 0x1e00
#define RED_RIGHT 0x2000
#define RED_DO 0x3900
#define RED_UNDO 0x1000
#define BLACK_UP 0x4800
#define BLACK_DOWN 0x5000
#define BLACK_LEFT 0x4b00
#define BLACK_RIGHT 0x4d00
#define BLACK_DO 0x1c00
#define BLACK_UNDO