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
-2
votes
2 answers

Unknown "missing operand" comment in Batch program

I'm making a small "lazy sleep" .bat file for Windows 10, and it works well. Except I get a "missing operand" at the top of the cmd windows when I start the program : cmd windows when I start the program I'm a newbie at Batch, so don't be harsh. I…
-2
votes
1 answer

No match for operand< passing objects

I have two classes, one, Obj when i calculate the Median of the set, and an other that should do some operator overload I also have put the operator< in the second class, (where i have a vector of the 2st class object, and trying to passing object…
Mattia
  • 199
  • 1
  • 1
  • 12
-2
votes
2 answers

error: invalid operands to binary < (have 'float *' and 'double')

I'm brand new to programming in C (and in general) and I'm stuck on a part for my function. I'm trying to do error checking and I keep getting the error error: invalid operands to binary < (have 'float *' and 'double') in line 97 and 100. Does…
waljoedoh
  • 1
  • 2
-2
votes
1 answer

Dereference and address operators behaviour with uninitialized 2d pointer

i don't clearly understand this statement: int **ptr; printf (" %p \n", &( *( *(ptr + 1) + 4) ) ); Indeed, I can't explain myself why I don't get segfault during run time, as it should not be able to use the * operand with a number which should be…
Luca
  • 55
  • 7
-3
votes
1 answer

how to fix: no operator matches these operands

I do not understand why these errors exist about the operands. I also am curious, when I print out "Your bill is...", how do I allow the computer to calculate the bill for me?
alex
  • 1
  • 1
  • 1
-3
votes
1 answer

Operand types are incompatible ("float *" and "const char *")

I've started learning C this week and I have a problem. I'm trying to let the user enter how many inputs he wants , but the loop will stop when he enter the input -1 . I'm getting the Operand types are incompatible ("float *" and "const char *") …
-3
votes
2 answers

What exactly is an operand stack?

I've been self teaching my self Swift. I was following the iOS 8 Swift Programming course on iTunes U from Stanford University. Currently I am following the course and working on a project alongside the professor teaching it. It's a calculator app.…
yousafe007
  • 119
  • 1
  • 8
-4
votes
3 answers

Using multiple integers with one operand in a C conditional statement possible?

Is it possible in C to write something like? and if so how is it done? if ( x != 1, 2, 7, 8, 90)
-5
votes
2 answers

Equivalent of Python in C++ operator

Is there a way to do the same in C++? Python int.__add__(1, 1) I can make something in C++, but it is still ugly and not very optimised and short. I just want this : 1+1, but without + . I absolutely want to use the int "class". It's for matrix…
Henry
  • 577
  • 4
  • 9
-5
votes
3 answers

while loop input Yes/No (Python 3)

This is the code : quiz = str(input("would you like to answer some questions \n choose y/n")) quiz = quiz.lower() while quiz != 'y' or quiz != 'n': print("please choose 'y' or 'n'") input("y/n?") This is part of my code I have tried using…
Hisham___Pak
  • 1,472
  • 1
  • 11
  • 23
-6
votes
1 answer

Javascript ternary operator hidden logic

function even_or_odd(number) { return number % 2 === 0 ? 'Even' : 'Odd'; } function even_or_odd(number) { return number % 2 ? "Odd" : "Even" } Why do these two functions return the same result? How does return number % 2 ? "Odd" :…
Elan
  • 539
  • 1
  • 6
  • 18
1 2 3
20
21