首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
// ConsoleApplication1.cpp : 定义控制台应用程序的入口点。
//

#define _CRT_SECURE_NO_WARNINGS     //该死不


#include <stdio.h>
#include <malloc.h>

int main()
{
char* s[200];
......................
阅读全部 | wp231957 贴于 2013年11月6日 20:37     hide bbsi
#include <stdio.h>
void main()   
{
     unsigned short int a;
     short int b=-3;
     a=b;
     printf("%u\n",a);
     system("pause");     
}
阅读全部 | forwardliu 贴于 2013年11月5日 21:48     hide bbsi
#include<stdio.h>
int main()
{
int n,a[10][10],m,j,i;
scanf("%d",&n);
while(n--)
{
scanf("%d",&m);
a[1][1]=1;
for(i=1;i<=m;i++)
{
for(j=2;j<=m+1;j++)
......................
阅读全部 | 珍惜zym 贴于 2013年11月5日 17:37     hide bbsi
#include<stdio.h>
int main()
{
int n,a[10][10],m,j,i;
scanf("%d",&n);
while(n--)
{
scanf("%d",&m);
a[1][1]=1;
for(i=1;i<=m;i++)
{
for(j=2;j<=m+1;j++)
......................
阅读全部 | 珍惜zym 贴于 2013年11月5日 17:36     hide bbsi
#include <stdio.h>
#include <windows.h>
#include <time.h>
main()
{
int a,c,g,h,i;
srand(time(NULL));
a=rand()%100+1;
printf("请选择等级:1 菜鸟级\n,2 新手级\n,3 高手级\n,4 骨灰级\n,5 神级\n");
scanf("%d",&c);
    if (c==1) 
{printf("你有20次机会:");
......................
阅读全部 | zzs 贴于 2013年11月3日 12:46     hide bbsi
#include<stdio.h>
void main()
{
    int i;
    struct student
   {
       int num;
       char name[4];
       int  tel;
       char add[10];
   }stu[3];
   for(i=0;i<3;i++)
......................
阅读全部 | 爱追求 贴于 2013年11月2日 16:47     hide bbsi
#include <stdio.h>
#include <time.h>
void main()
{
int a, b;
struct tm *tmptr;
time_t secnow;
time(&secnow);
tmptr = localtime(&secnow);
int hour1, min1;
hour1 = tmptr->tm_hour;
min1 = tmptr->tm_min;
......................
阅读全部 | LQASD 贴于 2013年10月31日 23:05     hide bbsi
#include <stdio.h>
#include <time.h>
void main()
{
int a, b;
struct tm *tmptr;
time_t secnow;
time(&secnow);
tmptr = localtime(&secnow);
int hour1, min1;
hour1 = tmptr->tm_hour;
min1 = tmptr->tm_min;
......................
阅读全部 | LQASD 贴于 2013年10月31日 23:04     hide bbsi
main()
{    
     float x,y;
     printf("x=");
     scanf("%f",&x);
     if(x<0)  y=0;
     else
         if(x<10)  y=x;
         else
             if(x<20) y=10;
             else y=-0.5*x+20;
       printf("y=%f,",y);
......................
阅读全部 | 仌深蓝 贴于 2013年10月30日 17:50     hide bbsi
#include "stdio.h"
#include "malloc.h"
#define MaxSize 100
typedef char ElemType;

typedef struct node
{
ElemType data;
struct node *lchild;
struct node *rchild;
}BTNode;
void CreateBTNode(BTNode * &b,char *str)
......................
阅读全部 | linlin0987 贴于 2013年10月24日 20:31     hide bbsi
上一页 126 127 128 129 130 131 132 133 134 135 下一页