Questions tagged [operand]
177 questions
0
votes
2 answers
How to fix Missing operator error
I am trying to make a batch game but get the error,
Missing operator set was unexpected at this time
The code is:
set hp=100
set exp=0
set exptill=60
set gold=0
set lvl=1
set attack=4
set powergain=3
set weaponpower=2
set weaponprice=120
set…
user2856418
0
votes
1 answer
Bad operand types - Java
Project: HERE link to the project
I am trying to use this open source code but I get the following error:
error: bad operand type for binary operator '!='
In this context:
if (img != null) {
cvFlip(img, img, 1);// l-r =…

MOTIVECODEX
- 2,624
- 14
- 43
- 78
0
votes
2 answers
if multiple random numbers are all equal return true
Im working on some random generator, and it's something like roll a dices, if all dices are returning same numbers than you won a game if not than you try again.
To get six dices i used mt_rand function and for every dice separately, so i have…

lonerunner
- 1,282
- 6
- 31
- 70
0
votes
2 answers
C# operands error
I am trying to calculate the total for a list in my C# program, I have gotten help from several people in my class and we can't seem to find the problem, my code is,
int totalB = 0;
…

user2675079
- 1
- 1
0
votes
1 answer
rowfilter error: Missing operand after ''%اح%'' operator
I dont know why I have below error:
Missing operand after ''%اح%'' operator.
on
dv.RowFilter = "[customer] LIKE N'%" + value + "%'";
also I changed code to:
dv.RowFilter = "[customer] LIKE N'%" + value.Replace(@"'", "''") + "%'";
but still I have…

Iran_Girl
- 439
- 2
- 11
- 18
0
votes
3 answers
Batch: I need some fresh eyes to see where the error is
I keep getting a Missing operand error. I cant seem to find it and I figure a new set of eyes can.
@echo off
title Log Split And Backup
rem dt = date
rem tm = time
rem wd = week day
rem mh = month
rem dy = day
rem yr = year
rem hh = hour
rem mm =…

Troy Rash
- 29
- 4
0
votes
2 answers
lvalue required as left operand of assignment. What does that mean?
sorry for bothering you again, but I'm getting an error that I am not quite sure how to solve. I'm trying to make a function that prints a matrix with a set value for both ROW and COLUMN. However, when I use ROW or COLUMN inside the "for" to print…

Allan Ransom Soto
- 25
- 2
- 3
- 5
0
votes
1 answer
Unsupported operand type(s) in formula
I m having problems getting python 2.7 to do this formula. Its purpose is to convert Landsat 7 DN values to reflectance values. b1 references a band1 TIFF image.
L_B1 = float(((LMax_B1 - LMin_B1) / (QCALMax_B1 - QCALMin_B1)) * (b1 - QCALMin_B1) +…

Simon
- 25
- 1
- 8
0
votes
1 answer
Missing operand before 'And' operator, but rendering page
I have a page which is throwing Missing operand before 'And' operator error on this code:
string filtre = (Request["pn"] == "Tous" ? "pn=pn" : "pn='" + Request["pn"] + "'");
filtre += (Request["dep"] == "Tous" ? "" : " and erreur=" +…

Olivier
- 309
- 2
- 8
- 22
0
votes
2 answers
TypeError: unsupported operand type(s) for *=
I'm teaching myself Python via an online wikibook, and came across a confusing error in one of the examples with overloading operators. According to the example:
class FakeNumber:
n = 5
def __add__(A,B):
return A.n + B.n
c =…

Joseph Webber
- 2,010
- 1
- 19
- 38
0
votes
1 answer
Scala understanding right associative operand
i am learning scala ( like it! ) but there is something i dont understand.
i read about right associative operand by method names ending with ":". Easy to understand but i wanted to define my own right associative function named add3To:.
I have a…

chrisf
- 3
- 1
0
votes
3 answers
const char and binary operator errors
First things first: I know this code is overlong and could be shortened quite a bit. However, I don't want help with how to shorten it, I am just trying to understand some basics and my problem right now is with operators and storing values. As…

user2040308
- 53
- 1
- 8
0
votes
2 answers
Operand should contain 1 column(s)??? IT DOES but still error. Is this a bug?
I'm having a verry strange problem. I am certain I have done nothing wrong in this line of code:
INSERT INTO
oc_address
(`cust_id`, `firstname`, `lastname`, `address_1`, `city`, `postcode`, `country_id`)
SELECT
(`cust_id`,…
user2305176
0
votes
3 answers
Matlab: Get neighboring coordinate values - && Operand
I'm trying to extract from a 2-D matrix with id values the neighboring ids of each element on the board.
I have a list of of IDs and their coordinates (of n elements), and I'm creating the following:
(Example for left neighbor…

Guy Wald
- 599
- 1
- 10
- 25
0
votes
1 answer
file name with Space causing missing operand
Attempting to make a batch to display the filesize of a file.
I have found an (almost) perfect solution in another post (How can I check the size of a file in a Windows batch script?) but whenever I enter a filename with a space, I get "missing…

user2058787
- 3
- 1