variable-assignment
What's the expression equivalent of the Assignment statement called?
In imperative programming, using statements, you do stuff like: a = 10 b = a * 2 print a # 20 I have been thinking that the equivalent, in expressions, should be something like this:[详细]
2023-04-06 23:55 分类:问答Declared but unset variable evaluates as true?
I was doing a simple calculator with the following code. Right now it executes perfectly. When I tried to change things around, however, it doesn\'t work. I used BOOL program to check whether to conti[详细]
2023-04-06 14:37 分类:问答Strange assignment problem - C++
Having a strange problem making a new string class and assigning an array of char* to it in the GCC compiler. Source code:[详细]
2023-04-06 02:18 分类:问答Write a variable to a file that has a different type than the function assigned to the variable
I have the following code that I am using to parse out a test file.I am getting variable conversion error in Sub Main() when I assign file = Read(). The return value of Read() is a TextFieldParser typ[详细]
2023-04-05 09:29 分类:问答Assigning to a pointer returned by a function call
I\'m trying to implement a simple LinkedList The following开发者_运维问答 code, producing this error:[详细]
2023-04-05 09:10 分类:问答Why / How is my variable getting set to nil
I have some code that reads a file into an array of lines, and then parses those lines to get at the structured data. The input file has various different data types that need to be handled differentl[详细]
2023-04-05 08:18 分类:问答Java Graph's nodes representation
So I have to build this for my assignment, where I am given an input file that creates a graph using x and y coordinates like:[详细]
2023-04-05 05:25 分类:问答println in scala for-comprehension
In a for-comprehension, I can\'t just put a print statement: def prod (m: Int) = { for (a <- 2 to m/(2*3);[详细]
2023-04-04 14:00 分类:问答java compound assignment operator and assignment operator
I have some problem understanding the compound assignment operator and the assignment operator in java. Can someone explain to me how these two operators really works? (Somwhere I found a really good[详细]
2023-04-04 11:42 分类:问答Javascript unable to assign value to variable and causes break --> word5 = (keywords[n].length);
Doing some javascript self-learning and the program itself is very simple. It searches through the input for keywords and when it finds it, it places the index values into list placeholders. (I\'ll de[详细]
2023-04-04 11:25 分类:问答