Skip to main content
Stack Overflow
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
Best practices
0 votes
10 replies
229 views

The main() function returns a code stating back to the operating system. 0 if the program executed successfully. any other number to indicate failure. Moreover, if you write: int main(){ } The ...
0 votes
1 answer
79 views

I'm currently studying Java in general and inheritance in particular. When I run the code below in an online editor it throws an error related to the main method, however, when I modify it as ...
2 votes
2 answers
256 views

I have a function that I would like to call before my main function in rust: fn init_stuff() { // do stuff } and I was just wondering if there was any equivalent to the __attribute__((constructor)...
9 votes
1 answer
408 views

I have guessed multiple syntax variations to achieve this in a single line in the MAIN function. I know I could achieve it in two separate lines, but am looking for the cleaner solution and only ...
-4 votes
1 answer
106 views

Since main() is made static so that JVM can access it without creating an object of the class in which it is defined, then what is the need for writing it in a class?
0 votes
1 answer
338 views

How does one set up a java program that can be run as a module simply by doing java -m mymodule? I know this is possible because I have seen it in, e.g., the jwebserver documentation; you can run this ...
0 votes
1 answer
436 views

When I try to execute the command uvicorn main:app --reloadfor start my local server, the VSCode terminal throws the error invalid command name 'main:app'. The code below imports a variable from the ...
-1 votes
1 answer
154 views

I am getting this error in my program : error C2731: 'wWinMain' : function cannot be overloaded at this line: int APIENTRY wWinMain(_In_ HINSTANCE hInst, _In_opt_ HINSTANCE hprevInst, _In_ LPCWSTR ...
0 votes
0 answers
68 views

I am developing one DLL in VC++ and its working while testing with my Test.exe app in debug mode. But while running Test.exe in release mode I am getting "Entry point Not Found" error While ...
0 votes
1 answer
162 views

When we use top level statements in C# 9 (and later), where we can omit static void Main(string[] args) and internal class Program, our program does not begin at the Main method; but rather, <Main&...
0 votes
0 answers
83 views

I have a text editor, now I'm implementing licensing support. Licenses are managed on a third-party server (SAAS). Desired Flow The user opens the editor. If they have no license (first-time open): ...
-1 votes
1 answer
180 views

I am currently writing a basic program with multiple menus. I have a function called menu1(), which is called in main and handles the first set of menu options. My issue I am having is being able to ...
0 votes
0 answers
80 views

I have an interface I've created called interface.py that runs a script based on the press of a button... def submit_action(selected_item): values = list(item_to_value[selected_item]) ...
-1 votes
1 answer
116 views

I have been reading the 2nd edition of A Tour of C++ by Bjarne Stroustroup and in section 3.2 on Separate Compilation, he mentions translation units. A .cpp file that is compiled by itself (...
0 votes
1 answer
94 views

This question came to me last night, and I couldn't find a definitive answer in my brief surf of Google. Should (or could) I use portable types (i.e int32_t) in the declaration of my program's main ...

15 30 50 per page
1
2 3 4 5
...
208

AltStyle によって変換されたページ (->オリジナル) /