Anonymous
🙂
Richard
Please I need you guys help I need someone who can ask
Anshul
Ask your questions here.here are many good problem solvers
Anonymous
Thanks
Anshul
How sets are implemented in STL
Anonymous
How sets are implemented in STL
https://stackoverflow.com/questions/16535141/c-stl-set-implementation
Anonymous
How do a person loop in c programming
Anonymous
I am new here can anyone tech me c++
Pavel
Hi, what is the proper way to get a signal from one thread to another that the work is finished? I spawn a task and give it to another thread and want to stop my thread until the another one is done with processing the task. I don't care about the results, I just need to pause the execution until this moment. I guess I need just an atomic_bool and loop on it in with acquire memory order? Is there a function for that like wait for atomic_flag? Or it will be more effective to use atomic_flag (together with a bool and a mutex)?
Raj 445
// Insertion at begning At Doubly linked list #include<stdio.h> #include<stdlib.h> // structure created struct Node { int data; struct Node * Next; struct Node * prev; }; // traversal void traversal(struct Node * head) { struct Node * ptr = head; while(head->Next!=NULL) { printf("%d ",ptr->data); ptr=ptr->Next; } } // insertion fuction struct Node * InsertionAtbeg(struct Node * head,int value) { struct Node * p = (struct Node*) malloc (sizeof(struct Node)); p->data=value; p->prev=NULL; p->Next=head; head->prev=p; head=p; return head; } int main() { // Dynamic memory allocation struct Node * head = (struct Node*) malloc (sizeof(struct Node)); struct Node * second = (struct Node*) malloc (sizeof(struct Node)); struct Node * third = (struct Node*) malloc (sizeof(struct Node)); struct Node * fourth = (struct Node*) malloc (sizeof(struct Node)); // linking Nodes head->data=32; head->Next=second; head->prev=NULL; second->data=43; second->Next=third; second->prev=head; third->data=23; third->Next=fourth; third->prev=second; fourth->data=85; fourth->Next=NULL; fourth->prev=third; printf("Before the insertion:\n"); traversal(head); printf("After the insertion:\n"); // function calling head=InsertionAtbeg(head,23); traversal(head); return 0; }
Raj 445
What is mistake
Vladimir
[ENG]: Hi everyone! I am going to learn C++, which book or site to learn C++ you can recommend for me? And which redactor of code i need? I am looking for install VS Code for doing labs on C++ [Для русских]: Всем привет, собираюсь делать лабы универовские по С++, посоветуйте пожалуйста годный самоучитель по С++ и редактор кода. Мой выбор из редакторов пал на VS Code. Ну и гитхаб к нему добавлю. VS Code норм будет?) А то раньше пользовался VS 2019, но он очень громоздкий по объему, а функционал вроде не намного больше
Vladimir
Why you don't work with dev c++? Its simple and powerful
Dev C++ is IDE? I didn't know about it)) I worked only in Visual Studio 2-3 years ago
Manu
Is anyone can give me gcc file ....i can't able to download ...idk why ....
Mahdi
Dev C++ is IDE? I didn't know about it)) I worked only in Visual Studio 2-3 years ago
Yeah it is 🤔 When u download the files u will have an ide and a exe file then u should install its ide on dev then it's ready Actually i like VS code but i really confused with installing c++ ide on it 😅 So i decided to work with dev c++ and i found it really interesting
Anonymous
urgh
Anonymous
use these. vscode isn't bad, but it is hard to integrate with industry standard tools. the CMake syntax highlighter extension was last updated 3 years ago afaik
Anonymous
Hello Everyone How are you doing?🙂 And why is the rules of this group is so outstanding ?
Anonymous
maybe if it supported at least CMake
Manu
yes.
So which is good platform ..for c++?
Anonymous
So which is good platform ..for c++?
https://t.me/programminginc/412403
Manu
https://t.me/programminginc/412403
Actually ...i have vs code ....and its getting problem with gcc compiler
Anonymous
Actually ...i have vs code ....and its getting problem with gcc compiler
most likely a human error. follow a different guide. i still won't recommend vscode though.
Anonymous
Windows
why not use Visual Studio Community?
Manu
If u don't mind can u brief ?
Anonymous
Vs community ?
https://visualstudio.microsoft.com/
Anonymous
Download the "Community 2019" installer
Manu
Download the "Community 2019" installer
Does it require compiler ? Like gcc ?
Anonymous
Download the "Community 2019" installer
for a basic installation i recommend that you pick the "Desktop development with C++" bundle. Now expand the components on the right hand side of that page. Pick C++ clang tools, C++ CMake tools, and C++ AddressSanitizer from the optional section.
Anonymous
when creating new projects, always pick CMake projects instead of Visual Studio native projects.
Manu
Okay....if i get any problem ...can i message u? If u don't have any problem ...this'll really help me
Anonymous
Okay....if i get any problem ...can i message u? If u don't have any problem ...this'll really help me
ask here. 15 thousand people can help you if i am offline or don't want to reply.
Anonymous
why not vs code?
https://t.me/programminginc/412404
Anonymous
what are the tools used in industry?(ps: I've zero experience of industry)
build systems - cmake, meson static analysis tools like clang-tidy, coverity dynamic analysis tools like sanitisers, fuzzers, and valgrind documentation generation tools like doxygen various testing suites
Anonymous
I only know cmake :(
cmake supports almost everything. and whatever it doesn't support can be added to it using custom commands.
Anonymous
https://github.com/epam/nfstrace/blob/master/cmake/valgrind.cmake
Anonymous
I only know what cmake is and I use vs code 😅
try using Visual Studio, Qt Creator, or CLion. the CMake integration they have is on a different level compared to vscode.
Mahdi
please don't use dev C++. and other people please don't give bad suggestions (specifically turbo C and dev C).
I didn't give him bad suggestion bro I just told him my opinion 🤷‍♂️
Anonymous
try using Visual Studio, Qt Creator, or CLion. the CMake integration they have is on a different level compared to vscode.
I'm not in any big project yet but thanks I just got an overview about how cmake, read some answers on stackoverflow 😅
king king
question regarding makefile why when I send this make file to a peer that has the same folders hierarchy it does not work on his laptop
“ali
Does anyone live in the UAE or Qatar?
Anonymous
Thank you.
Anonymous
But it seems like this is not my site. I just wanted a place where I can get lessons on programming
...
Wow
Engineer
question regarding makefile why when I send this make file to a peer that has the same folders hierarchy it does not work on his laptop
Which platform? Linux? You have dependence and assume that the same environment is being used. Most common would be commands in bash will not work in csh
Engineer
question regarding makefile why when I send this make file to a peer that has the same folders hierarchy it does not work on his laptop
Also it would be helpful to get some insight I to the "it does not work" any errors/warning messages?
Milwaukee
Hello can you help l can't find were lm making an error using namespace std; int main(); { int firstnumber,secondnumber,sumoftwonumbers; cout << "enter two integers: "; cin >> firstnumber >> + secondnumber; cout << "first number " << "+" << secondnumber << " = "<< sumoftwonumbers; return 0; }
Captain
Also clear your basics first then apply them
Anonymous
What is Segmentation fault?
Dr
What is Segmentation fault?
When you access data from memory location which is beyond the allocated memory for your program
Dr
Ex. If you have array of length 5 and you try to access 7th index, maybe this error can occur... I said maybe cause it depends on the memory allocated for complete program
Hentai-kun
I want to do C++ basics question anyone suggest website
Dr
Try sanfoundry
Hentai-kun
Ok