?? textintosuffix.c
字號:
#define MaxQueueSize 100
#include"InToSuffix.h"
#include"string.h"
int main()
{
char a[] = "2*(3+2*(2+3))#";
char m;
int n;
SeqQueue Q;
printf("\n\nThe indix of the expression is:%s\n", a);
n = strlen(a);
if( 0 == InToSuffix( a, &Q, n ) )
printf("\n\nFail!\n");
else
{
printf("\n\nSuccess!\n");
printf("\n\nThe suffix of the expression is:");
while(1)
{
if( 0 == QueueNotEmpty(Q) )
{
printf("\n\n");
return 0;
}
if( 0 == QueueDelete( &Q, &m ) )
{
printf("\n\nWrong when call the QueueDelete()!23");
return 0;
}
else
printf("%c", m );
}
}
return 1;
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -