腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
如何找出错误的内插表达式?
、
、
); { int result;
postfix
= infixToPostFix(
infix
); result = evaluatePostFix(
postfix
); cout << "result: "
浏览 2
提问于2015-06-30
得票数 2
回答已采纳
2
回答
如何在c++中使用堆栈检查表达式是中缀还是后缀
、
、
、
我试图写一段代码,但我做不到,当我试图从网络上获取一些想法时,它有将
infix
转换为
postfix
的代码,但我需要一个代码来帮助我确定我的表达式是
infix
还是
postfix
。谢谢。); { int result; cin >>
infix
;
postfix
浏览 1
提问于2020-04-03
得票数 0
2
回答
继续运行程序,直到用户输入退出。
、
、
我的主要功能
Postfix
post;char
infix
[size]; cin>>
infix
; char
postfix
[size]; post.
infix
_to_
post
浏览 3
提问于2015-10-21
得票数 2
回答已采纳
2
回答
C++中的
Infix
到后置转换器
、
、
、
我编写了一个程序,在
infix
2
postfix
()函数的帮助下,将
infix
表达式转换为后缀。请检查我的代码,并建议如何使其更简单和更易读。(string
infix
) int i = 0; string
postfix
; {
postfix
浏览 0
提问于2022-05-29
得票数 4
回答已采纳
1
回答
为什么使用堆栈作为ADT崩溃将
infix
转换为后缀符号?
、
、
、
、
(char
infix
[],char
postfix
[]);void
infix
_to_
postfix
(char
infix
[],char
postfix
[]) stack s;{ cout<<"\nEnter the
infix
expression::\n"; cin>>
infix
浏览 3
提问于2014-02-22
得票数 1
1
回答
插入到后缀-包括负值
、
我正在制作一个函数,将中缀数学字符串转换为后缀。这就是我所拥有的: std::string toPostfix(std::string& infixStr, std::string& postfixStr, std::string& first_nr, std::string& second_nr, char oper, char prev_oper) { i
浏览 42
提问于2020-04-06
得票数 0
回答已采纳
2
回答
代码检查:转换器
、
、
、
public static StringBuffer infixToPostfix(StringBuffer
infix
) throws InvalidCharacterException<String>();
infix
.append(')'); for(int i = 0; i <
infix
.length
postfix
.append(
infix
.charA
浏览 0
提问于2013-11-21
得票数 -6
回答已采纳
6
回答
空指针赋值错误
、
#include<iostream.h>{ cout<<"Enter
postfix
exp:"; cout<<"Enter
infix
exp: "; cout<<en
浏览 0
提问于2011-04-21
得票数 0
1
回答
infix
到后缀
#include<iostream>#include<string> getline(cin,
infix
);} //...............
浏览 2
提问于2010-10-03
得票数 2
1
回答
带括号的
Infix
到后缀转换器
、
、
、
infix
.isEmpty()){
infix
=
infix
.substring(1);
postFix
=
postFix
+ operand; else ifstack.isEmpty()){
浏览 1
提问于2013-09-10
得票数 0
回答已采纳
2
回答
C++中的
Infix
到后缀转换器没有输出
、
、
、
、
[]) int i = 0, j = 0; char *
postfix
= (char *)malloc((strlen(
infix
+1)) * sizeof(char)); { i++; j
浏览 9
提问于2022-05-28
得票数 0
回答已采纳
2
回答
带堆栈的Java中缀/后缀转换器
、
infix
to
postfix
我根本不知道我可以从哪里开始,以及函数需要如何看void main(String[] args) { String
postfix
1 = "372*-";int eval1 = -11; St
浏览 0
提问于2016-05-07
得票数 0
1
回答
字符串输出中出现笑脸的原因是什么?
这个程序基本上将
infix
转换为
postfix
。问题是,-和/变成了这样的笑脸:) #includenotation : "<<endl; s
浏览 0
提问于2012-05-11
得票数 1
回答已采纳
6
回答
使用堆栈将
infix
表达式转换为后缀(C++)
、
、
、
但是,这个名为convertToPostfix(char * const
inFix
, char * const
postFix
)的函数(它负责使用堆栈将数组
inFix
中的
inFix
表达式转换为数组
postFix
下面是将从
inFix
转换为
postFix
的函数和需要帮助修复的convertToPostfix(char * const
inFix
, char * const
postFix
)的代码: void ArithmeticExp
浏览 8
提问于2012-10-02
得票数 9
3
回答
是否有一种方法可以在Rust宏中匹配优先的
infix
操作?
、
一个非常简单的例子是在Rust宏中实现基本的加法和乘法。我不完全确定这是可能的,因为Rust宏的语法有限。(term, terms*) => { parse_mul!(term) + (parse_mul!(terms))* } // this is not actual Rust!
浏览 6
提问于2016-04-19
得票数 7
回答已采纳
2
回答
如何在返回字符串的函数中修复未忽略的空值?
、
){ string
postfix
; while(
infix
[i]!='\0'){
postfix
[j++]=
infix
[i++];
浏览 0
提问于2019-07-29
得票数 0
回答已采纳
2
回答
使用堆栈返回错误-1073741510到后缀
、
所以,我用C++和STL做数据结构和C++,我试着用堆栈实现
Infix
to
postfix
。我不知道这个代码有什么问题?没有编译错误,当代码运行时返回-1073741510。) stack <char> st; string
postfix
; {
postfix
.push_back(
infix
浏览 1
提问于2022-09-15
得票数 0
1
回答
infix
to
postfix
expressrion不显示任何输出
、
、
、
,
postfix
; getline(cin,
infix
); if(
infix
[x]=='-' ||
infix
[x]=='+' ||
infix
[
浏览 7
提问于2018-04-29
得票数 0
1
回答
未在
infix
中附加到后缀转换的运算符
、
、
、
、
但是,我的程序被困在了
infix
2
postfix
()中的最后一个
infix
2
postfix
()循环中。为什么一堆操作符不清空? } while(scanf.hasNextLine()){//Convert
Infix</
浏览 4
提问于2013-11-12
得票数 0
2
回答
运算符在作为字符串提供的
infix
表达式的后缀表示法的输出中被错误地放置。
、
、
(1);
postFix
=
postFix
+ operand; else ifstack.peek().equals("(")){ }stack.isEmpty()){
postFix</e
浏览 0
提问于2018-09-18
得票数 0
点击加载更多
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券