首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴wp231957的代码贴C语言
#include <stdio.h>

int  main()
{
    struct Count
    {
        int c;
        int count;
    };
    struct Count counter[256];
    int i=0;
    for(i=0;i<256;i++) {counter[i].c=i;counter[i].count=0;}
......................
阅读全部 | 2013年1月4日 22:27
#include <stdio.h>

int  main()
{
    struct Count
    {
        int c;
        int count;
    };
    struct Count counter[256];
    int i=0;
    for(i=0;i<256;i++) {counter[i].c=i;counter[i].count=0;}
......................
阅读全部 | 2013年1月2日 11:14
char* ltrim(char* source)
{
    char* p=source;
    char* p2=source;
    while(*p!='\0')
    {
        if(*p!=0x20) break;
        p++;
    }
    while(*p!='\0')
    {
        *source=*p;
......................
阅读全部 | 2013年1月2日 10:33
#include <stdio.h>
#include "func.cpp"
int  main()
{
    FILE* fp;
    fp=fopen("d:\\b.txt","r");
    char flag=0xA;
    int lines=0;
    char tline[256]={'\0'};
    char* cp=tline;
    char tmp;
    while(!feof(fp))
......................
阅读全部 | 2013年1月1日 23:04
#include <stdio.h>
#include <windows.h>
#include <string.h>

//在控制台程序下模拟跑马灯
//挺好玩的,虽然本程序段实用价值不大
//由于程序有意陷入一个死循环,故只能通过CTRL+C来结束程序运行
int main()
{
    int i,j,len,k,m;
    printf("\n\n");
    char* test="This is a small program to imitate Marquee";
......................
阅读全部 | 2013年1月1日 14:48
#include <stdio.h>
//本程序演示了用二维数组来输出一个9行9列的杨辉三角
int main(void)
{
     int n=9;
     int yhsj[9][9];
     int i,j;
     /////为二维数组赋初值
     for(i=0;i<n;i++)
         for(j=0;j<n;j++)
         {
             yhsj[i][j]=0;
......................
阅读全部 | 2013年1月1日 13:39
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
//程序目的:模拟抛硬币,看一下正面朝上反面朝上的概率都多大
int main(void)
{
    srand((unsigned)time(NULL));
    int top=0;
    int below=0;
    int tmp=0;
    for(int i=0;i<100;i++)
    {
......................
阅读全部 | 2013年1月1日 07:03
#include <stdio.h>

int main()
{
    int test[]={1,1,2,3,4,5,7,8,9,6,10,12,14,13,15,16,17,19,11};
    int i=0,j=0,tmp=0;
    int len=sizeof test/sizeof(int);
    for(i=0;i<len;i++)
    {
        for(j=i+1;j<len;j++)
        {
            if(test[i]>=test[j])
......................
阅读全部 | 2012年12月31日 09:22
http://aodag.imust.cn/acmhome/welcome.do;jsessionid=A1FD00EC0D9CF2539AE684B6FF81380F?method=index
阅读全部 | 2012年12月25日 16:25
#include "stdio.h" 
#include "windows.h"   
#define MEM_LIMIT 4096*1000   
int main(int argc, char* argv[]) 
{     
    HANDLE hjob;     
    char *job_name="J1",*pro_name="notepad";     
    int err;     
    JOBOBJECT_EXTENDED_LIMIT_INFORMATION joeli;     
    JOBOBJECT_BASIC_LIMIT_INFORMATION jbii={0};     
    STARTUPINFOA si ={sizeof(si)};     
    PROCESS_INFORMATION pi;     
......................
阅读全部 | 2012年12月25日 09:10
上一页 6 7 8 9 10 11 12 13 14 15 下一页
wp231957