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

int main()
{
    int list[row][col]={458,45,555,458,55,6454,45,89,55,68,6969,222};
    int* tmp=list[0];
    int num=sizeof list/sizeof(int);
    int i=0,j=0;
    while (1)
    {
......................
阅读全部 | 2012年12月14日 22:29
#include<stdio.h>

struct Count
{
    int c;
    int count;
};


int main()
{
    int list[2][3]={4,55,6,44,55,55};
......................
阅读全部 | 2012年12月14日 22:11
#include<stdio.h>
#define row 2
#define col 3

int main()
{
    int list[row][col]={458,45,555,458,55,454};
    int rets[row*col]={-1};
    int i=0,j=0,m=1;
    int *tmp;
    int num=sizeof list/sizeof(int);
    tmp=list[i];
......................
阅读全部 | 2012年12月14日 22:10
#include <afx.h>
#include <stdio.h>

int main(void)
{
    int lo, hi;
    CString str;
    CStdioFile fFibo;
    
    fFibo.Open("FIBO.DAT", CFile::modeWrite |
        CFile::modeCreate | CFile::typeText);
    
......................
阅读全部 | 2012年12月14日 20:37
#include <stdio.h>
#include <windows.h>
#include <mmsystem.h>   //需要引用Winmm.lib
int main(void)
{
    PlaySound("die.wav",NULL,SND_ALIAS|SND_ASYNC);
    while(1);
    return 0;
}
阅读全部 | 2012年12月13日 09:14
#include <stdio.h>
#import "c:\Program Files\Common Files\System\ado\msado15.dll" no_namespace rename ( "EOF", "adoEOF" ) 

int main(void)
{
 
    return 0;
}
阅读全部 | 2012年12月12日 14:06
http://www.programfan.com/club/showpost.asp?id=16707
阅读全部 | 2012年12月12日 10:44
http://msdn.microsoft.com/en-us/library/ms710252.aspx
阅读全部 | 2012年12月12日 10:44
#include<stdio.h>
#include<string.h>

int main()
{
    int i;
    char tmp[3]={'\0'};
    char* test="abcdefghijklmnopqrstuvwxyz";
    for(i=0;i<(int)strlen(test);i++)
    {
        tmp[1]=((test[i])%(0x60))%10+0x30;
        tmp[0]=(test[i]%0x60)/10+0x30;
......................
阅读全部 | 2012年12月8日 19:11
#include<stdio.h>

int main()
{
    int rui[12]={31,29,31,30,31,30,31,31,30,31,30,31};
    int ping[12]={31,28,31,30,31,30,31,31,30,31,30,31};
    int ruiflag=0;
    int day,month,year,sum=0;
    printf("\nplease input year,month,day\n");
    scanf("%d,%d,%d",&year,&month,&day);
    if((year%4==0 &&year%100!=0) || year%400==0) ruiflag=1;
    for(int index=0;index<month-1;index++)
......................
阅读全部 | 2012年12月8日 18:30
上一页 6 7 8 9 10 11 12 13 14 15 下一页
wp231957