首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#include<stdio.h>
#define PI 3.14
void main()
{
    float r,h,c,s,sq,vq,vz;
    pfintf("请输入圆半径、圆柱高:r,h");
    scanf("%f%f",&r,&h);
    c=2.00*PI*r;
    s=PI*r*r;
    sq=4.00*PI*r*r;
    vq=4.00/3*PI*r*r*r;
    vz=PI*r*r*h;
......................
阅读全部 | 古月1991 贴于 2012年3月19日 06:42     hide bbsi
1>f:\c++\字符串连接\字符串连接\字符串连接.cpp(16): error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
阅读全部 | 我是草棚 贴于 2012年3月16日 05:43     hide bbsi
#include "iostream" 
#include   <time.h>  
using namespace std;

void main()
{
     srand( (unsigned)time( NULL ) );
     int number = rand() % 100; 
     int count=0;      
     bool ok=true;
     int small=0;
     int large=100;
......................
阅读全部 | 王向 贴于 2012年3月16日 04:53     hide bbsi
求 系统登录的代码。。。
就用户名,密码,但是不止一个用户,怎样写代码啊?
阅读全部 | 趴着阳光的猫 贴于 2012年3月16日 00:03     hide bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import os
from django import template
from django.conf import settings

register = template.Library()

class SassNode(template.Node):
    def __init__(self, format_string):
        self.format_string = format_string
......................
阅读全部 | 静夜思 贴于 2012年3月15日 21:46     hide bbsi
#!/usr/bin/env python
# -*- coding: UTF-8 -*-

import os
from django import template
from django.conf import settings

register = template.Library()

class SassNode(template.Node):
    def __init__(self, format_string):
        self.format_string = format_string
......................
阅读全部 | 静夜思 贴于 2012年3月15日 08:16     hide bbsi
定义一个集合类nSet,该类包含一下数据成员
Int[] array; //存放集合元素
Int num;   //集合中元素个数
包含以下成员函数
nSet(); //无参构造函数
nSet(int MaxLenth int N); //带参构造函数
bool add(int a); //向集合中添加元素
int del(int a);//删除集合中的元素a
bool equ(nSet s); //判断两个集合是否相等
int getLenth();//返回集合中的元素个数
void display();//显示集合中的所有元素 
nSet intersection(nSet s) //两个集合的交运算
......................
阅读全部 | zdc1201 贴于 2012年3月14日 23:51     hide bbsi
#include <stdio.h>

void main()

{
  int fahr, celsius;
  int lower, upper, step;
  
  lower = 0;
  upper = 300;
  step = 20;
  
......................
阅读全部 | C5120334 贴于 2012年3月14日 08:52     hide bbsi
#include <stdio.h>

void main()

{
  int fahr;
  
  for (fahr = 0; fahr <= 300; fahr = fahr + 20)
      printf("%3d\t%6.1f\n", fahr, (5.0/9.0)*(fahr-32.0));
}
阅读全部 | C5120334 贴于 2012年3月14日 08:38     hide bbsi
#include <stdio.h>

void main()

{
  float fahr, celsius;
  int lower, upper, step;
  
  lower = 0;
  upper = 300;
  step = 20;
  
......................
阅读全部 | C5120334 贴于 2012年3月14日 08:32     hide bbsi
上一页 298 299 300 301 302 303 304 305 306 307 下一页