Questions tagged [operand]

177 questions
0
votes
6 answers

Java: meaning of operand statement

I found this statement in a classmate's code, and I do not know what it means. I cannot figure out the order of operations or the meaning from there. Thanks in advance return a > b ? a > c ? a : c : b > c ? b : c;
0
votes
1 answer

Delphi : Operator not aplicable to this operand type

im a beginner to Aplication forms in Delphi, i need a little help please. So its basically a program that does Aritmetic count for numbers from Memo box. I wanna also add interval to it. (-15;20> And i wanna do it for all ODD numbers. Variables…
Solomone
  • 13
  • 5
0
votes
1 answer

Getting no match for 'operator<' error. C++

I have a project I'm working on from stanford's CS106B, which is boggle. I have a struct, dieLocation, which is supposed to represent the location of a die on my Boggle board. typedef struct dieLocation { int row, column; }dieLocation; I then…
0
votes
1 answer

llvm : lower 3 operands to 2 operands instruction

Currently llvm's add, sub,... instructions require 3 operands : dest, src1, src2. How can I write a custom "add" instruction that only supports 2 operands ? Eg : dest = dest + src1. I tried this in the .td file, but it didn't work : defm Reg:…
namanhams
  • 546
  • 3
  • 10
0
votes
2 answers

Operand should contain 1 column(s)

So I am trying to write a SQL statement as follows... I need to Find a list of artist names, the number of CDs they have produced, and the average price for their CDs. Only returning results for artists with more than one CD. Problem is every…
TyKitsune
  • 73
  • 9
0
votes
2 answers

Fatal error: Unsupported operand types - PHP

first time posting, usually just lurk around getting help from other answered questions, so thank you all very much for your help! I just have a quick question. I'm installing an add-on for a forum base, and it's giving me: Fatal error: Unsupported…
0
votes
1 answer

How would one go about implementing an add immediate in Verilog for an ALU?

I'm working with a 32-bit ALU for a MIPS processor. I've read Pong Chu's book on verilog and other texts but I haven't really come across a concrete answer as to how exactly I would implement an add immediate with verilog? for example with the asm…
user4386721
0
votes
1 answer

im trying to check if my string contains certain words what is wrong? PYTHON

I'm using Python to try and check if a string contains certain words. It can contain all or some of the words. listCall = ('Azura', 'Fly', 'yellow') readME = 'the color is yellow' if listCall in readME: print 'we found certain words' else: …
0
votes
2 answers

Operand type clash geography is incompatible with float

I am trying to figure out how to build a function that measures the distance from one location to another in miles, using longitude and latitude. The parameters would be added when EXECUTE is run. I am trying to do this using the…
JHG
  • 3
  • 1
  • 4
0
votes
1 answer

Invalid operand error in overloaded operator

So I'm really confused about why I'm getting this invalid operand error. I have two classes, classA and ClassB. ClassB contains three ClassA pointers. The ClassA operator+= has been overloaded as follows: ClassA& ClassA::operator+=(const ClassA&…
Andrew Seaman
  • 290
  • 3
  • 8
0
votes
1 answer

No operator ">>" for std::string>>std::string

I'm having a problem and I'm not sure how to fix it. Here is a search function that I made from which I'm receiving the error; void guestSearch() { &Reservation::getfirstName; &Reservation::getlastName; &Date::getday; …
AtlasB
  • 1
  • 3
0
votes
1 answer

Swift Xcode 6.1 broke my code | Operand error

So whenever I have this: let result = SKScrollingNode(color: UIColor.clearColor(), size:CGSizeMake(CGFloat(containerWidth), image.size.height)); I get a compilation error for the image.size.height, telling me that "'UIImage?' does not have a…
Sarah
  • 313
  • 3
  • 10
0
votes
1 answer

Mono.Cecil create new instructions

I have a little problem. I am trying to insert a Collection of Instructions with Mono.Cecil in the Method I have created. Collection InstructionList = new Collection(); To add a normal instruction which has no operand like…
n00b.exe
  • 287
  • 1
  • 3
  • 12
0
votes
3 answers

Python: TypeError: unsupported operand type(s) for +: 'int' and 'function'. Difficulty manipulating returned variable?

I'm just learning to code and I'm working on a personal project to supplement my classwork - a quiz that'll also help me memorize my German vocabulary. Right now I'm having difficulty figuring out how to make this thing grade itself. Here's the code…
Kirchhoff
  • 21
  • 1
  • 1
0
votes
1 answer

Python error: unsupported operand type(s) for -: 'float' and 'NoneType'

My code is supposed to read and subtract two data lists from each other. Why am I receiving this error, and how can I resolve it? Here is the full error: Traceback (most recent call last): File "", line 1, in File "spectra.py",…