自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 打印字符c语音

#include<stdio.h>int main(){int a;scanf("%d",&a);printf("%c",a);return 0;}

2023-02-09 09:49:52 113

原创 打印ASCLL码c语音

#include<stdio.h>int main(){ char a; while(scanf("%c",&a)!=EOF) printf("%d\n",a); return 0;}

2023-02-09 09:48:29 274

原创 浮点数向零舍入c++

#include<iostream>using namespace std;int main(){float a;cin >> a;int b;b = a;cout << b ;return 0;}

2023-02-09 09:45:27 290

原创 空格分隔输出c语音

#include<stdio.h>int main(){ char a; int b; float c; double d; scanf("%c %d %f %lf",&a,&b,&c,&d); printf("%c %d %f %lf",a,b,c,d);}

2023-02-08 11:50:04 2007

原创 输出浮点数c语音

#include<stdio.h>int main(){ double a; scanf("%lf",&a); printf("%lf\n%.5lf\n%e\n%g",a,a,a,a); return 0;}

2023-02-08 11:48:15 130

原创 输出保留3位小数的浮点数c语音

#include<stdio.h>int main(){ float a; scanf("%f", &a); printf("%.3f",a); return 0;}

2023-02-08 11:47:03 361

原创 字符三角形c语音

#include<stdio.h>main(){char c;scanf("%c",&c);int i,j;for(i=1;i<=3;i++){ for(j=1;j<=3-i;j++) printf(" "); for(j=1;j<=2*i-1;j++) printf("%c",c); printf("\n");}}

2023-02-08 11:41:44 193

原创 输出保留12位小数的浮点数c语言

#include<stdio.h>int main(){ double a; scanf("%lf", &a); printf("%.12lf",a); return 0;}

2023-02-08 11:38:24 513

原创 对齐输出c语言

#include<iostream>using namespace std;int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%8d %8d %8d",a,b,c); return 0;}

2023-02-08 11:35:32 467

原创 输出第二个整数c++

#include<iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; cout<<b; return 0;}

2023-02-08 11:34:03 296

空空如也

空空如也

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

TA关注的人

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