#include<stdio.h>
#include<math.h>
void main()
{
double y;
int x,m;
for(y=1;y>-1;y-=0.1)
{
m=asin(y)*10;
for(x=0;x<62;x++)
{
if(x==m||x==31-m||x==(93-m)||x==(m+62)) printf("*");else printf(" ");
......................
阅读全部
|
wp231957
贴于 2015年5月26日 16:06
hide
bbsi
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#define Insert 1 //增加订单
#define Query 2 //查找订单
#define Update 3 //修改订单
#define Delete 4 //删除订单
#define List 5 //列出所有订单
#define Quit 0 //退出系统
FILE *fp;
struct Node
{
......................
阅读全部
|
jack1233333
贴于 2015年5月21日 19:32
hide
bbsi
1 #!/bin/bash
2
3 date #显示当前日期
4
5 year=$(date +%Y)
6 a=$(date +%m)
7 b=$(date +%e)
8 #b=8
9 echo "please enter you birthday months:"#输入你的生日的月份
10 read month
11 if [ $month -gt 12 ]
12 then
......................
阅读全部
|
liYX9553
贴于 2015年5月18日 21:01
hide
bbsi
include<stdio.h>
2
3 long str16_num10(char *str);// 形参str是字符串所给的16进制数。
4 //返还值x是字符串的10进制数。
5 int ch16toi(char ch);//返回字符ch对应16进制数。
6
7 int main()
8 {
9 long s = 0;
10 char str[] = "f";
11 s = str16_num10(str);
12 printf("%d\n",s);
......................
阅读全部
|
liYX9553
贴于 2015年4月30日 20:33
hide
bbsi
#include<stdio.h>
2
3 int year_loap(int n);//判断形参n是否为润年。返回值1或2.
4 int year_num(int yy,int mm,int dd);//计算当前月份,为这一年的第几天。
5
6 int main()
7 {
8 int year = 2012, month = 5, day =23;
9 int x = 0;
10
11 x = year_num(year,month,day);
12 printf("%d\n",x);
......................
阅读全部
|
liYX9553
贴于 2015年4月30日 20:28
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
struct book_information{
char name[20]; //书名
char chuban[20]; //出版
char year[5]; //年号
char ISBN[20];
char number[20]; //书号
char zhubian[20]; //主编
char shuliang[2];
......................
阅读全部
|
赵余
贴于 2015年4月29日 23:50
hide
bbsi
#import <Foundation/Foundation.h>
#include <stdint.h>
void sort(int *, int *);
int main(int argc, const char * argv[]) {
@autoreleasepool {
// insert code here...
NSLog(@"Hello, World!");
int *p1, *p2;
int a,b;
printf("input:\n");
......................
阅读全部
|
tom7748
贴于 2015年4月26日 19:21
hide
bbsi