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)
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)
Hi guys,
I think this is a basic question. I'm not very familiar with this.
I'm trying to round a number up and round a number down. From what I have read this can be done using POSIX. I have tried to to use this, but i'm getting errors:
sub findGridBounds($$$%)
{
use POSIX;
... (0 Replies)
I want to get newvar outside the while
any ideas?
while read myline; do
var=${myline}
newvar1=$(let "$var")
done
echo $newvar1
I found it its ok now Thank you! (0 Replies)
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)
I was reading man for cp, and I found the option cp -d.
What does it mean?
According to the documentation -d is the same as --no-dereference --preserve=link.
I understand that --preserve preserves the attributes of the file such as time stamp, but I have no clue about neither --preserve=link... (2 Replies)
Hi all,
I have a csv file that appears as follows:
,2013/03/26,2012/12/26,4,1,"2017/09/26,5.75%","2017/09/26,1,2018/09/26,1,2019/09/26,1,2020/09/26,1,2021/09/26,1",,,2012/12/26,now when i use the split function like this:
my @f = split/,/; the split function will split the data that is... (2 Replies)
Hi,
First of all, thanks for all the awesome suggestions on this forum. This helps all the UNIX enthusiast like me.
Now, I had a similar requirement as mentioned in a very old post here:
Question about Perderabo's "Days Elapsed Between Two Dates"
But I am struggling what to change in the... (5 Replies)
Dear,
One of our customer which is located in Iraq/Baghdad, has informed us about a official change in daylight saving time in few days later and has asked us to fix this issue.
So, the current timezone of that system is set as 'Asia/Baghdad' which is correct. however to fix the issue I went... (0 Replies)
Hi,
I have a quick question on parsing the hour/minute and value from a text file and remove the seconds portion. For example in the below text file:
20:26:01 95.83
20:27:01 96.06
20:28:01 95.99
20:29:01 7.11
20:30:01 5.16
20:31:01 8.27
20:32:02 9.79
20:33:01 11.27
20:34:01 7.83... (2 Replies)
Discussion started by: satishrao
2 Replies
LEARN ABOUT MOJAVE
tcl_recordandeval
Tcl_RecordAndEval(3) Tcl Library Procedures Tcl_RecordAndEval(3)__________________________________________________________________________________________________________________________________________________NAME
Tcl_RecordAndEval - save command on history list before evaluating
SYNOPSIS
#include <tcl.h>
int
Tcl_RecordAndEval(interp, cmd, flags)
ARGUMENTS
Tcl_Interp *interp (in) Tcl interpreter in which to evaluate command.
const char *cmd (in) Command (or sequence of commands) to execute.
int flags (in) An OR'ed combination of flag bits. TCL_NO_EVAL means record the command but do not evaluate it.
TCL_EVAL_GLOBAL means evaluate the command at global level instead of the current stack level.
_________________________________________________________________DESCRIPTION
Tcl_RecordAndEval is invoked to record a command as an event on the history list and then execute it using Tcl_Eval (or Tcl_GlobalEval if
the TCL_EVAL_GLOBAL bit is set in flags). It returns a completion code such as TCL_OK just like Tcl_Eval and it leaves information in the
interpreter's result. If you do not want the command recorded on the history list then you should invoke Tcl_Eval instead of Tcl_RecordAn-
dEval. Normally Tcl_RecordAndEval is only called with top-level commands typed by the user, since the purpose of history is to allow the
user to re-issue recently-invoked commands. If the flags argument contains the TCL_NO_EVAL bit then the command is recorded without being
evaluated.
Note that Tcl_RecordAndEval has been largely replaced by the object-based procedure Tcl_RecordAndEvalObj. That object-based procedure
records and optionally executes a command held in a Tcl object instead of a string.
SEE ALSO
Tcl_RecordAndEvalObj
KEYWORDS
command, event, execute, history, interpreter, record
Tcl 7.4 Tcl_RecordAndEval(3)