[DiscordArchive] If you can?
[DiscordArchive] If you can?
Archived author: Whomadeit • Posted: 2023-06-12T19:09:24.168000+00:00
Original source
If you can?
Archived author: Tea • Posted: 2023-06-12T19:09:33.592000+00:00
Original source
`int main() { return 1; }`
Archived author: Tea • Posted: 2023-06-12T19:09:43.299000+00:00
Original source
the code
Archived author: Whomadeit • Posted: 2023-06-12T19:09:48.377000+00:00
Original source
That’s the whole code? Or is the line you are confused on
Archived author: Whomadeit • Posted: 2023-06-12T19:09:54.237000+00:00
Original source
Kek
Archived author: Whomadeit • Posted: 2023-06-12T19:10:36.237000+00:00
Original source
that line is reference to this issue
Archived author: Whomadeit • Posted: 2023-06-12T19:10:36.960000+00:00
Original source
?
Archived author: Tea • Posted: 2023-06-12T19:11:19.969000+00:00
Original source
<https://github.com/Shauren/tc-client-launcher/blob/master/src/desktop-app/desktop-main.ts#L91> have fun guessing what on earth is making it slow
Archived author: Whomadeit • Posted: 2023-06-12T19:11:29.670000+00:00
Original source
int main() is the function definition for the main function. The main function is a special function in C and C++ programs—it's the starting point of execution for any program. The int in front of main means that this function will return an integer (a whole number).
{ return 1; } is the body of the main function. All it does is immediately return the integer 1. In the context of a C or C++ program, the integer returned by main is a status code that gets reported back to the operating system when the program exits. A return value of 0 typically indicates that the program ran successfully, while any other value indicates some kind of error. So in this case, the program is effectively saying "I ran, but there was an error."
In short, this is a very simple C or C++ program that immediately reports an error and then terminates.
Archived author: Whomadeit • Posted: 2023-06-12T19:12:08.509000+00:00
Original source
ty.