自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(16)
  • 收藏
  • 关注

原创 C++纠错

#include<studio.h>#include<studlib.h>int main(){ int n; long int Factor_Sum(n); int I; long int f,w; f=0; int j; for(I=1;I<=n;I++) { w=1; for(j=1;j<=I;j++) { w=1; for(j=1;j<=I;j++) w=w*j; f=f+w; } retu.

2021-09-14 15:28:14 372

原创 C++纠错

#include<studio.h>#include<studlib.h>int main() { int Secial_Search(); int n; int L[n]; { int j; int x; j=0; while((j<=n-1)&&(L[j]!=X)) j=j+1; if(j>n-1) j=0; return(j); }}

2021-09-14 15:27:34 479

原创 C++纠错

#include<studio.h>#include<studlib.h>int main(){ int i,j; j=1; for(i=1;i<10;i++) { j=2*(j+1); } print("第一天摘桃子的个数为%d\n",j); return 0;}

2021-09-14 15:26:35 422

原创 Html 叮叮书院

<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>主页</title> <style type="text/css"> #menu{} #menu li{ list-style-type: none; display: .

2021-08-10 10:57:34 1208

原创 Html基础2

<!DOCTYPE html><html><head> <meta charset="utf-8"> <title>菜鸟教程(runoob.com)</title> </head> <body><b>加粗文本</b><br><br><i>斜体文本</i><br><br><code>电脑.

2021-07-18 19:33:50 49

原创 Java作业 输入xy输出(x,yi)

package December.dome1214;public class Complex { private double real; private double im; public Complex() { } public Complex(double real,double im) { System.out.println("有参的构造方法"); this.real=real; this.im=im; } public void setReal(double re.

2021-07-18 19:32:36 620

原创 Java作业 计算三角形的周长面积

package December.dome12063;public class Rectangle { int width; int height; public Rectangle() { System.out.println("无参的构造方法"); } public Rectangle(int width,int height) { System.out.println("有参的构造方法"); this.height=height; this.width=width;.

2021-07-16 16:13:56 401

原创 Html基础

<!DOCTYPE html><html><head><meta charset="utf-8"><title>菜鸟教程(runoob.com)</title></head><body> <h1>我的第一个标题。</h1><p>我的第一个段落。</p><a href="https://www.runoob.com">这是一个链接&l.

2021-07-16 16:08:18 71

原创 Java作业 计算圆的面积

package December.dome12062;import java.util.Scanner;public class Circle { int x; int y; int r; double area; public void show() { System.out.println("圆的面积:"+area); } public Circle() { } public Circle(int x,int y,int r) { this.x=x; thi.

2021-07-16 16:05:44 1056

原创 Java作业 输入一个年份,看是否是闰年

package December.dome12061;public class Dates { int day; int month; int year; public void show() { boolean flag=true; if((year%400==0)||(year%4==0&&year%100>0)) { System.out.println(flag); }else { flag=false; System.out.println(.

2021-07-16 16:02:30 184

原创 Java作业 会员的购物价格

import java.util.Scanner;public class work103004 {public static void main(String[]args) { Scanner input=new Scanner(System.in); System.out.println("请输入是否是会员:"); char ch=input.nextLine().charAt(0); System.out.println("请输入购物金额:"); int money=inp...

2021-07-16 15:55:33 217

原创 Java作业 根据输入的数值输出相应的值

import java.util.Scanner;public class work103003 {public static void main(String[]args) { Scanner input=new Scanner(System.in); System.out.println("输入x"); int x=input.nextInt(); int y; if(x<1) { System.out.println(y=x); }else if(x<...

2021-07-16 15:53:19 782

原创 Java作业 输入一个年份,看是否是闰年

import java.util.Scanner;public class work103002 {public static void main(String[]args) { Scanner input=new Scanner(System.in); System.out.println("输入一个年份"); int a=input.nextInt(); if((a%400==0)||(a%4==0&&a%100>0)) { System.out.pr...

2021-07-16 15:41:54 488

原创 Java作业 输入一个字符,输出对应的大写字符

import java.util.Scanner;public class work103001 {public static void main(String[]args) { Scanner input=new Scanner(System.in); System.out.println("输入一个字符:"); char ch=input.nextLine().charAt(0); if('a'<=ch&&ch<='z') { System.ou...

2021-07-16 15:40:09 564

原创 Java作业 折扣计算

import java.util.Scanner;public class work10242 { public static void main(String[]args) { int shirt=245,a=2; int shoe=570,pai=320; Scanner input=new Scanner(System.in); System.out.println("请输入折扣:"); double discount=input.nextDouble(); doubl.

2021-07-16 15:35:51 1490

原创 Java作业 计算整数的加密结果

import java.util.Scanner;public class work10241 {public static void main (String[]args) { double a=3.1415926; Scanner input=new Scanner(System.in); System.out.println("输入整数:"); int b=input.nextInt(); int result=(b*10+5)/2+(int)a; System.ou...

2021-07-16 15:31:35 142

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除