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]
3 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]3 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
Discuss how and why video game hardware affects game design and where you think the next generation of platforms will change tho
katovenus [111]
Ever since video games were first released, graphics have been a huge selling point for popular games. On today's market, most new AAA titles (games with the largest available budget) are focused on improving graphics over previous AAA titles. But improvements in graphics requires a more difficult calculation for the computer hardware. When working with high resolution textures, the hardware need to be able to load in assets faster than ever and since there are physical limitations to how fast these assets can be loaded by the hardware, game designers have to limit their assets size. Without limitations most hardware wouldn't be able to handle the ever growing size of assets. So a game designer is limited by the power of the current hardware when designing assets. However since improvements are made every year on hardware, improvements in graphics quality and the like can also be made but will be limited to the hardware limitations of the future hardware. On a side note, virtual reality graphics were hard to render at a decent resolution a couple of years ago due to hardware limitations. But with the improvement in hardware came also the improvements in resolution and responsiveness of the virtual reality experience. Another aspect of video hardware is also the graphics drivers, compatibility, game engine and much more, but these are the basics of why hardware affects game design.
6 0
3 years ago
What are the 5 general terms of the fair use rule
Andrews [41]

the purpose and character of your use.

the nature of the copyrighted work.

the amount and substantiality of the portion taken, and.

the effect of the use upon the potential market

In its most general sense, a fair use is any copying of copyrighted material done for a limited and “transformative” purpose, such as to comment upon, criticize, or parody a copyrighted work. Such uses can be done without permission from the copyright owner

the nature of the copyrighted work; the amount and substantiality of the portion used in relation to the copyrighted work as a whole; and. the effect of the use upon the potential market for or value of the copyrighted work

uwu hope dis halpz!

5 0
3 years ago
01110111 01101000 01100001 01110100 00100000 01101001 01110011 00100000 00110001 00101011 00110001
Lera25 [3.4K]
Same lol thesis so me right now
7 0
4 years ago
If an algorithm created to help make hiring decisions is based on previous unfair decisions, then the algorithm may be
Sergio [31]

If an algorithm created to help make hiring decisions is based on previous unfair decisions, then the algorithm may be flawed.

<h3>What are algorithms being used for?</h3>

Algorithms are known to be tools that are made to help in calculation, data processing, and a kind of automated reasoning.

Hence, If an algorithm created to help make hiring decisions is based on previous unfair decisions, then the algorithm may be flawed.

Learn more about algorithm from

brainly.com/question/23282908

#SPJ1

6 0
2 years ago
time to throw poggers xqc time to throw pogchamp time to throw pogchamp time to throw pogchamp time to throw pogchamp time to th
Effectus [21]
Yes thank you very much
6 0
3 years ago
Read 2 more answers
Other questions:
  • A ____ is a copy that is kept in case values need to be restored to their original state.
    5·1 answer
  • What are the primary functions of motor oil? a. Reduce friction and prevent wear b. Keep engine surfaces clean c. Remove heat to
    11·1 answer
  • PLS ANSWER ASAP!
    9·1 answer
  • Which type of business is best for Juanita to start? a corporation, because she needs a large investment to get started a sole p
    13·2 answers
  • Which cell address indicates the intersection of the first row and the first column in worksheet?
    12·2 answers
  • Identify a true statement of a JavaScript program in a web form.
    15·1 answer
  • Create a dictionary that will hold AT LEAST 3 categories for food with at least 3 foods for each category. E.g. Fruits --&gt; Ap
    6·1 answer
  • Which language is written using 0s and 1S​
    11·1 answer
  • Why is it important to consider the clients temperature before doing the foot spa services?​
    13·1 answer
  • g Write a function number_of_pennies() that returns the total number of pennies given a number of dollars and (optionally) a num
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!