Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
operands
- Page 1
calculator --- using more than 2 operands?
Programming
Software Development
19 Years Ago
by server_crash
… equation, or even get an equation with more than two
operands
? Right now, in my calculator, I can only have two…
operands
, and I want to have more. Right here is what …
Re: calculator --- using more than 2 operands?
Programming
Software Development
19 Years Ago
by server_crash
… knew the way I was doing would only allow two
operands
, but that's really all I could think of. I…
error: invalid operands to binary ^ (have ‘float’ and ‘double’)
Programming
Software Development
14 Years Ago
by evansjahja
Guys, I need help When I compile my code, I get [code]error: invalid
operands
to binary ^ (have ‘float’ and ‘double’)[/code] Here's some portion of my code: [code=c] #include <stdlib.h> #include <stdio.h> ... float freq; const float key_magic = 2 ^ (1/12); ... freq=440*(key_magic)^(atof(optarg)-49); [/code] Thanks
invalid operands to binary?
Programming
Software Development
13 Years Ago
by tquiva
…: averages.c: In function ‘tableAverage’: averages.c:104: error: invalid
operands
to binary + (have ‘double’ and ‘double *’) Here's my code…
error in my code: invalid operands to binary +
Programming
Software Development
13 Years Ago
by dy/dx
…. But an error occurred and it said that: "invalid
operands
to binary +" to the line.. [CODE]valString += tempExpName;[/CODE…
error c# : operator == cannot be applied to operands of type 'System.IntPtr' and 'int
Programming
Software Development
13 Years Ago
by mxadam
… All, I get this error operator == cannot be applied to
operands
of type 'System.IntPtr' and 'int' firstly I had this…
Re: error c# : operator == cannot be applied to operands of type 'System.IntPtr' and 'int
Programming
Software Development
13 Years Ago
by Lusiphur
… error is (sort of)... "operator == cannot be applied to
operands
of type 'System.IntPtr' and 'int'" You have defined…
Types of Operands
Programming
Software Development
13 Years Ago
by beginner1
Can anybody little bit explain me what are different types of
operands
in assembly language ,I will be very THANKFUL to u guys.
Invalid operands to binary *
Programming
Software Development
11 Years Ago
by kovacsakos
I would like to make a memory allocation: `(*matrix)[i]=(int*)malloc(sizeof(int)*sz);` But I have got an error message: Invalid
operands
to binary * What should be the problem?
Doubly Linked List, push not working correctly
Programming
Software Development
14 Years Ago
by kevinkace
…->prev = 0;
operands
->prev = newNode;
operands
= newNode;*/ NodeOperand* temp =
operands
;
operands
= new NodeOperand;
operands
->next = temp; temp->prev =
operands
;
operands
->prev = 0…
Java Calculator Stack Problem
Programming
Software Development
11 Years Ago
by DaAznSmurf
…performBinaryOp(a[i]); } str = String.valueOf(
operands
.pop()); results.setText(str); } } public void… = new Double(leftOperand / rightOperand); break; }
operands
.push(result); } public static void main(String[] args…
Help plz! i cant seem to print the answer
Programming
Software Development
14 Years Ago
by asweetroxxi
… or not cin>> moredata;
operands
.push(number);// push into stack } while…command a=
operands
.top();// pop first number
operands
.pop(); b=
operands
.top();// pop second number
operands
.pop();…
Simple GUI Calculator
Programming
Software Development
12 Years Ago
by Gsterminator
….getText(); double operand = Double.parseDouble(str);
operands
.push(operand); results.setText(""); a[used…result = new Double(leftOperand / rightOperand); break; }
operands
.push(result); } public static void main(String[] args)…
Re: Simple GUI Calculator
Programming
Software Development
12 Years Ago
by DavidKroukamp
….getText(); double operand = Double.parseDouble(str);
operands
.push(operand); results.setText(""); a[used…result = new Double(leftOperand / rightOperand); break; }
operands
.push(result); } public static void main(String[] args)…
Re: Help plz! i cant seem to print the answer
Programming
Software Development
14 Years Ago
by Lerner
… stack while(
operands
.size() > 1) { //get first two
operands
off stack a=
operands
.top();
operands
.pop(); b=
operands
.top();
operands
.pop(); …;;// possible commands cin >> command ; //process command using available
operands
if (command == '+') temp = a + b; else if (command …
solving mathematical expressions
Programming
Software Development
14 Years Ago
by vinnijain
…CODE] private void button5_Click(object sender, EventArgs e) { string[]
operands
= this.textBox1.Text.Split('+', '-', '*', '/'); string[] operators … op =a1[i]; int ss = Convert.ToInt32(
operands
[i]); int ss1 = Convert.ToInt32(
operands
[i + 1]); if(op == '/' || op…
Halstead Implementation
Programming
Software Development
13 Years Ago
by ezkonekgal
… "Doperator" where the number of distinct
operands
and distinct operators will be stored respectively. 3.2…"operator" where the total number of
operands
and operators will be stored respectively. 3.5 The…The program will use the counted number of
operands
, operators, distinct
operands
and distinct operators. 4.2 The formulas…
Shunting Yard and Evaluation of expression in c++ pseudo code
Programming
Software Development
9 Years Ago
by Joemeister
…if(/*If token is an integer or a variable*/){
operands
[++i] = token; } else { if(/*Token … //Apply the operator to these
operands
; //Place the answer at
operands
[i-1]; --i; } …
Need urgent help! please.
Programming
Software Development
15 Years Ago
by ezkonekgal
… = op1 % op2; break;} } Integer operand = new Integer(result);
operands
.push(operand); } } value = ((Integer)
operands
.pop()).intValue(); return value; } private static int prec…
Re: Need urgent help! please.
Programming
Software Development
15 Years Ago
by ezkonekgal
… on the previous two
operands
{ int op2 = ((Integer)
operands
.pop()).intValue(); int op1 = ((Integer)
operands
.pop()).intValue(); int result…break;} } Integer operand = new Integer(result);
operands
.push(operand); } } value = ((Integer)
operands
.pop()).intValue(); return value; } private static int …
Re: Need urgent help! please.
Programming
Software Development
15 Years Ago
by puneetkay
… on the previous two
operands
{ int op2 = ((Integer)
operands
.pop()).intValue(); int op1 = ((Integer)
operands
.pop()).intValue(); int result…break;} } Integer operand = new Integer(result);
operands
.push(operand); } } value = ((Integer)
operands
.pop()).intValue(); return value; } private static int …
Need help with C++ programming assignment, urgent.
Programming
Software Development
14 Years Ago
by KOFSoldier
…push 38 mult Sub pop two
operands
from the stack, subtract them …push 8 sub Div pop two
operands
from the stack, divide them (…
C++ Stack Assignment; Compiles but doesn't quite work
Programming
Software Development
14 Years Ago
by ELewis08
…using a stack machine model. A stack machine consists of
operands
, instructions, a stack, and an evaluation model. Consider the… is 'add', 'mult', 'div', or 'sub', pop two
operands
from the stack and perform the operation. push the result…the stack if the instruction is 'assn' pop two
operands
from the stack, put the value of the top …
C++ postfix evaluation
Programming
Software Development
13 Years Ago
by LillianIs
…{ char Exp; string postfix; stackNew
Operands
; float item1, item2, result; cout&…x; x= atoi(Exp);
Operands
.Push(x); } else { item2 =
Operands
.Pop(); item1 =
Operands
.Pop(); switch (Exp) …
Re: solving mathematical expressions
Programming
Software Development
14 Years Ago
by vinnijain
… I am collecting all operators together in one array and
operands
in another array.Then,i am accessing first two operans… I want that when operator is applied on first two
operands
the result should be stored on the place of second… next step I may use next operator, and next two
operands
and solve expression by bodmas rule....... Can u tell me…
Re: Simple GUI Calculator
Programming
Software Development
12 Years Ago
by DavidKroukamp
…; JLabel results; String str = ""; Stack
operands
= new Stack(); char[] a = new char[0…String)... to:[code] str = String.valueOf(
operands
.pop()); [/code] and finally push all ….getText(); results.setText(str + "0");
operands
.push(0); }[/code] and take away your:[code…
Help with my main method
Programming
Software Development
15 Years Ago
by ezkonekgal
… static Stack operators = new Stack(); private static Stack
operands
= new Stack(); public static void main(String args[])… break;} } Integer isOperand = new Integer(result);
operands
.push(isOperand); } } value = ((Integer)
operands
.pop()).intValue(); return value; } private static int precedence…
What is wrong with this program of mine?
Programming
Software Development
13 Years Ago
by pmark019
…dummy5[e]) && !dx.contains(dummy5[e]))
Operands
= Operators + 1; else
Operands
++; e++; } while(urandt.hasMoreTokens()) { dummy6[f]=…;Unique Operators: " + UOperators); System.out.println("
Operands
: " +
Operands
); System.out.println("Number of Lines: " + …
Re: What is wrong with this program of mine?
Programming
Software Development
13 Years Ago
by pmark019
…(dummy5[e]) && !dx.contains(dummy5[e]))
Operands
= Operators + 1; else
Operands
++; e++; } while(urandt.hasMoreTokens()) { dummy6[f]=urandt…quot;Unique Operators: " + UOperators); System.out.println("
Operands
: " +
Operands
); System.out.println("Number of Lines: " + …
Re: Simple GUI Calculator
Programming
Software Development
12 Years Ago
by DavidKroukamp
… double to a string, try this:[code] str = String.valueOf(
operands
.pop());[/code] but besides that problem there is another when…[] a! also your actionperformed methods for the numbers should have
operands
.push(THENUMBER) where the number is 0-9 depending or…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC