Presentation Error#includeusing namespace std;struct ArcNode{int adjvex;ArcNode *next;};struct VertexNode{char vertex;ArcNode *firstedge;};const int MaxSize = 10;class ALGraph{public:ALGraph(char a[],int n,int e);ALGraph(){}char GetVex(int i);void Pu

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 16:02:37
PresentationError#includeusingnamespacestd;structArcNode{intadjvex;ArcNode*next;};structVertexNode{c

Presentation Error#includeusing namespace std;struct ArcNode{int adjvex;ArcNode *next;};struct VertexNode{char vertex;ArcNode *firstedge;};const int MaxSize = 10;class ALGraph{public:ALGraph(char a[],int n,int e);ALGraph(){}char GetVex(int i);void Pu
Presentation Error
#include
using namespace std;
struct ArcNode
{
int adjvex;
ArcNode *next;
};
struct VertexNode
{
char vertex;
ArcNode *firstedge;
};
const int MaxSize = 10;
class ALGraph
{
public:
ALGraph(char a[],int n,int e);
ALGraph()
{
}
char GetVex(int i);
void PutVex(int i,char value);
void InsertVex(int i,char value);
void DeleteVex(int i);
void InsertArc(int i,int j);
void DeleteArc(int i,int j);
void DFSTraverse(int v);
void BFSTraverse(int v);
int visited[MaxSize];
int visited2[MaxSize];
private:
VertexNode adjlist[MaxSize];
int vertexNum;
int arcNum;
};
ALGraph::ALGraph(char a[],int n,int e)
{
int i;
int k;
int j;
ArcNode *s = NULL;
ArcNode *p = NULL;
vertexNum = n;
arcNum = e;
for(i = 0;i < vertexNum; i++)
{
adjlist[i].vertex = a[i];
adjlist[i].firstedge = NULL;
}
for(i = 0;i < vertexNum;i ++)
{
visited[i] = 0;
visited2[i] = 0;
}
for(k = 0;k < arcNum;k ++)
{
cin >> i >> j;
s = new ArcNode;
s->adjvex = j;
s->next = adjlist[i].firstedge;
adjlist[i].firstedge = s;
}
for(k = 0;k < vertexNum;k ++)
{
cout

Presentation Error#includeusing namespace std;struct ArcNode{int adjvex;ArcNode *next;};struct VertexNode{char vertex;ArcNode *firstedge;};const int MaxSize = 10;class ALGraph{public:ALGraph(char a[],int n,int e);ALGraph(){}char GetVex(int i);void Pu
哥们,不把题目链接贴出来,你叫别人怎么好帮你?
我只能靠猜了.
ACM对结果的格式要求很严格.Presentation Error就是说你答案对了,但是输出格式有问题.
我估计你每行都多输出了一个空格.随便举个例子:
for(k = 0;k < vertexNum;k ++)
{
cout

presentation Presentation Error#includeusing namespace std;struct ArcNode{int adjvex;ArcNode *next;};struct VertexNode{char vertex;ArcNode *firstedge;};const int MaxSize = 10;class ALGraph{public:ALGraph(char a[],int n,int e);ALGraph(){}char GetVex(int i);void Pu 北大ACM试题1005我用C语言写的代码如下:请问为甚么总是presentation error?#include #include #define SIZE 1000struct coordinate{double x;double y;}point[SIZE];int main(){int i;int n;struct coordinate point[SIZE];double s ;int year;d 提交ACM时 Presentation Error吉林大学 acm 1009 Zorro代码如下:#include stdio.h#define M 500#define N 500void setZ(int len,char z[M][N]);void printfZ(int len,char z[M][N]);int main(){ int n,i,j; char z[M][N];bool flag=true;while(scanf(%d error:I llegal expression什么意思 英语翻译with us you could agree about why your error were not error,why mediocre work really was excellent why you could take pride in routine and slipshod presentation.这句话怎么翻译啊 统计学中 Type I error和TypeII error是指什么? software:photeshop?illustrator?I have people here do the presentation board or sheet,but I need trang vu:today I have given my presentation to my teacher and my friends quite welltrang vu:I'm so happygive a lecture这个词不是演讲吗presentation 【英语翻译】presentation presentation是什么意思 mini presentation make presentation oral presentation Presentation是什么意思 presentation是什么意思 Presentation是什么意思 oral presentation