Questions tagged [operand]

177 questions
0
votes
1 answer

bash: Join content of multiple variables

I have a variable containing a list of of names of several other variables. These variable each contain a table. I want to join all of these tables. The tables could look something like this: Name Average Name Average A 1 A 1.1 B…
arielle
  • 915
  • 1
  • 12
  • 29
0
votes
1 answer

Operand types error

I tried to implement binarysearchtree ( add method ) with generics but it gives me this kind of error: genericstree.java:36: error: bad operand types for binary operator '>' if ( value > iterator.m_Value ) ^ …
kvway
  • 494
  • 4
  • 16
0
votes
2 answers

Batch - Using Modulo in a FOR Loop - Error Operand

I've been trying to use MOD (%%) in order to make a timeout /t 3 command every 25 loops I am getting an error "invalid operand" Code is: set /a var1=0 FOR /R "folder" %%G in (.) DO ( Pushd %%G set /a b=%%var1%% %% 25 IF %%b%% EQU 0 ( timeout…
Nisan Bahar
  • 73
  • 1
  • 1
  • 8
0
votes
2 answers

C++ No operator ">>" matches these operands ( included in header)

I'm currently working on some code where I have to declare an array in my main and create a function that allows for me to take user input and store it into the array. I've gotten started, but I'm running into the error binary '>>': no operator…
Justin Farr
  • 183
  • 3
  • 5
  • 16
0
votes
1 answer

Why is this an invalid operand?

I have the following ASM file generated by a compiler I'm writing: ; This code has been generated by the 7Basic ; compiler ; Uninitialized data SECTION .bss v_0 resb 4 v_4 resb 4 v_8 resb 4 ; Code …
Nathan Osman
  • 71,149
  • 71
  • 256
  • 361
0
votes
2 answers

SQL INSERT INTO syntax

Sorry if this is a little low level but I am a student learning SQL on SQL Server management Studio and trying to add some dummy data to a database I am using the following INSERT INTO dbo.Bookings (bookingid ,bookingdate ,customerid ,airportid…
0
votes
0 answers

INSERT INTO ... SELECT: Operand should contain 1 column

I haven't been playing with SQL for a while and I lost the hang of it. I have this query INSERT INTO company_reports ( company_id, quarter, leftover, produced, sold, price, cost, income, expenses, profit, dividends )…
user35443
  • 6,309
  • 12
  • 52
  • 75
0
votes
1 answer

MIPS operand of incorrect type error. Loading data into register

MIPS operand of incorrect type error. Loading data into register .data myMessage: .word 2 myMessage2: .word 24 .text add $t0, $zero, myMessage add $t1, $zero, myMessage2 why does it say incorrect type? I thought since myMessage is…
elizaburkey
  • 63
  • 2
  • 8
0
votes
1 answer

Bash - Error: Syntax error: operand expected (error token is "testdir/.hidd1/")

I'm working on a task for uni work where the aim is to count all files and directories within a given directory and then all subdirectories as well. We are forbidden from using find, locate, du or any recursive commands (e.g. ls -R). To solve this…
HRusby
  • 15
  • 2
  • 7
0
votes
1 answer

How stack frames pass the value from the current frame to the older frame(JVM)?

The scenario: Java uses the stack to execute the method with instructions. There is a methodA which contains a methodB, when invoke the methodA, the current Thread's Stack will create a new Stack-Frame for the methodA, when it encounter the…
jackzong
  • 3
  • 1
0
votes
1 answer

= can not have such operands in this context

Here's the full error: ERROR:HDLParsers:808 - "C:/Users/vROG/Desktop/.../CacheController.vhd" Line 72. = can not have such operands in this context. I'd understand how to fix this if I was used '+' or '*', but equal sign? As you can tell, the code…
The Muffin Boy
  • 314
  • 4
  • 14
0
votes
0 answers

Error: "no match for 'operator*'

I'm writing a calculator program for complex numbers and I am getting an error during compiling that says In member function 'Complex Complex::operator*(const Complex&)': error: no match for 'operator*' (operand types are 'int' and 'const…
0
votes
0 answers

simple and general java exercise where I think the *= goes wrong, also for/loop

the question is simple: Line up every number from 1 to 1000 who are not divisions of 3 or 5 and multiply them together. e.g 1 - 10 would be "1 * 2 * 4 * 7 * 8" = 448 My code looks like this: ArrayList list = new ArrayList(); …
Hummus
  • 21
  • 2
0
votes
1 answer

Python Float Operand Error

Sorry if this is a newbie question I was wondering why I was getting the error "TypeError: unsupported operand type(s) for &: 'float' and 'float'" whenever I ran my program which is supposed to try to guess my number by picking the amount of numbers…
Vansh03
  • 47
  • 9
0
votes
1 answer

Performing Bitwise Operations on String Variables

Background: I am very new to python and am trying to create a sort of subnetting calculator where the user enters a host's IP address and subnet mask and python calculates and returns the network address for that host. My issue at this point is…