首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<math.h>
#include<stdio.h>
main() 
{
double s,h,p,p1,p0,a,v,w,p2;
w=215*3.14/30,h=30,p0=90,p1=90,p=0,p2=190;
for(p=0;p<=190;p=p+5)
{if(0<=p&&p<=45)
{s=2*h*p*p/p0*p0,v=4*h*w*p/p0*p0,a=4*h*w*w/p0*p0;}
else
{if(45<p&&p<=90)
s=(h-2*h*(p0-p)*(p0-p))/p0*p0,v=4*h*w*(p0-p)/p0*p0,a=-4*h*w*w/p0*p0;}
......................
阅读全部 | liu609 贴于 2015年4月19日 19:39     hide bbsi
#include"stdio.h"
int max(int a,int b)
{
int max=(a>b)?a:b;
return max;
}
void main ()
{
int a,b;
printf("输入两个整数:");
scanf("%d%d",&a,&b);
printf("%d\n",max(a,b));
......................
阅读全部 | 鱼游海底 贴于 2015年4月18日 11:56     hide bbsi
#include"stdio.h"
int main()
{
int a,b;
printf("输入两个整数:");
scanf("%d%d",&a,&b);
if(a>b)printf("max=%d\n",a);
else printf("max=%d\n",b);
return 0;
}
阅读全部 | 鱼游海底 贴于 2015年4月18日 11:49     hide bbsi
Option Explicit
Public txtSQL As String
Dim mrc As ADODB.Recordset
Dim MsgText As String




Private Sub Form_Load()
    ShowTitle
    ShowData
    flagLedit = True
......................
阅读全部 | zmx11 贴于 2015年4月18日 11:16     hide bbsi
#include <stdlib.h>
#include <stdio.h>
#include <winsock2.h>       //加入WinSock的头文件
#include <WS2TCPIP.h>       //设置IP_HDRINCL需要
#include <time.h>
#pragma comment(lib,"Ws2_32.lib")    //加入库函数
#include <iostream>
using namespace std;
typedef struct //定义IP首部 

unsigned char h_verlen; //4位首部长度,4位IP版本号 无符号范围较广在正值
unsigned char tos; //8位服务类型TOS 
......................
阅读全部 | T_MACC 贴于 2015年4月17日 20:35     hide bbsi
1>d:\2008\源程序文件\traffic\traffic\trafficview.cpp(170) : error C3861: “KillerTimer”: 找不到标识符
我在 编译一个交通灯求解决法案?
阅读全部 | 拖帝 贴于 2015年4月17日 10:32     hide bbsi
int main()
{  int i,j,n=0;
    for (i=1;i<=4;i++)                      
        for (j=1;j<=5;j++,n++) 
        {  if (n%5==0) printf (“\n”); 
         printf ("%d\t",i*j);
        }  
     printf("\n");
     return 0;
}
阅读全部 | 菀菀菀 贴于 2015年4月15日 23:38     hide bbsi
建立一个通讯录管理系统:

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
int n;
struct tongxunlu
{
int no;//序号
char xingming[20];//姓名
char dianhuahaoma[15];/ 
......................
阅读全部 | 兜里有糖哦 贴于 2015年4月14日 21:46     hide bbsi
#include<stdio.h>
#define Pi 3.141592657

int input(int r);
int s, r, a = 0, b = 0, c = 0;

int main(int s)
{
s = (int)Pi*input(r) ^ 2;
printf("三维体的二维圆面转换值为:%d\n", s);
return s;
}
......................
阅读全部 | 唯风相随 贴于 2015年4月14日 21:11     hide bbsi
#include<stdio.h>
#define Pi 3.141592657
int main(int s)
{
   int s;
   s=Pi*input()^2;
   printf("三维体的二维圆面转换值为:%d",s);
   return s;
}

int input(int r)
{
......................
阅读全部 | 唯风相随 贴于 2015年4月13日 11:16     hide bbsi
上一页 201 202 203 204 205 206 207 208 209 210 下一页