1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
makkiz [27]
4 years ago
7

I keep getting this error: postfix.cpp: In function ‘double RPN_evaluation(std::string)’: postfix.cpp:42:26: error: cannot conve

rt ‘__gnu_cxx::__alloc_traits > >::value_type {aka std::basic_string }’ to ‘char’ for argument ‘1’ to ‘int isOperand(char)’ if(isOperand(expr.at(g))){ ^ postfix.cpp:96:1: warning: control reaches end of non-void function [-Wreturn-type] } I am not sure what I am doing wrong, help please
Computers and Technology
1 answer:
Svetradugi [14.3K]4 years ago
3 0

Answer:

expr.at(g) returns a string, not a char. They are not the same thing and that is what the compiler is complaining about.

You might be interested in
List and describe the five moral dimensions that are involved in political, social, and ethical issues. Which do you think will
lukranit [14]

The five moral dimensions are:

  • Information rights and obligations.
  • Property rights and obligations
  • System quality.
  • Quality of life,
  • Accountability and control.

I see that Quality of life is most difficult for society to deal with as there ae lots of rich and poor people and the government have not been able to bridge the gap between them.

<h3>What are the morals about?</h3>

The five main moral dimensions that are known to be written above are said to be tied together in regards to ethical, social, and political issues that are seen in any information society.

Therefore, The five moral dimensions are:

  • Information rights and obligations.
  • Property rights and obligations
  • System quality.
  • Quality of life,
  • Accountability and control.

Learn more about moral dimensions from

brainly.com/question/15130761

#SPJ1

3 0
2 years ago
Prepare a algorithm visualization for the Tower of Hanoi when 4 disks are to be moved from spindle #1 to spindle #3.
Setler [38]

Answer:

follwing is the code for Tower of Hanoi for n disks.

#include <iostream>

using namespace std;

void towofhan(int n,char source,char aux,char dest)//function for tower of hanoi..

{

if(n<0)

return ;

   if(n==1)//base case.

   {

       cout<<"Move disk 1 from "<<source<<" to spindle "<<dest<<endl;

       return;

   }

   towofhan(n-1,source,dest,aux);//recursive call.

   cout<<"move disk "<<n<<" from "<<source<<" to spindle "<<dest<<endl;

   towofhan(n-1,aux,source,dest);//recursive call.

}

int main() {

   int n=4;

   towofhan(n,'1','2','3');//function call.

   return 0;

}

Explanation:

If there is only 1 disk then we have to move the disk from source to destination.

Then after that we will apply recursion to solve the problem.

We have to work on only nth disk else will be done by the recursion.

First call recursion to move n-1 disks from source to auxiliary.

Then move nth disk from source to destination spindle.

Now move n-1 disks that are on the auxiliary spindle to destination spindle.

6 0
3 years ago
8.
mario62 [17]

Answer:

<em>Lillipop</em>

Explanation:

If you have your hands correctly placed on the keyboard, the only hand needed to type the word, "lillipop", is the left hand!

<em>Hope I was of Assistance</em><u><em> #SpreadTheLove <3</em></u>

5 0
3 years ago
A custom information feel that helps users find a specific document is called
vichka [17]
A custom information feel that "HELPS USERS FIND A SPECIFIC DOCUMENT"... is what I got out of that sentence.

ANSWER: Search Box?
8 0
3 years ago
A _______ is used to analyze and summarize your data without graphical support
kkurt [141]
<span>A Pivot table is used to analyze and summarize your data without graphical support</span>
3 0
4 years ago
Read 2 more answers
Other questions:
  • You are able to change the formatting of a table after it is inserted into a placeholder. True or false
    9·2 answers
  • Working in a meat factory packaging and shipping the meat deliveries falls into which agricultural cluster?
    7·1 answer
  • Write a program with a function that accepts a string as an argument and returns a copy of the string with the first character o
    11·1 answer
  • A new company will have 40 workstations in one building sharing a single network. All users must be able to share files and prin
    9·1 answer
  • ____ devices are high-performance storage systems that are connected individually to a network to provide storage for the comput
    5·1 answer
  • A network administrator was testing an IPS device by releasing multiple packets into the network. The administrator examined the
    13·2 answers
  • W t f is a ground fault circuit interrupter?
    6·2 answers
  • How do I fix this? It stopped adding up my points when i did one of the challenges.
    11·2 answers
  • Anyone on ps4 willing to trade me a fennec or McClaren on rocket league?
    6·2 answers
  • You are designing software for elderly people. Which two features can you
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!