首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#!/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
#include <stdio.h>

void main()

{
  printf("hello,world\n");
}
阅读全部 | C5120334 贴于 2012年3月14日 08:22     hide bbsi
怎样用代码连接两个Windows窗体
阅读全部 | manman1992 贴于 2012年3月14日 02:21     hide bbsi
protected void Submit_Click(object sender, EventArgs e)
    {
        string arg = ((Button)sender).CommandArgument;
        if (arg.Equals("1"))
        {
            //抛出DivideByZeroException 异常
            int x = System.Convert.ToInt32(TextBox1.Text);
            int y = System.Convert.ToInt32(TextBox2.Text);
            int z = x / y;
            TextBox3.Text = z.ToString(); 
        }
        else if (arg.Equals("2"))
......................
阅读全部 | wings1111 贴于 2012年3月12日 23:27     hide bbsi
/*
 * Main1009.cpp
 *
 *  Created on: 2012-3-11
 *      Author: hxy
 */
#include<iostream>
#include<stdlib.h>
#include<stdio.h>
using namespace std;

struct s{
......................
阅读全部 | xueyanghan 贴于 2012年3月11日 19:57     hide bbsi
#include <stdio.h>
#include <stdlib.h>

#define N 3
int main(void) {
    puts("!!!Input Datas Like: ddd sss dd dd dd!!!"); /* prints !!!Hello World!!! */
    fflush(stdout);
    int i;
    struct student {
        int number;
        char name[20];
        int math;
......................
阅读全部 | 李瑞升 贴于 2012年3月11日 18:19     hide bbsi
上一页 303 304 305 306 307 308 309 310 311 312 下一页