Skip to main content
0 votes
1 answer
75 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 ...
Robk29's user avatar
  • 23
2 votes
2 answers
233 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)...
theKMan747's user avatar
0 votes
0 answers
50 views

I am trying to understand the entry point _start of a random C application which i had written, i wanted it to change to a different function so i changed it using the compiler flag while compiling my ...
Venu Gopal Atchyutanna's user avatar
9 votes
1 answer
402 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 ...
David Gordon's user avatar
-4 votes
1 answer
101 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?
PS Nayak's user avatar
  • 423
0 votes
1 answer
300 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 ...
Tasos Papastylianou's user avatar
0 votes
1 answer
334 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 ...
RAFAEL HSL's user avatar
-1 votes
1 answer
140 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 ...
Zmouch Zmouch's user avatar
0 votes
0 answers
62 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 ...
Sijith's user avatar
  • 4,018
0 votes
1 answer
144 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&...
winscripter's user avatar
0 votes
0 answers
80 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): ...
André Polykanine's user avatar
-1 votes
1 answer
157 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 ...
Jack Ross's user avatar
0 votes
0 answers
69 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]) ...
intrepid's user avatar
-1 votes
1 answer
113 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 (...
heretoinfinity's user avatar
0 votes
1 answer
93 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 ...
Zenais's user avatar
  • 146

15 30 50 per page
1
2 3 4 5
208