python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Can a variable and a method have the same name in C++?
class Controller {
bool isBackendActive();
void anotherMethodDoingSomething();
}
Can I declare a boolean variable with the same name as a method so that I can use it like this:
void Controller::a...

sunshine
Votes: 0
Answers: 2
Setting an array element with the key 'length'
I am building an array of spellings, and for rapid look-up I want to have the property of each element as the spelling, thus:
var spellings=[];
var spelling="fred";
spellings[spelling]="...
peter
Votes: 0
Answers: 0
Assigning value to list elements in for loop, list names depending on loop
I have the following problem. I am working with two for loops (running over i and j) and use the assign function to create lists whose names depend on i and j. Now, in another for loop withing the two...
NinaK
Votes: 0
Answers: 1
Selecting variable column names for further IRR calculation in R
I have a table of cash flows for various projects over time (years) and want to calculate the IRR for each project. I can't seem to select the appropriate columns, which vary, for each project. The t...
xtufer
Votes: 0
Answers: 2