Use this tag for questions about entry points to executables (programs); e.g., the "main()" function in most programming languages. If your question is programming language specific, tag that: language as well e.g. C, C++, Java etc.
Questions tagged [program-entry-point]
2997 questions
0
votes
0 answers
How to display agent's parameters' values in Main (Anylogic simulation)
I am working on an Anylogic model in which I have created an agent with some parameters in the agent window.
However, when I call an agent's parameter in Main using agent.parameter I get a value of 0 instead of the actual parameter's value.
Please…

maryam kouram
- 11
- 3
0
votes
0 answers
Junit thread not terminate as java main method do
Example1
A junit test method. This will not print finally.
@Test
public void junit_Thread() {
new Thread(new Runnable() {
@Override
public void run() {
System.out.println("run");
try {
…
0
votes
1 answer
How do I correctly format my code to run this menu program in Java?
This is a beginner question. I'm about to start an online bootcamp and am stuck on my last pre-work project (which is a cumulation of everything we've been instructed to self-teach ourselves). I'm really lost and can't wrap my head around this.
Here…
0
votes
1 answer
if __name__ == "__main__": failing; why won't __main__ call my classes?
I have been simplifying this code and I am without words. Simply put, the file will not run to call the classes present, and by extension the functions within. The error is something I have never come across and would like some clarity on, if…

Magic Dave
- 11
- 3
0
votes
1 answer
How to make a UML diagram with a class that has a main method and no fields
I have a class that has a main() method and no fields and also it doesn't have a constructor. This class is just a simple class in a larger project, that I did it all by myself and that is why I feel like something is wrong.
I have to document the…

اريام
- 21
0
votes
0 answers
Runtime Error when running a LDA model of gensim on Windows
Okay, so i know this is a Windows error and not a Gensim error. Based on previous examples on the internet and other comments/solutions from Stack Overflow I came up with the code below. However, the code never makes it to the print of the coherence…

Gerard B.
- 43
- 4
0
votes
0 answers
main process --> pthread --> fork --> lets the forked process run and kill main
Process A should start process B and then terminate. Process B should continue as an independent process
please have a little mercy on me - i am trying to educate myself and i like to learn more
int parallel_thread1;
pthread_t thread1;
static void…

oemer_1907
- 21
- 3
0
votes
1 answer
How to divide header and main, tags?
I just created a header, and after main section, and my main section is in header, I tried to margin from top, and isn't worked for me. I've made a screen, to show my problem :
I need to divide header and main, for main for ex. with margin top of…

skryptoxy
- 51
- 9
0
votes
2 answers
How to call multiple functions in javascript and have them display?
I'm trying to call multiple functions at once and have them displayed on the screen. CalculateSum function is able to display correctly. The error message is quotient not defined. I've looked at CalculateQuotient function, I don't understand what…

Marissa Smith
- 11
- 2
0
votes
1 answer
How do I retrieve data from an agent type and bring it to the main agent to set up experiments in AnyLogic?
I have developed a model that uses four agent types with state-chart and discrete events models simulating a team working behaviour.
As a logical step, I started by adding graphs and other analysis elements to observe the behaviour of each agent…
user14597641
0
votes
1 answer
Flutter Firebase has not been correctly initialized
I want to use firebase in my app,
I write this:
main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
runApp(Myapp());
}
but I got error :
I/ExoPlayerImpl( 5331): Init ba5fb7d [ExoPlayerLib/2.17.0]…

user17838882
- 93
- 2
- 14
0
votes
2 answers
how to clean a cluttered main()?
In order to keep the main() (in c++) as clean/small as possible, there a a few options you can choose but which of them is best? initialize all variables in main, init them outside of main as global, global in .h, init them in main BUT set there…

Rhexis
- 2,414
- 4
- 28
- 40
0
votes
0 answers
unable to compile application project on sdk 2019.1
I made hw design on vivado 2019.1 and i build application project on sdk 2019.1 based on .hdf file.
(My design consists of microblaze mcs)
i have 2 static libraries too .
When i try to compile main() it gives me an…

Yonatan Elizarov
- 1
- 1
0
votes
1 answer
Expected type `Method` found enum `Result<_, MethodError>`
I am trying to convert a &str to an enum, but got the error Expected type Method found enum Result<_, MethodError> at this line Err(e) => Err(e). How to properly return an error in this case?
use std::str::FromStr;
fn main()…

Peter
- 656
- 1
- 6
- 14
0
votes
1 answer
How to solve segmentation fault in change main function inputs with C code?
I want the following code, which is related to the Sysbench tool (https://github.com/akopytov/sysbench), to change from the following code to the next code, but I get an error with just this small change (Segmentation fault (core…

Zahra Heydari
- 55
- 1
- 4