CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - algorithm parentheses and brackets
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
GUI Develop
Windows Kernel
WinSock-NDIS
Driver Develop
ADO-ODBC
GDI-Bitmap
CSharp
.net
Multimedia Develop
Communication
Shell api
ActiveX/DCOM/ATL
IME Develop
ISAPI-IE
Hook api
Screen saver
DirextX
Process-Thread
Console
File Operate
Printing program
Multi Monitor
DNA
Other
Search - algorithm parentheses and brackets - List
[
CSharp
]
shiyan2
DL : 0
运用栈实现表达式开、闭括号是否配对出现算法。先要实现栈的基本操作算法,包括初始化栈、进栈、退栈等。本程序中,表达式中的元素限定为char型,表达式的长度<100。表达式输入的为一个以“#”为结束标志的字符串。若用户输入的表达式中少了左括号或少了右括号,打印“括号不匹配”。若输入的表达式左右括号匹配,打印“括号匹配”。-Use stack to achieve expression open, close parenthesis pair appeared algorithm. The need to achieve the basic operation of the stack algorithm, including the initialization stack, the stack, the stack back. The program expression elements qualified for the char type expression length < 100. Expression input for a " #" marks the end of a string. User input expression less left parenthesis less a right parenthesis, print " brackets do not match." If the input expression left and right parentheses matching, print brace matching.
Date
: 2025-12-29
Size
: 1kb
User
:
陈序员
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.