Movatterモバイル変換


[0]ホーム

URL:


Sorry, we no longer support your browser
Please upgrade toMicrosoft Edge,Google Chrome, orFirefox. Learn more about ourbrowser support.
Skip to main content

Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities includingStack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Loading…
Software Engineering

Questions tagged [control-flow]

Ask Question

Control flow (or flow of control) is the order in which individual statements, instructions or function calls of an imperative program are executed or evaluated.

15 questions
Filter by
Sorted by
Tagged with
18votes
7answers
4kviews

I'm preparing a lecture where I will start with a many-branched conditional statement and replace it with a table. For example, I could start with:function getMonthName(monthNumber) { if (...
4votes
2answers
503views

I am trying to write a backend for use with a completely text based UI for one shot operations (eg. python scriptname arg, executes that argument and exits) and a GUI using the curses library for some ...
0votes
2answers
774views

I am writing some code that enables / disables a certain kind of hardware function. To enable it on, I have to call some methods, and to disable it, some others.Of course I want this code to be clean,...
-2votes
1answer
298views

When defining McCabe's essential complexity, the idea of a structured programming control structure is present. I don't understand why an if-then-else, a while loop or a for loop can be reduced to a ...
Cedric Martens's user avatar
0votes
2answers
6kviews

Given is a short Java function and I like to create a control flow graph for it but I'm not sure if it's fine like that? Because I left some things away such as variables that have already been ...
eyesima's user avatar
1vote
1answer
2kviews

From what I can remember the Control-Flow Graphs for which I have seen images have mostly been of single functions. So basically just statements with perhaps looping. But I am wondering what a control-...
Lance Pollard's user avatar
20votes
7answers
3kviews

I sometimes stumble upon code similar to the following example (what this function does exactly is out of the scope of this question):function doSomething(value) { if (check1(value)) { return -...
3votes
1answer
2kviews

I'm refactoring a huge WPF application whose complexity stems from the way it deals with flow control. It has a lot of "tiny business rules" that make it really difficult to make a modification ...
2votes
1answer
132views

Coming over from the Java world, I am having trouble translating a multi-threaded approach to IO to the ES6 Promises concept of aysnc IO. Many of the examples I have seen on promises show a linear ...
Michael Plautz's user avatar
2votes
1answer
99views

Assuming declarations are expressions consider such code:if ((var x = foo()) and (var y = x)) or (var z = bar()) then println(z);endThe reference to x is OK, because at this point x has to be ...
-2votes
1answer
368views

void function(int x){ if(x<=0) return; function(x--);}This is a recursion function which is called with the value of x = 20.The Recursive call will take place in this way...
aswal94's user avatar
3votes
4answers
2kviews

Let's say you have 10 database records which you need to process in the following way:StartPull 2 records from the database with the 'Processed' flag set to 'false'Call the external web service ...
HABJAN's user avatar
3votes
1answer
74kviews

I'm having difficulties understanding whether or not this is the right process to use for a flow chart which illustrates the processes involved in an algorithm.For this, assume the following:A 1D ...
0votes
1answer
797views

Yesterday I asked a question that happened to have another meaning inside. I can see that Control/data flow is often mentioned to be static analysis (when tools is used) or dynamic analysis testing in ...
John V's user avatar
  • 4,946
1353votes
14answers
279kviews

I often talk to programmers who say "Don't put multiple return statements in the same method." When I ask them to tell me the reasons why, all I get is "The coding standard says so." or "It's ...

Hot Network Questions

more hot questions
Newest control-flow questions feed

[8]ページ先頭

©2009-2025 Movatter.jp