#include <stdio.h>
#define MAX 200
int a[MAX],b[MAX],cnt=0;
void writeDat();
void jsVal()
{
void jsVal()
{ int i,j;
int a1,a2,a3,a4;
int ab,cd;
int temp;
for(i=0;i<MAX;i++)
......................
阅读全部
|
we777
贴于 2014年3月27日 17:52
hide
bbsi
// w1.cpp : 定义控制台应用程序的入口点。
//
#include <stdio.h>
#include <string.h>
#include <malloc.h>
//补前导0
void strpre(char* dest,int sum)
{
char buffer[256]={'\0'};
strcpy(buffer,dest);
while(sum>0)
......................
阅读全部
|
wp231957
贴于 2014年3月27日 16:43
hide
bbsi
package Zuoe;
public class Timme {
private int hr;
private int min;
private int sec;
public void Time()
{
hr = 0;
min = 0;
sec = 0;
......................
阅读全部
|
南墙
贴于 2014年3月27日 15:04
hide
bbsi
// w1.cpp : 定义控制台应用程序的入口点。
//
#include <stdio.h>
#include <string.h>
//补前导0
void strpre(char* dest,int sum)
{
char buffer[256]={'\0'};
strcpy(buffer,dest);
while(sum>0)
{
......................
阅读全部
|
wp231957
贴于 2014年3月26日 15:19
hide
bbsi
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. You have been warned.
#
......................
阅读全部
|
zhaoliudong
贴于 2014年3月24日 14:10
hide
bbsi
int a, b, c;
int s,p;
Console.WriteLine("请输入三角形的三条边");
a = Convert.ToInt32(Console.ReadLine());
b = Convert.ToInt32(Console.ReadLine());
c = Convert.ToInt32(Console.ReadLine());
s = Convert.ToInt32(Console.ReadLine());
p = Convert.ToInt32(Console.ReadLine());
s= (a + b + c) / 2;
s = (p - a) * (p - b) * (p - c) * p;
Console.WriteLine("Math.Sprt(s)={0}", Math.Sqrt(s));
......................
阅读全部
|
a4709
贴于 2014年3月21日 23:18
hide
bbsi
#include <stdio.h>
main()
{float y1,y2,m1,d1,m2,d2;
int i,j,d,rn;
printf("请输入两日期中各自的年、月、日:");
scanf("%f,%f,%f,%f,%f,%f",&y1,&m1,&d1,&y2,&m2,&d2);
if(y1<y2)
for(i=y1;i<y2;i++)
{ rn=((i%4==0&&i%100!=0)||i%400==0)?1:0;
for(j=m1;j<m2;j++)
switch(j)
{case 1: case 3: case 5: case 7: case 8: case 10: case 12:
......................
阅读全部
|
wahwinner
贴于 2014年3月21日 11:40
hide
bbsi
#include <stdio.h>
#include <string.h>
void strpre(char* dest,int sum)
{
char buffer[256]={'\0'};
strcpy(buffer,dest);
while(sum>0)
{
*dest++='0';
sum--;
}
int i=0;
......................
阅读全部
|
wp231957
贴于 2014年3月21日 11:00
hide
bbsi
void stracc(char* dest)
{
int len=strlen(dest);
int flag=0;
int tmp;
len--;
flag=(dest[len]-0x30+1) /10;
dest[len]=(dest[len]-0x30+1) %10+0x30;
while(len>0)
{
len--;
tmp=dest[len]-0x30+flag;
......................
阅读全部
|
wp231957
贴于 2014年3月21日 10:59
hide
bbsi