首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看全站
#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++)
{
......................
阅读全部 | wp231957 贴于 2015年4月10日 13:32     hide bbsi
#include<iostream>
#include<string>
using namespace std;
using std::string;
/*这是一个用于人事管理的题,要求核对身份证号和生日信息,可我写的只能循环一次,求问怎么改才能循环*/
class Date
{
public:
/*Date(int y,int m,int d)
{
year=y;
month=m;
......................
阅读全部 | 学渣翻身 贴于 2015年4月9日 16:19     hide bbsi
/*通讯录管理*/
 #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define M 50//记录最大值
int Menu_select(); 
typedef struct ElemType{
char name[20];
char tel[15];
char email[20];
char ad[15];
}ElemType;
......................
阅读全部 | 刘京佂 贴于 2015年4月9日 15:54     hide bbsi
/*通讯录管理*/
 #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define M 50//记录最大值
int Menu_select(); 
typedef struct ElemType{
char name[20];
char tel[15];
char email[20];
char ad[15];
}ElemType;
......................
阅读全部 | 刘京佂 贴于 2015年4月9日 15:49     hide bbsi
#include<stdio.h>
int main()
{
   printf("Hello bbs!/n");
   return 0;
}
阅读全部 | 唯风相随 贴于 2015年4月9日 09:28     hide bbsi
#include <stdio.h>
int main()
{
float x,y,result;
char w;
printf("イルラ1=");
scanf("%d",&x);
printf("イルラ2=");
scanf("%d",&y);
printf("ラヨキ・");
scanf("%c",&w);
switch (w)
......................
阅读全部 | KING泉 贴于 2015年4月8日 23:11     hide bbsi
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++;
}
......................
阅读全部 | wp231957 贴于 2015年4月7日 10:27     hide bbsi
#include<stdio.h>
#define PI 3.1415926
main()
{
int r;float *s;
float yuan(int,float);
scanf("%d",&r);
s=&yuan(r);
printf("圆的面积为",yuan(r));
        return 0;
}

......................
阅读全部 | 多久变大神 贴于 2015年4月6日 21:06     hide bbsi
#include <iostream>
#include <malloc.h>
using namespace std;
typedef struct
{
    float coef;
    int expn;
}ElemType;
typedef struct PolyNode
{
    ElemType data;
    struct PolyNode *next;
......................
阅读全部 | 一天一天谎言 贴于 2015年4月6日 15:48     hide bbsi
#include <iostream>
#include <malloc.h>
using namespace std;
typedef struct
{
    float coef;
    int expn;
}ElemType;
typedef struct PolyNode
{
    ElemType data;
    struct PolyNode *next;
......................
阅读全部 | 一天一天谎言 贴于 2015年4月6日 15:29     hide bbsi
上一页 199 200 201 202 203 204 205 206 207 208 下一页