10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I'm new to the Ash shell so my apologies if this is well known. In normal maths and other shells and languages I've used, the modulo operator always returns a positive remainder. For example see this discussion (first post so I can't hyperlink it):
... (11 Replies)
Discussion started by: FleetFoot
11 Replies
2. Programming
Hi,
In the following code,
class A {
public:
void operator=(const A& rhs) {
if (this == &rhs) cout << "self-assigned";
}
};
class B {
A a; // should not be a pointer member, (i.e) A* a
};
int main() {
B b;
b = b; // Ans: self-assigned
}
I am really... (5 Replies)
Discussion started by: royalibrahim
5 Replies
3. Homework & Coursework Questions
1. After trying to compile code error is given Lvalue required as left operand of assignment.
2. Relevant commands, code, scripts, algorithms:
if , else if
3. The attempts at a solution (include all code and scripts):
/*
File: incircles.cpp
Created by: James Selhorst
... (2 Replies)
Discussion started by: c++newb
2 Replies
4. Programming
Hey all. I've been working on some fun with C and decided to write a Rock Paper Scissors game. The problem is, that when I try to compile the file, it gives "lvalue required as left operand of assignment" error. The error line is here:
for ((point1=0 && point2=0); ((point1=3) || (point2=3));... (4 Replies)
Discussion started by: drouzzin
4 Replies
5. Programming
z < 0 ? z= z + 2*r*cos(theta) : z= z - 2*r*cos(theta);
Does anyone know what is wrong here?
I've got compiler msg:
lvalue required as left operand of assignment
All variables are "double". I'm using gcc compiler (but I don't think that matters) (5 Replies)
Discussion started by: EmilyTheStrange
5 Replies
6. Programming
Hello everyone!
Suppose that I have something like this
A a;
a.mem=new int;
A b = a;
where
class A {
public:
int * mem;
A() : mem(NULL) {
}
~A() {
if (mem!=NULL)
delete mem; (1 Reply)
Discussion started by: bashuser2
1 Replies
7. Programming
Hi,
I am trying to compile a program (not coded by me), and i'm getting this error:
203: error: lvalue required as left operand of assignment
As you may be guessing, the program doesn't compile, the line number 203 is the following:
... (2 Replies)
Discussion started by: Zykl0n-B
2 Replies
8. Shell Programming and Scripting
When i tyr this, it gives me a syntax error...i tried removing quotes,removing spaces,replacing -eq with '='.. Can somebody suggest that is the problem?
if ]; then (4 Replies)
Discussion started by: dba.admin2008
4 Replies
9. Shell Programming and Scripting
When reading over some perl code in a software document, I came across an assignment statement like this
$PATH = ${PROJECT}/......./....
In this particular form of scalar variable assignment, what does the curly braces operators do ? Also, what is the benefit in doing scalar assignment this... (3 Replies)
Discussion started by: JamesGoh
3 Replies
10. Programming
Helo i m new in c++.
i m confuse about what is exact difference b/w copy constructor and overloaded assignment operator.
Regards,
Amit (3 Replies)
Discussion started by: amitpansuria
3 Replies