C
Danya🔥
But if a person stuck on a specific problem, they should ask the specific problem
Danya🔥
Not theirs whole assignment
Danya🔥
This is literally what is written in the rules
Jer
I mean if they ask you to do the work FOR them, I'd just laugh at them too lol, laziness isn't encouraged
Jer
Jer
I can probably guess that a majority of people asking for help, are doing so (in probably not their first language, because this is English only) so the meaning comes out wrong when thrown through a translator, but most (maybe 99% imo) want to learn, and not wanting you to do it for them
Muheeyy
klimi
klimi
Jer
Harsh on people that are in school, ig I won't be affected either way though, bc I just stick to fun projects to learn
klimi
Jer
I don't go to college.. but I do believe in the freedom of information
Jer
So if someone has a question about a topic I know, I'll teach until they understand, though I prefer if this is in person
Danya🔥
klimi
Danya🔥
If we didn't ban the people who ask "help me with homework please" repeatedly, the whole chat would be filled with these questions only. So it would be practically dead.
Chat Boss
Danya🔥
Jer
I spent 4 hours yesterday trying to figure out how to compile a hello world program on linux and running it on windows, kinda funny
klimi
H.
C++ is hard. I once it is easy, I was wrong. Just to correct myself.
Ehsan
#define CLEAR_BUFFER while ( getchar ( ) != ’ \n ’ )
CSI Linux
Hzllo
Mara
Hello
CSI Linux
Hello
Thanks Can i implement a récursive routine fonction using stack overflow in C++ ?
Mara
Technically possible, yeah
Siax
my site gives me an ssl error, I pay whoever can resolve the error
Jose
@Agentray you may use letsencrypt to generate your ssl certs and for free :)
Siax
Jose
pastebin your error
Siax
ERR_SSL_PROTOCOL_ERROR
Jer
Finally have my first question, I would google but I don't really know "exactly" where to start, so as a learning project I'm making a little rpg game I already coded in python, but on C++ on linux, but I want to make it windows compatible, I already have all the necessary libraries to go with it for it to run properly, so the issue is not to get it to run, but I noticed that when I loaded into my dual boot on windows, I couldn't double click on the file for it to open a command prompt to see the result, or maybe it closed too fast for me to see it? Which might be the case These programs I tested was a "hello world" and a random number generator, that only made 5 numbers, if command prompt is not being opened when the .exe file is being clicked, how do I make this happen? Is my question
Jer
Or if someone could point me in the right direction that would be cool too
Manav
Finally have my first question, I would google but I don't really know "exactly" where to start, so as a learning project I'm making a little rpg game I already coded in python, but on C++ on linux, but I want to make it windows compatible, I already have all the necessary libraries to go with it for it to run properly, so the issue is not to get it to run, but I noticed that when I loaded into my dual boot on windows, I couldn't double click on the file for it to open a command prompt to see the result, or maybe it closed too fast for me to see it? Which might be the case These programs I tested was a "hello world" and a random number generator, that only made 5 numbers, if command prompt is not being opened when the .exe file is being clicked, how do I make this happen? Is my question
too little informaitn on what library you use, how you code your app, etc. I'll assume it is a native windows application, you can use AttachConsole()
Manav
https://learn.microsoft.com/en-us/windows/console/attachconsole
Jer
Manav
Manav
Jer
Jer
Do you wanna see the code? For the .exe file, It's 14 lines
Manav
yes that'll help
Jer
yes copy paste it here, 14 lines isn't much
#include <iostream>
#include <ctime>
using namespace std;
int main() {
srand(time(NULL));
for(int i=1; i<=5; i++){
int random = rand() % 1337;
cout<<random<<endl;
}
return 1;
}
Manav
Jer
No
Jer
CLI, and I want it to open in command prompt
Manav
Finally have my first question, I would google but I don't really know "exactly" where to start, so as a learning project I'm making a little rpg game I already coded in python, but on C++ on linux, but I want to make it windows compatible, I already have all the necessary libraries to go with it for it to run properly, so the issue is not to get it to run, but I noticed that when I loaded into my dual boot on windows, I couldn't double click on the file for it to open a command prompt to see the result, or maybe it closed too fast for me to see it? Which might be the case These programs I tested was a "hello world" and a random number generator, that only made 5 numbers, if command prompt is not being opened when the .exe file is being clicked, how do I make this happen? Is my question
you figured out the issue here, it's closing too fast before you can see it
Jer
Ah, Ok imma test that with a while loop
Jer
Lol no, just opening the console when clicked
Jer
Manav
Jer
But the rest of my tests have a 0 there
Jer
Manav
Jer
Okay
Manav
if you don't understand, it's fine :) you have better things (making your game) to worry about atm.
Jer
Well it's just a hobby project lol, although I got multiple ideas for games
Jer
Kinda wanted to learn C++ for godot tbh
Jer
No i was trying to get my friends together to code a game with me, but so far they haven't even learned python yet lol
Manav
Manav
oh that's not what i wanted to say
Jer
Figured this would be more useful knowledge in the long run
Jer
Jer
the scripting language that godot uses, I read about it a little bit, would be good to know for the specific task
Manav
Jer
I'd rather have full control over it.. but that's me, but is this commercially viable?
Manav
you can make a good game with those, i use gdevelop for small prototype
Manav