Questions tagged [operand]

177 questions
0
votes
1 answer

TYPO3 Extbase: Operand should contain 1 column(s):

i want to add() a message to the database in my controller. That works so far. I've got a column called "message_tags" in which i save an array. The array is: array(5 items) 0 => 'dfsdfsd' (7 chars) 1 => 'dsfsdf' (6 chars) 2 => 'sdfdsf' (6 chars) 3…
Pascal Cloverfield
  • 561
  • 1
  • 6
  • 20
0
votes
1 answer

Using the correct operand

I am trying to implement a system which gets a balance from an account, and minuses an amount given. Here is my method. transaction withdraw(double amount, double ID){ Account Temp(NULL,NULL,NULL,NULL,NULL); Temp = Llist.search(ID); //Returns an…
ErrorOperator
  • 51
  • 2
  • 8
0
votes
1 answer

Writing multiple .csv files

I have a dictionary where item_dictionary[0] corresponds to data[0], and item_dictionary[1] corresponds to data[1]. item_dictionary = {'10350':'cat', '560':'dog'} names = item_dictionary.values() data = [[1, 2, 3, 4], [5, 6, 7]] I tried to write…
user1709173
0
votes
2 answers

why lvalue required as increment operand error?

Why lvalue required as increment operand Error In a=b+(++c++); ? Just Wanted to assign 'b+(c+1)' to 'a' and Increment 'C' by 2 at the same time. I'M A Beginner Just Wanted A Clarification About What "LVALUE ERROR" Actually Is? main() { int…
Neeraj Raghavendra
  • 95
  • 1
  • 1
  • 11
-1
votes
2 answers

Using AND/OR in Javascript IF Statements

I am trying to make an IF statement in Javascript with the the following code:
Khalid Mukadam
  • 73
  • 1
  • 1
  • 4
-1
votes
4 answers

How to create an output out of a given operand and values in Python?

So I'm creating a program that gives random outputs including addition, subtraction, multiplication and division. In order to remove repeating any code I am attempting to narrow the function down to essentially sum(operand) a = random.randint(1,…
-1
votes
5 answers

Python: Is there a way to execute an or statement before !=

I'm trying to run the following code: while check == False: op = input('Do you want to add, subtract, multiply or divide?') if op != ((('add' or 'subtract') or 'multiply') or 'divide'): print('Please enter a valid operation') …
Kornel
  • 11
  • 1
-1
votes
2 answers

swift binary operator cannot be applied to operands

I am begging to learn swift and I bought an app on the appStore called CODESWIFT for $5. I thought it'd be a nice easy way to start with the language, get familiar with the new ways of naming things and so on... On one of the exercises, the app has…
Paul
  • 1,277
  • 5
  • 28
  • 56
-1
votes
3 answers

Operator not working !=

My code has this if (choice != 'A1' || 'A2' || 'A3' || 'B1' || 'B2' || 'B3' || 'C1' || 'C2' || 'C3'){//dosomethingrecursive} Whenever I choose say, 'A1', it acts as if that is choice is not = to it. which as I understand is wrong, or am I missing…
Bartholomew
  • 9
  • 1
  • 1
  • 5
-1
votes
3 answers

MYSQL Operand Error I don't understand

New to the site but I have a snapshot of a query that doesn't work and I can't get my head around why. type 5 is a call, type 0 is a note (but could be a call due to record keeping) so I'm trying to find = type 5 or (type 0 where the clients …
Will
  • 1
  • 3
-1
votes
1 answer

Bash Script division

I'm a beginner in scripting. I have a temperature sensor which gives me temperature if I cat the file /sys/bus/w1/devices/28-000006c5772c/w1_slave. The output of the file looks like: 83 01 4b 46 7f ff 0d 10 66 t=24187 As you can see the temperature…
Synced21
  • 13
  • 3
-1
votes
5 answers

c++ Reading both left AND right if statement conditions

how do I get the compiler to check both the left and right side of the statement? if I'm not mistaken, i think in C language, it reads both left and right if you have && or || .... so when I looked this up for C++, it says only checks if the left is…
SorryEh
  • 900
  • 2
  • 15
  • 47
-1
votes
1 answer

Operand should contain 1 column

Hello i try to run this query but this error come up #1241 - Operand should contain 1 column(s) here is the code : SELECT (SELECT kk.namakk, anggkk.nama AS istri FROM kk JOIN anggkk USING ( idkk ) WHERE anggkk.hubungan = "istri"), (SELECT…
-1
votes
1 answer

error: bad operand types for binary operator '/'

I have a program where the user inputs marks into the array and then gets the average value My problem is that when I do the average method, it gives me an error which is error: bad operand types for binary operator '/'. This is my code…
user3670236
  • 133
  • 1
  • 3
  • 13
-1
votes
2 answers

Issue with operand types

I get the following error: error: no match for 'operator-' (operand types are 'QVector' and 'const float') when trying to do: dist.push_back(qPow((clusterMeanCoordinate[t].at(i) - hash_notClustered[t].at(point)), 2) +…
Mike
  • 563
  • 5
  • 15
  • 32
1 2 3
11
12