#include <stdio.h>
int main() {
// 输出开场白
printf("告诉你一个事\n\n");
// 输出圣诞节快乐和爱心图案
printf("圣诞节快乐:\n\n");
// 绘制爱心图案(笛卡尔心形方程:(x²+y²-1)³ - x²y³ = 0)
for (float y = 1.5f; y > -1.5f; y -= 0.1f) {
// 每行开头添加缩进,让爱心居中
......................
阅读全部
|
张树芽
贴于 2025年12月9日 20:30
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年12月9日 20:29
hide
bbsi
《我的维度》游戏教程:
电脑移动:按WSAD键或↑↓←→键移动。
手机、平板电脑移动:拖动角色即可移动。
建造方块:拖动方块即可建造。
阅读全部
|
wengzixi
贴于 2025年11月30日 20:45
hide
bbsi
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h> // 用于随机数种子
// ==================== 跨平台适配(Windows/Linux/Mac) ====================
#ifdef _WIN32
// Windows 环境
#include <windows.h>
#include <conio.h> // Windows 保留 conio.h
#define CLEAR_SCREEN() system("cls")
#define SLEEP(ms) Sleep(ms)
......................
阅读全部
|
ahov
贴于 2025年11月27日 12:05
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: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