Questions tagged [operands]

Operands are values acted upon by an operator, method, or other functional entity.

Operands differ from parameters in that they are the real values used or altered by a function, while the parameters are the named, abstract inputs used to define the function.

313 questions
0
votes
1 answer

TypeError: unsupported operand type(s) for %: 'Text' and 'tuple'

I'm trying to make a program that calculates how much it costs to miss a class. I take in variables tuition, number of courses, and number of weeks in a semester; it then plots the results (using python 2.7). Here's the code I've been working…
joshytaco
  • 45
  • 1
  • 4
0
votes
1 answer

Having trouble calling another class that reads a txt file into an array that is sorted in the program(band operand error)

so I have a program that takes a txt file and is read in and uses the class of another java file to set up the array. I am trying use selection sort to sort the values placed into the array but it gives me bad operand types for the line: (if…
0
votes
3 answers

no operator "==" matches these operands

I don't know what is causing this, but i think it has something to do with the function "password_checker" ?? here is my code : #include #include #include using namespace std; string password_checker(); int…
JTCarlos
  • 17
  • 1
  • 5
0
votes
2 answers

error A2070: invalid instruction operands

the error is in AfterLoop skope in the line " mov [esi], [edi]" . how can I resolve this issue? ; The function for node removing (headptr, nodeToremove) removeNode proc headPtr = 8 nodeToRemove = headPtr + 4 push ebp mov ebp, esp push esi push…
Aviram Shiri
  • 173
  • 1
  • 2
  • 9
0
votes
4 answers

C++ invalid operands and types

Getting these errors in my equations for A and B, and then the other errors are from is at the end of calcit when im trying to pass it to slopeit [Error] invalid operands of types 'int [3]' and 'int [3]' to binary 'operator*' [Error] invalid…
Kilsen123
  • 1
  • 3
0
votes
3 answers

List of all operands in the C#

Very simple question: how to get a list of all operands in the C#? Example: { "return", "break", "if", "case", "switch", ... }; More hard question: how to get a list of ALL functions (types, methods)? { "string", "Math.Abs", "double.IsNaN",…
Sinatr
  • 20,892
  • 15
  • 90
  • 319
0
votes
2 answers

unexpected behavior of C operands evaluation order

So just for fun, I have this code snippet: #include main() { int i; int a; i = 17; //scanf("%d", &i); a = (i+=5) * (i-=3); printf("a is %d, i is %d\n", a, i); } In C specifications, it says the order of operands evaluation is…
0
votes
1 answer

C++ error — No match for operator =

class RLE_v1 { struct header { char sig[4]; int fileSize; unsigned char fileNameLength; std::string fileName; } m_Header; RLE m_Data; public: void CreateArchive(const std::string& source) …
user1665569
  • 191
  • 4
  • 8
  • 17
0
votes
4 answers

I keep getting this error: invalid operands to binary ^ (have 'double' and 'double')

Whenever I run the code my lines 52 and 61 keep giving me the same error message. #include #include double getinput(void); double calcwindchillold(double v, double t); double calcwindchillnew(double v, double t); void…
user2055813
  • 19
  • 1
  • 1
0
votes
3 answers

a different kind of unsupported operand issue (python 3)

Hello I'm new to python and programming in general (just started last night!) and I've written a tiny program thats pasted below: name = str(input("please state your name: ")) print ("Welcome %s, your doomesday weapon of impolite mutant pigeons is…
0
votes
2 answers

Mixed numerals class operand overloading C++

So I'm writing a mixed numerals class for my OO class. We need to overload every comparison and boolean operand (among other things) but I'm having trouble with how to think about the '<' and '>' operands. Here are my '==' and '!=' operand functions…
Connor Black
  • 6,921
  • 12
  • 39
  • 70
-1
votes
0 answers

use of += in python

what does the operation += mean? and are there other similar operands?Please share your opinions I tried this out from an online question but i could not get to understand the role of the += import random number = random.randint(1, 1000) guesses =…
-1
votes
1 answer

How do I write the code for the variable BUY that I have in strategy.entry I will use this code to write the Variable BUY code

I have these variables that I want to be able to choose from in a drop down input under option for Line1 and Line2. These should be selectable using yet another drop down input with options = ['none', '==', '<', '>', '<=', '>=', '!=' , 'crossover',…
-1
votes
1 answer

TypeError: unsupported operand type(s) for /: 'str' and 'str' with string concatenation

t_c = [] for i in range (10,41,5): t_c.append(max("Time"+str(i)+"J") - min("Time"+str(i)+"J")) Whenever I run this code, I get an error "TypeError: unsupported operand type(s) for /: 'str' and 'str'" Here, Time10J,Time15J,.....,Time40J are…
-1
votes
1 answer

Unsupported operand type array / int after counting users

I've got a problem that needs fixing and I can't seem to figure it out. So, I use this method (part of method that's troublesome) to get total users when listed for pagination: $up = Users::totalUsers($condition); $totalPages= ceil($up /…