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;}

#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 int main(){int i,sum=0;for(i=1;i

#include#includeusing namespace std;int a,b,c,i,j,k;int main(){a=5;k=1;for (i=1;i

我给你一个我工作中写的脚本,可以参考下: #!/bin/sh clear while [ 1=1 ] do echo -e "\n---------------------------------文件查询---------------------------------------" echo -e "\n\n\n" echo " 【 1 扣费查询 】" echo -e "\n" echo ...

这个能输出具体的数: #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 int main () { int i,j; long sum=0,temp=1; for(i=0;i

abstract class Animal { private double weight; abstract void say(); abstract void eat(); public Animal() { this.weight = 0; } public Animal(double weight) { this.weight = weight; } public double getWeight() { return weight; } p...

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...

难!你这赌开大了。 并不是用C不能写出界面来,其实,WINDOWS下的软件开始时基本就是用C写的,开发的软件包是SDK,那可是一个庞然大物,你如果是在CMD下学的C ,而且还是新学,如果转成界面,10天里搞出来,只怕有点匪夷所思。 同样是C语言,在D...

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