compile is OK,but something wrong with link,I don't know what the matter. Help!
The code as follows:
//stack.h
#include<iostream.h>
template<class TYPE>
class stack
{public:
stack(int...
Type: Posts; User: gjgcstick
compile is OK,but something wrong with link,I don't know what the matter. Help!
The code as follows:
//stack.h
#include<iostream.h>
template<class TYPE>
class stack
{public:
stack(int...
There is a program of simple encryption and decryption ,it pass the compile and build,but stop at the running process.No whether how I input character thought keyboard,it couldn't end with the...
I think next time I will be more conscious about it.I'm a chinese student and is perparing for Postgraduate entrance exam majored in computer science .
I really interested in it. Thanks very much...
I changed my former code and it shows as follows ,compiling and running with VC shows OK this time!
It is because some semanteme error in function which lead to dead recycle I think!
...
The code:
#include<stdio.h>
#include<stdlib.h>
#define MaxSize 50
char postexp[MaxSize];
typedef struct{
char elem[MaxSize];
int top;}SqStack;
void InitStack(SqStack *&s)
OK,I have make it.Change one sentence.And here it is:
#include<stdio.h>
int test(int sum)
{int x;
scanf("%d",&x);
if(x==0)...
well, I first make it like this:
#include<stdio.h>
int test(int sum)
{int x;
scanf("%d",&x);
...
I have some problem with a small recurse program,debug is OK,but the running result is incorrect.The function of the program is to calculate a total addition result of the variable x, may be there...
The details as follows:
#include"stdio.h"
#include"malloc.h"
#define MaxSize 50
typedef int ElemType;
typedef struct
{ElemType elem[MaxSize];
int length;