Ибраги́м
https://www.youtube.com/watch?v=fLeHy7s1WIo
Anonymous
#include <stdio.h> #include <string.h> void changePosition(char *ch1, char *ch2) { char tmp; tmp = *ch1; *ch1 = *ch2; *ch2 = tmp; } void charPermu(char *cht, int stno, int endno) int i; if (stno == endno) printf("%s ", cht); else { for (i = stno; i <= endno; i++) { changePosition((cht+stno), (cht+i)); charPermu(cht, stno+1, endno); changePosition((cht+stno), (cht+i)); } } } int main() { char str[] = "abcd"; printf("\n\n Pointer : Generate permutations of a given string :\n"); printf("------------------------------------------------------ --\n"); int n = strlen(str); printf(" The permutations of the string are : \n"); charPermu(str, 0, n-1); printf("\n\n"); return 0;
Anonymous
Pointer thik moto bujhina,,,akhane ki hoise kisu bujhlam na,,cht+stno kno? changePosition((cht+stno), (cht+i)); charPermu(cht, stno+1, endno); changePosition((cht+stno), (cht+i)); }
Nomid Íkorni-Sciurus
Nomid Íkorni-Sciurus
This is escalating quickly.
Dima
Anonymous
Francisco
Uff...
Anonymous
The Dog constructor takes 2 constant Dog references.
Anonymous
Anonymous
why is option 1 correct? how does it effect...when a statement is placed in while loop ..it executes multiple times..
Anonymous
doesn't it reduce efficiency?
Anonymous
What are three types of error do function prototype helps to prevent ? I know it helps to prevent declaration error I need other two.... Plz answer I have to complete my assignment and i cant find answer anywhere
Ayush
I want lectures
Ayush
Or some basic start
ozxx
can anyone tell me that how to use vector with map?
Liam
std::map<key_type, std::vector<value_type>>?
ozxx
yes , but in which type of problem we can use this?
Liam
...
Liam
Teacher: Alice and Bob, what did you have for last dinner? Alice: Cake, milk, and a ham. Bob: Cheese, bread, and steak. Now you can store them in a std::map<std::string, std::vector<std::string>> for later use.
Liam
An easy example.
ozxx
ok 👍
Anonymous
I have added boost library to clion using CMakeLists, but the IDE still warn the #include <boost/multi_index_container.hpp> not found
Anonymous
but the project can run
kappa
In stack we put value of top =-1 we compare it to MAX-1 (top==MAX-1) and if true then stack is full why we compare top when we have set top value to -1
Anonymous
Check out this Meetup with RLA Academy http://meetu.ps/e/H0NFJ/B4nhZ/d Happening in Bangalore
shreyas
I am noob
shreyas
Anyone help me to get start with c++
Ash
What just happened
Ash
?
Stephanos
Please Acoustic, read the rules
Ash
## 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.
👍 got it
IM
I am noob
Like complete noob in programming or just in cpp?
Banti kumar
C i
miko
Anyone help me to get start with c++
just start learning from videolessons
Koulick Sadhu
Any good resources for treap?
Shanu
/warn
Shanu
Ok
Dima
noobs
I_Interface
Koulick Sadhu
I_Interface
anyone know?
StackOverflow ?
Anonymous
Koulick Sadhu
It is tree+heap data structure.
I_Interface
It is tree+heap data structure.
it's like dynamic tree in heap ?
Anonymous
It is tree+heap data structure.
Heap data structure is already a tree
I_Interface
Heap data structure is already a tree
ye, i was thinking about that, it has ptrs for root and leaves
Anonymous
ye, i was thinking about that, it has ptrs for root and leaves
The heap data structure, due to its features, can be represented as an array. But semantically it is still a tree.
shreyas
Complete noob
In programming
Talula
In programming
How old are you?
Dima
Dayum, should’ve left the warn message. Anyways read the rules please
Yashwanth
Sorry
Talula
Still time to learn... no problem
Anonymous
Hello Guys, does this group have a Java counterpart? I’m into C++ but actually I’m studying for the OCA, and would be very useful to me clarify any doubts
Dima
You can ask c++ related questions there
Anonymous
You can ask c++ related questions there
Well Java questions are not related to C++ 😅 the syntax is slightly different
Dima
I thought jni or something
Dima
you better find java related group
Anonymous
you better find java related group
Yh I struggle find it Thank you anyway
Talula
And what does that mean?
Stephanos
Oh, sorry... just go to http://www.fuckinggoogleit.com/ and download it there.
Stephanos
why do all people just come here to get their homework assignments as cheap as possible?
Stephanos
1) write a description what your program should do 2) write a program that kind of does what it should 3) upload it to pastebin 4) ask what is going wrong dont just ask others to do your homework. seriously
Anonymous
/saved
Nehemiah Aklil
#findprojects
Dima
the first one looks more sexy
Dima
no
I_Interface
initializer list second
I_Interface
initializer list second
it uses for const values, but also can be used for an usual var
I_Interface
and u don't need to use "this->" pointer, if u are using init list
I_Interface
ur welcome
I_Interface
coz u didn't init it
I_Interface
init it with 0 value
Anonymous
Because you use uninitialized memory And it is actually an undefined behavior