//#ifndef STACK_H
#define STACK_H
#include<iostream>
using namespace std;
template<typename T> class stack;
template <class T>
class stacknode
{
friend class stack<T>;
T data;
stacknode *next;
stacknode(const T& t)
......................
阅读全部
|
潇洒刘家郎
贴于 2011年11月2日 04:47
hide
bbsi
/* just a test */
#include <stdio.h>
int main(int argc, char *argv[]){
printf("Hello world");
return 0;
}
阅读全部
|
yl291145401
贴于 2011年11月1日 02:36
hide
bbsi
单链表选首领问题
#include <stdio.h>
#include <stdlib.h>
struct node
{
int code;
struct node *next;
}NODE,*LinkList;
LinkList create_list(int n)
{
LinkList head,p;
int i;
......................
阅读全部
|
N920786312
贴于 2011年10月31日 20:52
hide
bbsi
#include<stdio.h>
main()
{printf("hello world!\n");
}
阅读全部
|
饭桶
贴于 2011年10月29日 22:07
hide
bbsi
/*
计算a+aa+aaa+...+aa……aa,n表示a的位数
*/
#include<stdio.h>
int main()
{
int n,a,i,c,tmp;char s[100000];
while(scanf("%d%d",&a,&n)!=EOF)
{
c=0;
for(i=0;i<n;i++)
{
......................
阅读全部
|
ppfly
贴于 2011年10月29日 21:51
hide
bbsi