using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace cjt2
{
class Program
{
static void Main(string[] args)
{
......................
阅读全部
|
wp231957
贴于 2014年2月21日 19:26
hide
bbsi
<script>
/*工厂模式是用于当很多对象都要调用一个对象里的各种共同方法时*/
var page = page || {};
page.dom = page.dom || {};
//子函数1:处理文本
page.dom.Text = function () {
this.insert = function (where) {
var txt = document.createTextNode(this.url);
where.appendChild(txt);
};
};
//子函数2:处理链接
......................
阅读全部
|
Fanklola
贴于 2014年2月21日 09:20
hide
bbsi
Option Explicit
'Line3 表示时针
'Line1(1) 表示分针(长度960)
'Line2 表示秒针(长度1200)
'Timer 定时器周期1s
'Label2 标签显示当前系统时间
Dim xx1 As Integer '表盘圆心坐标
Dim yy1 As Integer
Dim MyTime, MyHour, MyMinute, MySecond As Integer '定义当前时间,时,分,秒
Dim S_ang, M_ang, H_ang As Single '定义角度变量
Dim S_rad, M_rad, H_rad As Single '定义弧度变量
Dim S_Length, M_Length, H_Length As Integer '定义表针长度变量
......................
阅读全部
|
水到渠成VB
贴于 2014年2月10日 14:56
hide
bbsi
/*2.使用嵌套循环产生下列图案:
$
$$
$$$
$$$$
$$$$$ */
#include<stdio.h>
int main(void)
{
int i,j;
for(i=0;i<5;i++)
{
......................
阅读全部
|
huzhibin
贴于 2014年2月6日 04:09
hide
bbsi
#include <stdio.h>
#define zero 0.000001
double mypow(double x,int n)
{
if(n==0) return 1.0;
double t=1.0;
for(;n>0;t*=x,n--);
return t;
}
int searchroot(double x,int n)
......................
阅读全部
|
wp231957
贴于 2014年2月2日 22:16
hide
bbsi
#include <stdio.h>
void main()
/*1.{
int i,j;
for(i=1;i<10;i++)
{
for(j=1;j<=i;j++)
printf("%d*%d=%2d\t",i,j,i*j);
printf("\n");
}
}
阅读全部
|
沧笙
贴于 2014年1月26日 15:40
hide
bbsi
/* Note:Your choice is C IDE */
#include <stdio.h>
#include <math.h>
void main()
{
double a,b,c,delt,p1,p2,x1,x2;
printf("\n ○========☆自动解一元二次方程程序☆========○\n\n-------------------------------------------------------------------------------\n\n☆(温馨提示:输入各系数的值前请把一元二次方程转化为“axx+bx+c=0”的一般形式)\n\n●请输入方程各系数的值:\n\n");
printf("○请输入a的值:\n"); scanf("%lf",&a);
printf("○请输入b的值:\n"); scanf("%lf",&b);
printf("○请输入c的值:\n"); scanf("%lf",&c);
......................
阅读全部
|
alienware328
贴于 2014年1月22日 16:21
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
#include<malloc.h>
#define OVERFLOW -2
#define FALSE -1
#define OK 0
#define ElemType int
struct LNode{
ElemType coefficient;//系数
......................
阅读全部
|
似水流年强
贴于 2014年1月22日 09:37
hide
bbsi
#include <stdio.h>
int main()
{
char *s[512];
scanf("%s", s);
*(stdin->_ptr) = '\0';
printf("------神奇的分割线开始------\n");
int len= (int)(stdin->_ptr-stdin->_base);
printf("正序输出为:%s\n", stdin->_base);
printf("倒序输出为:");
while(len>0)
......................
阅读全部
|
wp231957
贴于 2014年1月20日 14:42
hide
bbsi