首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
#include<stdio.h>
#define N 200
struct child
{
 char name[10];
 char sex[3];
 int age;
 int height;
 float weight;
 struct {
  int year;
  int month;
......................
阅读全部 | wangbk603 贴于 2015年3月22日 20:25     hide bbsi
#define N 200
#include <graphics.h>
#include <stdlib.h>
#include <dos.h>
#define LEFT 0x4b00
#define RIGHT 0x4d00
#define DOWN 0x5000
#define UP 0x4800
#define ESC 0x011b
int i,key;
int score=0;/*得分*/
int gamespeed=50000;/*游戏速度自己调整*/
......................
阅读全部 | 夏殇 贴于 2015年3月19日 00:11     hide bbsi
怎样用C语言写一段可以在C/S上运行的 判断两条直线的关系
阅读全部 | 秦庆lyq 贴于 2015年3月18日 09:55     hide bbsi
#include<stdio.h> 
#define MAXN 20
int a[MAXN][MAXN];
main()
{
int min, /* 存储最小值 */
    max; /* 存储最大值 */
int row,col,n;
printf("Please input the order of the matrix:\n");/* 输入方阵的阶次 */
scanf("%d",&n);
printf("Please input the elements of the matrix,\n from a[0][0] to a[%d][%d]:\n",n-1,n-1);
for(row=0;row<n;row++)
......................
阅读全部 | whc19940817 贴于 2015年3月17日 23:27     hide bbsi
#include<stdio.h>
main()
{
int i,j,x=1,y=3,a[6][6]={0};
for(i=1;i<=25;i++)
{
a[x][y]=i;
if(x==1&&y==5)
{
x=x+1;
continue;
}
......................
阅读全部 | lyd910915 贴于 2015年3月17日 13:40     hide bbsi
#include<stdio.h>
void main()
{
    char a[]="I am a boy",b[20],*p1,*p2;
int i;
p1=a;
p2=b;
for(;*p1!='\0';p1++,p2++)
*p2=*p1;
p2='\0';

for(i=0;b[i]!='\0';i++)
......................
阅读全部 | classroom 贴于 2015年3月15日 23:03     hide bbsi
#include<stdio.h>
void main()
{
    char a[]="I am a boy",b[20],*p1,*p2;
int i;
p1=a;
p2=b;
for(;*p1!='\0';p1++,p2++)
*p2=*p1;
p2='\0';

for(i=0;b[i]!='\0';i++)
......................
阅读全部 | classroom 贴于 2015年3月15日 23:01     hide bbsi
#include<stdio.h>
void main()
{
    char a[]="I am a boy",b[20],*p1,*p2;
int i;
p1=a;
p2=b;
for(;*p1!='\0';p1++,p2++)
*p2=*p1;
p2='\0';

for(i=0;b[i]!='\0';i++)
......................
阅读全部 | classroom 贴于 2015年3月15日 23:01     hide bbsi
#include<stdio.h>
void main()
{
    char a[]="I am a boy",b[20],*p1,*p2;
int i;
p1=a;
p2=b;
for(;*p1!='\0';p1++,p2++)
*p2=*p1;
p2='\0';

for(i=0;b[i]!='\0';i++)
......................
阅读全部 | classroom 贴于 2015年3月15日 23:01     hide bbsi
#include "cmath"
#include "iostream"
using namespace std;
class CPoint
{
public:
CPoint(){cout<<"CPoint类的无参构造函数被调用"<<endl;}
CPoint(int xx,int yy);
CPoint(CPoint &p);
~CPoint(){cout<<"CPoint类的析构函数被调用"<<endl;}
getx();
gety();
......................
阅读全部 | 一天一天谎言 贴于 2015年3月15日 15:10     hide bbsi
上一页 107 108 109 110 111 112 113 114 115 116 下一页