首页    新闻    小组    威客    人才    下载    博客    代码贴    在线编程    论坛
代码贴随便看看C语言
//#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
abcdefg
阅读全部 | 马甲1号 贴于 2011年10月29日 19:38     hide bbsi
上一页 164 165 166 167 168 169 170 171 172 173