mshd.net
当前位置:首页 >> 编写一个程序 >>

编写一个程序

#includevoid jolly(){ printf("For he is jolly good fellows!\n");}void deny(){ printf("Which nobady can deny!\n")}int main(){ jolly(); jolly(); jolly(); deny(); return 0;}

import java.util.Date; class Telephone{ private String brand; private String phoneNum; private int seconds; private double rate; public String getBrand() { return brand; } public void setBrand(String brand) { this.brand = brand...

class Trangle{ private double a, b, c;//三个边 private double area;//面积 private double perimeter;//周长 public double getArea() {//返回面积 return area; } public double getPerimeter() {//返回周长 return a+b+c; } public void s...

这是我写的作业题,6到100的。 #include #include int prime(int m); int main(void) { int m,a,b,c,count=0; for(m=6;m

#include using namespace std; int main() { int a,b; cin>>a>>b; coutk; }

#include int main(void) { int toes; toes=10; printf("%d+%d=%d\n",toes,toes,toes+toes); printf("%d*%d=%d\n",toes,toes,toes*toes); return 0; }

代码如下: #include #include #define N 10void input(int data[], int n){int i;printf("请输入%d个整数:\n", n);for (i = 0; i < n; i++) {scanf("%d", &data[i]);}}void sort(int data[], int n){int i, j, temp;for (i = 0; i < n - 1; i++...

这个能输出具体的数: #include"math.h" #include"stdio.h" main() { int n,i,j,num=0,a,b,c; printf("请输入一个三位数的整数:\n"); scanf("%d",&n); for(j=101;j

#include void main(){ int i; float sum=0; for(i=1;i

转义字符 意义 ASCII码值(十进制) \a 响铃(BEL) 007 #include int main() { printf("test:\a"); return 0; } 测试的时候,会听到嘟的一声,它不能自动播放音乐的,就一个“嘟”

网站首页 | 网站地图
All rights reserved Powered by www.mshd.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com