Death
Can we able do that
Death
If so please suggest any data structure that suits my need
NXiss7
Depends on needs. Structs are one for exanple
Death
Thanks pal entirely forgot about it
NXiss7
You're welcome. 😄😁
Noor
Can we split the group to c only and c++ only?
NXiss7
You usually use C when using C++... They operate together...
LadyNone
Hi
NXiss7
Hi
Anonymous
Hi
Dima
Can we split the group to c only and c++ only?
We can split c++ and c++ for indians
Dima
Oh wait. There’s already one
klimi
@neko_CPP thats odd
klimi
The "person" who joined
Dima
Oh I see
Dima
Ban?
klimi
Idk.... Well it didnt do anything... Yet
klimi
@neko_cpp second is yours
Dima
Warn?
Dima
/warn warnoretardo
klimi
Warn?
Meow~
Anonymous
hi
Anonymous
how can i make random choices in if statement in C? if (a == 4 && b == 4 && c == 4 && d == 4) { choose random a b c or d }
klimi
hi
Hi?
NXiss7
Meow~
Nyaaa~~ 😄😄😄
Anonymous
Hi?
I wanna make random choices, how can I do that?
Anonymous
if (a == 4 && b == 4 && c == 4 && d == 4) { choose random a b c or d }
klimi
Google: random int c++
Anonymous
i dont wanna generate random numbers
Anonymous
I just wanna make random choices in C
NXiss7
You can assign numbers to paths then choose a random number.... Or what are a, b, c, d? You may idx it if it's array like...
Anonymous
You can assign numbers to paths then choose a random number.... Or what are a, b, c, d? You may idx it if it's array like...
int xxxd[3]={a,b,c}; if (a == 0 || b == 1 || c == 2) printf("%d", xxxd[rand() 2% + 0]);
Anonymous
whats wrong
Anonymous
int a = 0, b = 1, c = 2; int xxxd[3]={a,b,c}; if (a == 0 || b == 1 || c == 2) printf("%d", xxxd[rand() 2% + 0]);
ZukiZest
int line, column, table; float values[2][3][5] = { {{1.0, 2.0, 3.0, 4.0, 5.0}, {6.0, 7.0, 8.0, 9.0, 10.0}, {11.0, 12.0, 13.0, 14.0, 15.0}}, {{16.0, 17.0, 18.0, 19.0, 20.0}, {21.0, 22.0, 23.0, 24.0, 25.0}, {26.0, 27.0, 28.0, 29.0, 30.0}} }; for (line = 0; line < 2; line++) for (column = 0; column < 3; column++) for (table = 0; table < 5; table++) printf("values [% d] [% d] [% d] =% f \n", line, column, table, values[line][column][table]);
Anonymous
arrays
what u mean
ZukiZest
But this is for l used
Anonymous
array[rand() 2% + 0] is wrong?
Ak
Hi
MATEI𝕏⚡️
is there any good functional package for c++?
ZukiZest
int main() { srand(time(NULL)); for(int i =0;i<10;i++){ cout<<rand()%100<< endl; }
ZukiZest
now l understand that
ZukiZest
rand will run only sort of numbers
ZukiZest
srand run all numbers
Anonymous
Data Science and Artificial Intelligence is the hottest topic today and it's doing incredible job in all sector specially in heath care domain. Coronavirus disease is a global problem. Here's my contribution on that as Data Scientist 1-Analysis on Coronavirus https://lnkd.in/fDYfJQk 2-Machine learning on Coronavirus https://lnkd.in/f9FK8vZ 3-Analysis and Prediction of Coronavirus trend in future https://lnkd.in/fAwUjY2 Report on Coronavirus https://lnkd.in/fyR2FdJ
Anonymous
srand run all numbers
I don't understand you, but it is what standard say
Ludovic 'Archivist'
I don't understand you, but it is what standard say
int rand() { return 4; } This is my favorite implementation of rand
Francisco
Pavel
int rand() { return 4; } This is my favorite implementation of rand
It's like an allocator that just returns nullptr.
Nils
I have not read the rules, but... Where are the rules? 🤔 There is nothing pinned and group info does not contain them.
Nils
Thank you. I have read the rules and I agree with them.
Dima
Good for you
Nils
## Rules #pinned * You are not entitled to an answer, getting angry about not answered questions will get you warned. * Not checking your problem in google (or any other search engine) first will get you a warn. * Asking for something that is in the pinned message right after joining WILL GET YOU BANNED. * C/C++ discussion preffered (assembly also allowed), asking about other languages (or groups for other languages) right after joining will get you BANNED. * Reverse enginnering, hacking and related topics are allowed, but asking to hack facebook, instagram, etc. is NOT allowed. Also if you ask "how to become a hacker" and obviously have zero knowledge on anything related to that you may get warned or banned. * Legitimate requests for help on code and programming questions are welcome. A request is considered legitimate if it describes your problem, what you've done so far and what went wrong. Requests such as "write my program" or "do my homework" are never considered legitimate. Asking not legitimate questions will result in a warn or ban. See https://stackoverflow.com/help/mcve on how to write good questions. * Asking for book recommendations is ok, but "pls give pdf book" is not allowed, find books by yourself. Posting illegally copied books (or links to those books) is also not allowed. * Only English language is allowed, if you speak shitty English or don't understand anything in English YOU WILL BE BANNED. * A little bit of programming related memes, jokes, shitposting are allowed. * NSFW content (porn, nudity, etc.) is not allowed. * Spamming/advertising (job posts are also ads, so ask an admin before posting) will grant you a warning or an immediate ban if you do it right after joining. * Religion, politics and ideological topics are forbidden. * Long code snippets must be posted via a snippet website(links below), posting pictures of code and posting long snippets in the group is not allowed. * If you encounter a problem, while using turbo C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk ## Resources About asking good questions: * [English](http://www.catb.org/esr/faqs/smart-questions.html) * [Translations](http://www.catb.org/esr/faqs/smart-questions.html#translations) For posting long code snippets: * [GitHub Gist](https://gist.github.com) * [Ubuntu Paste](https://paste.ubuntu.com/) * [Pastebin](https://pastebin.com) ## Reports If you notice any forbidden content, please use the /report command while responding to the offending post to report it to the admins.
Spamming/advertising (...) will grant you a warning ... Isn't this wrong? Granting usualy means like... Allowing somebody to do something.
Dima
lol
Nils
Sorry if that is wrong on my side 😅
Dima
maybe it should kinda sound like ‘grant access’ or whatever
Dima
but dystopian version
Nils
maybe it should kinda sound like ‘grant access’ or whatever
I'd suggest "will get you a warning", even though I am not sure if that is correct
Dima
thanks for suggestion
Nils
😁
Dima
maybe that’s why we are giving so much warns 😹😹
NXiss7
😅😄😄
Nils
Pointers are such a cool thing to mess with 😄
NXiss7
Pointers are such a cool thing to mess with 😄
Yeah, they are. I especially love dynamic memory but soon you'll see why people run away from them. 😄
NXiss7
Oh, hi
Hi 👋😄
Anonymous
Nice co-op work, Dimka
NXiss7
😄👏
Rounak
@unterumarmung try to give respect....the way that u r speeking is not polite...and please read the rules urself before saying it to anyone...
Anonymous
If you don't get silent with your offtopic, you get banned
Dima
it is messy