首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴wp231957的代码贴全部
http://blog.csdn.net/keyeagle/article/details/6708077
阅读全部 | 2015年7月24日 09:41
#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(" ");
......................
阅读全部 | 2015年5月26日 16:06
int su=0;

void resvnum(int k)
{
if(k==0) return ;
int n=k % 10;
k/=10;
su=su*10+n;
resvnum(k);
}
阅读全部 | 2015年4月22日 10:03
#include<stdio.h>

#define N 10

int main()
{
int i,j,k;
for(i=0;i<N;i++)
{
for(k=0;k<i;k++) printf(" ");
for(j=0;j<N-i;j++)
{
......................
阅读全部 | 2015年4月10日 13:32
void chsplit(char* source,char flag,char* dest)
{
int cout=0;
while(*source!='\0')
{
if(*source==flag) cout++;
if(cout<3)
{
*dest=*source;
source++;
dest++;
}
......................
阅读全部 | 2015年4月7日 10:27
#include <stdio.h>
#include <time.h>

int datediff(int y1,int m1,int d1,int y2,int m2,int d2)
{
struct tm ptr1;
ptr1.tm_sec=10;
ptr1.tm_min=10;
ptr1.tm_hour=10;
ptr1.tm_mday=d1;
ptr1.tm_mon=m1-1;
ptr1.tm_year=y1-1900;   
......................
阅读全部 | 2015年1月9日 09:06
/*
程序功能:从键盘接收字符串输入,然后以行为单位 转存至文件
         然后从文件中提取所录入的字符串  并有序输出至屏幕
 单个字符长度不能超过255  
 控制台录入以*****(5连*)作为结束标记
 排序算法:冒泡
*/

#include <stdio.h>
#include<stdlib.h>
#include<string.h>

......................
阅读全部 | 2015年1月8日 13:07
#include <stdio.h>
#include <time.h>
#include <stdlib.h>

#define N 52

void swap(int* a,int* b)
{
int tmp;
tmp=*a;
*a=*b;
*b=tmp;
......................
阅读全部 | 2014年12月24日 15:05
#include <stdio.h>

int main(int argc, char* argv[])
{
    char buffer[256];
    fread(&buffer, sizeof(char), 1, stdin);
    while(1)
    {
        fflush(stdin);
        fread(&buffer, sizeof(char), 1, stdin);
        if(buffer[0]=='#') break;
    }
......................
阅读全部 | 2014年12月9日 09:45
#include <stdio.h>

int mypow(int x,int n)
{
int t;
_asm
{
mov eax,1;
mov ecx,n;
     lp:
imul eax,x;
sub ecx,1;
......................
阅读全部 | 2014年12月8日 11:18
上一页 1 2 3 4 5 6 7 8 9 10 下一页
wp231957