#include<iostream>
using namespace std;
struct BTNode
{
int data; //数据域
BTNode *lchild;//指向左子树的指针
BTNode *rchild;//指向右子树的指针
};
class BinaryTree
......................
阅读全部
|
mirrorslienc
贴于 2013年11月16日 22:22
hide
bbsi
#include <stdio.h>
#include <string.h>
int main()
{
char tmp[100]= {'\0'};
char* t="T/TOOL_NUM/ MO6";
char* subt="/TOOL_NUM/";
char* _subt="02";
char* newt=strstr(t,subt);
if(newt==NULL)
{
......................
阅读全部
|
wp231957
贴于 2013年11月13日 14:00
hide
bbsi
#include<stdio.h>
#include<stdlib.h>
typedef char ElemType;
typedef struct linknode
{
ElemType data;
struct linknode * next;
int length;
}LiStack;
void InitStack(LiStack *&s);
......................
阅读全部
|
ldj34089850
贴于 2013年11月10日 10:08
hide
bbsi
#include"stdio.h"
main()
{
char a[5];
int i;
for(i=0; i<5; i++);
scanf("%c%c%c%c%c",a[i]);
if(a[i]>='A'&&a[i]<='Z') a[i]=a[i]+32;
printf("%c%c%c%c%c", a[i]);
}
阅读全部
|
c盲
贴于 2013年11月9日 16:35
hide
bbsi
// 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<iostream>
#include<string>
using namespace std;
struct node{
char data;
node *lch,*rch;
};
void creat(node*p,string str,int r)
{
p->data=str[r];
if(str[2*r+1]=='#'||r*2+1>str.size()-1)
p->lch=NULL;
......................
阅读全部
|
qq183340093
贴于 2013年11月6日 20:30
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