public class Rectangle{
private int length;
private int width;
public Rectangle(int length,int width){
this.length=length;
this.width=width;
}
public void set(int length,int width){
this.length=length;
this.width=width;
......................
阅读全部
|
yhnju485
贴于 2025年11月4日 15:57
hide
bbsi
public class Circle{
private double radius;
public Circle(){
radius = 0.0;
}
public Circle(double rad){
radius = rad;
}
public double getRadius(){
......................
阅读全部
|
yhnju485
贴于 2025年11月4日 15:49
hide
bbsi
public class Rectangle{
private int length;
private int width;
public Rectangle(int length,int width){
this.length=length;
this.width=width;
}
public void set(int length,int width){
this.length=length;
this.width=width;
......................
阅读全部
|
yhnju485
贴于 2025年11月4日 15:06
hide
bbsi
#include <stdio.h>
int main() {
int i,j;
for(i = 0; i < 10; i++)
{
for(j = 0; j < 10; j++)
{
if(i> 0 && i<9)
{
if(j==0 || j==9)
printf(" * ");
else
......................
阅读全部
|
墨文轩轾
贴于 2025年11月3日 16:45
hide
bbsi
#include <stdio.h>
#include <math.h>
int main() {
double a,b,c;
printf("enter a,b and c:");
scanf("%lf,%lf,%lf",&a,&b,&c);
if (a==0&&b==0&&c==0){
printf("方程不存在");
}
else if(a==0&&b!=0){
......................
阅读全部
|
金橘棕白
贴于 2025年10月13日 14:52
hide
bbsi
大家好!我要向网上公布这个作品
https://shequ.codemao.cn/work/281078655
阅读全部
|
wengzixi
贴于 2025年10月7日 09:42
hide
bbsi
#include <stdio.h>
int main() {
printf("我在编程中国学C语言\n\n");
// 练习一下循环的使用
int i;
for (i=1; i<=20; i++) {
printf("我爱编程中国 %d 次\n", i);
}
printf("\n\n绘制一个心形图案:");
......................
阅读全部
|
谢飞
贴于 2025年9月30日 16:42
hide
bbsi
#include <iostream>
using namespace std;
int main()
{
string n;
string a;
string b;
cin >> n;
cin >> a >> b;
cout << "请输入账户名:" << endl;
cout << n << endl;
cout << "请设置密码:" << endl;
......................
阅读全部
|
HZH是中国人
贴于 2025年9月8日 07:50
hide
bbsi