Manav
lemme share a game that can be made in gdevelop or construct3, wait a sec, so you get an idea at the level of polish you can have
Jer
Okay cool, ty
Manav
https://skoll-studio.com/lastmoon-html made with construct 3
Jer
My idea is not this detailed xDD
Manav
if making games is your goal, and scripting languages are just a tool to do that. I'd suggest using engines like gdevelop, construct3, etc.
Jer
well.. itdepends, if you want to make 2d games yes. for 3d nope
Would work, but I don't like the fact that restrictions exist in general..
Jer
Developing it without a game engine even crossed my mind tbh lmao
Manav
Jer
Still learning the basics of C++
Jer
Using godot is a future plan, I like the license
Anonymous
Bro can you teach me?
lol, you made him delete his account.
Jer
engine>writing own
Yeah but I like godot's license, let's me have that control over what i create with it, legally speaking
Siax
Is it possible to create a bot for WhatsApp business that sends messages to the entire address book?
Siax
Absolutely
how you do it?
klimi
how you do it?
in a nut shell you use the available interfaces for the messaging app and then the address book. Tho it might be against the messaging app policy
Rose
Is it possible to create a bot for WhatsApp business that sends messages to the entire address book?
That's 2/2 warnings; Siax is banned! Reasons: 1: meta question and offtop 2: offtop
Jer
Got another question about random number generation
Jer
int d20() { static bool seeded = false; if (!seeded) { srand(time(NULL)); seeded = true; } return rand() % 20; } This generates a random number each time without reseting the seed, I'm not quite sure how it works exactly... I'm not seeing the correlation between the "seeded" variable and the rand() function
Jer
No this code works fine and how I want it to, but I didn't understand it lol, so I'm trying to figure out and understand exactly how it works
Jer
I created a for loop, and had it execute, and it generated a different random number each time
Jer
How does the "seeded" variable, connect to the part srand(time(NULL)) is my question
Pavel
How does the "seeded" variable, connect to the part srand(time(NULL)) is my question
You declared seeded as static, that means its value will be stored across all the calls. The first time d20 is called, seeded is false, so it will go inside the if condition and call srand, initializing a random sequence using current time as a seed. Then it will call rand(), which returns the next value in the sequence and advances the sequence. Every other call seeded is true, so it will just call rand that will return the next random value advancing the random sequence further. By the way, to initialize the random you can just call srand in your main() function before any other work, without any static variables. It is enough to call it once per app.
Jer
Okay thanks
Danya🔥
I have an uncle by the name of Pavel, are you russian by chance?))
Please don't go offtopic, we have a special group for it
Rose
Offtopic discussions should be done in the C/C++ Offtopic group. Please take your discussion/questions there.
Jer
Okay..
Pavel
Oh I get it
Also, it is usually adviced to not call srand often. E.g. imagine you have d20 and d6 functions that look the same, if the first time when you called them would happen too close in time so time(NULL) would return the same value, then they could generate bound values (if one is even, another would be often even as well). If there's a case when you need seeded random, you can use other random number generator implementations than the global rand (in C++ there are some in the standard library, for C you can find some simple implementations on the internet). The reason is that since rand is global it can affect and be affected by other code. If you have your own RNG instance, you would have control over when it is seeded and with what.
.
I really need help for alx tasks
.
Can anyone expert with c contact me please really need help
klimi
Can anyone expert with c contact me please really need help
If you just read the rules you would know that you should just ask your doubt
klimi
#meta
Rose
#meta
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Mustapher
Can anyone help me to write while or how to use it in c++
Ziky
Can anyone help me to write while or how to use it in c++
https://www.w3schools.com/cpp/cpp_while_loop.asp https://duckduckgo.com/?t=ffab&q=c%2B%2B+while+loop&ia=web
Mustapher
Siddhanth
I go for YouTube lectures or friend helping
klimi
Wrong group buddy
Rose
Any c programming book recommendations please.
Please check out this channel - @Resources for information on learning sources for C and C++ (books and videos) and Frequently Asked Questions.
Siddhanth
I joined cause of PPL having interest
Kenshin
Can anyone help me to write while or how to use it in c++
Have you written a while loop in any other language? Specifically C-family languages like C# or Java, and, of course, C? Pretty much the same as those three. However, this is a very beginner level task and would best be handled by a YouTube video on learning C++. Asking questions here, in my opinion, should be a resort you come to after your own research is not giving you the clarity you desire.
Самаган
Hello everyone! I am beginner c++ learner. I know basic syntax, OOP in c++. And I would like to ask some advice. What should I do next? Which resourses you recommend?
Ludovic 'Archivist'
Hello everyone! I am beginner c++ learner. I know basic syntax, OOP in c++. And I would like to ask some advice. What should I do next? Which resourses you recommend?
Try and work on a project of your own, preferably using a single library. Learn how to use the <algorithm> header extensively as well as the different containers (in particular std::deque, std::vector, std::set and std::map)
Самаган
Do u suggest any websites or books to read?
Ludovic 'Archivist'
Do u suggest any websites or books to read?
cppreference.com and for the algorithms I recommend you watch the C++ Seasoning conference of 2013 and in particular Sean Parent's talk
Самаган
thank u bro
Ludovic 'Archivist'
thank u bro
If you need a teacher, I have a link in my bio
To ask about flowgorithm do i need to switch to offtopic or do u have another group?
.
Can anyone help please
.
Write a function that produces output according to a format. Prototype: int _printf(const char *format, ...); Returns: the number of characters printed (excluding the null byte used to end output to strings) write output to stdout, the standard output stream format is a character string. The format string is composed of zero or more directives. See man 3 printf for more detail. You need to handle the following conversion specifiers: c s % You don’t have to reproduce the buffer handling of the C library printf function You don’t have to handle the flag characters You don’t have to handle field width You don’t have to handle precision You don’t have to handle the length modifiers
.
It's q full project and I can't get that first one
.
And also Betty style coding
.
Printf projet
Danya🔥
It's q full project and I can't get that first one
Do you want someone to write the code for you?
.
Just to guide me
.
Chatgpt can write the code for me
Danya🔥
.
Chatgpt can guide you
What's your problem?
.
Thank you useless Dayna
Danya🔥
@K11M1 what do you think?
.
Danya says kick him out 😂
klimi
This is the first task
and what do you not get on it? It seems pretty straight forward