首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include<stdio.h>
#include<string.h>
#include<stdlib.h>

int main()
{
    char cmd[20]="shutdown -s -t ";
    char t[5]="0";
    int c;

    system("title C语言关机程序");  //设置cmd窗口标题
    system("mode con cols=48 lines=25");  //窗口宽度高度 
......................
阅读全部 | z1195480723 贴于 2017年5月30日 21:06     hide bbsi
/********************************
**
**名称:循环打印星形
**版权:ZSPM
**邮箱:zspm@qq.com
**
*********************************/

#include<stdio.h>
#include <stdlib.h>

int main()
......................
阅读全部 | ZSPM 贴于 2017年5月22日 22:29     hide bbsi
/********************************
**
**名称:冒泡排序
**版权:ZSPM
**邮箱:zspm@qq.com
**
*********************************/

#include <stdio.h>
#include <stdlib.h>
#define N 5  //宏定义数组的大小
int main() 
......................
阅读全部 | ZSPM 贴于 2017年5月22日 22:16     hide bbsi
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
double N(double,double);
int main()
{
    double x0 = 4.6;
    double e = 0.000001;
    printf("最小正根=%f\n",N(x0,e));
    system("pause");
return 0;
}
......................
阅读全部 | waili0713 贴于 2017年5月19日 21:35     hide bbsi
#include <stdio.h>
int main()
{
int g;
scanf("%d",&g);
float f,m,t,r;
printf("boy=1,girl=2");
printf("father:");
scanf("%f",&f);
printf("mother:");
scanf("%f",&m);
if (g==1)
......................
阅读全部 | 我zy 贴于 2017年5月18日 23:24     hide bbsi
#include <stdio.h>
int main()
{
int g;
scanf("%d",&g);
float f,m,t,r;
printf("boy=1,girl=2");
printf("father:");
scanf("%f",&f);
printf("mother:");
scanf("%f",&m);
if (g==1)
......................
阅读全部 | 我zy 贴于 2017年5月18日 23:21     hide bbsi
#include<stdio.h>
#include<stdlib.h>
typedef struct polynode
{
int coef;
int exp;
struct polynode * next;
}PNode;
PNode * Creat_Linkst (int n)
{
PNode * head, * p, * s;
int i;
......................
阅读全部 | buptmxb 贴于 2017年5月18日 23:05     hide bbsi
#include<stdio.h>
#include<stdlib.h>
typedef struct polynode
{
int coef;
int exp;
struct polynode * next;
}PNode;
PNode * Creat_Linkst (int n)
{
PNode * head, * p, * s;
int i;
......................
阅读全部 | buptmxb 贴于 2017年5月18日 23:04     hide bbsi
#include<stdio.h> 
#include<math.h> 
void main() 

 double D,q,E,B=0,b,X; 
 int i,m; 
 printf("本金:");
 scanf("%lf",&D); 
 printf("利率:"); 
 scanf("%lf",&q); 
printf("月份:");
scanf("%d",&m);  
......................
阅读全部 | gjjpxy 贴于 2017年5月17日 16:20     hide bbsi
#include<stdio.h> 
#include<math.h> 
void main() 

 double D,q,E,B=0,b,X; 
 int i,m; 
 printf("本金:");
 scanf("%lf",&D); 
 printf("利率:"); 
 scanf("%lf",&q); 
printf("月份:");
scanf("%d",&m);  
......................
阅读全部 | gjjpxy 贴于 2017年5月17日 16:20     hide bbsi
上一页 73 74 75 76 77 78 79 80 81 82 下一页