Anonymous
I tried edit config for Geany and Code Blocks but it works not so good.
Hussein
both VScodium and OSS are open source forks of VScode
but I only used VScodium so I recommended it
Hussein
doesn’t it contain any telementry since it’s released from miscrosoft?
浩
So the vs code binary downloaded from MS = Code OSS + some MS private code ?
no name
#offtopic
I'm stuck on this problem can anyone help
https://stackoverflow.com/questions/72693037/how-to-update-a-document-use-operator-in-mongodb
klimi
Hussein
Hey guys
I have a question, does C++ worth learning, if I’m pretty confortable with C?
what advantages will I have if I learn C++ knowing that undefined behavior isn’t something I’m really worried about
\Device\NUL
Nomid Íkorni-Sciurus
I don't think they hate it, but rather they just don't use it
pavel
Hussein
I’ve been working with structs and typedefs and everything has been great
pavel
see eigen library for example. outperform defacto standard LAPACK/BLAS - like libraries
Abhishek
how templates in C++ can be useful?
Let's say you had to make 10 function work for integers and floats...
Cool... let us overload and make them... easy....
Lets say afterwards you had to add support for doubles and long int...
Now you'll have to create overloads for every single function for each datatype and all the permutations for all of the arguments...
This gets worse when you have a lot of functions with lots of arguments.
c++ templates can mitigate this conundrum by letting you define the functions once and generating the required variations (usually at compile time).
0xJosh
How do I write the infinity symbol in codeblocks?
数学の恋人
struct contiguous_interleaved_t{};
inline constexpr contiguous_interleaved_t contiguous_interleaved;
struct contiguous_deinterleaved_t{};
inline constexpr contiguous_deinterleaved_t contiguous_deinterleaved;
struct ptr_to_ptr_deinterleaved_t{};
inline constexpr ptr_to_ptr_deinterleaved_t ptr_to_ptr_deinterleaved;
Instead of doing like this and passing the object, why not use enum?
just asking if I'm getting anything wrong here
Saw this code on github
줄리아 우지야노바
NTTP is C++17 and newer feature
Glitch 👽
Hi can please anyone help me
How can i make an array and then print the sum of each one
As an example:
1. 2. 3.
3. 4. 5.
1. 2. 7.
=. =. =.
5. /. 8. /. 15.
数学の恋人
Puspam
Alan
Am a beginner i want someone to teach me
Alan
Am not having any teacher to teach me
Adaita (MedTech | Healthcare)
Am not having any teacher to teach me
You can start learning and practicing right away. There are abundance of resources available to learn. Whenever you think you are stuck or face difficulty in understanding any concept, you may ask questions here. Believe me, you can never find a better teacher than oneself.
Alan
yagami
okay thanks
Moouuaaddhh
I trying to generate vectorized code, but with g++ i cant vectorize cosine and sine operations, can anyone help? There some library I canuse? or an Taylor implemetacion of sine and cosine?
pavel
Moouuaaddhh
pavel
what?
https://eigen.tuxfamily.org/index.php?title=Main_Page
Anonymous
Implement the following pattern matching algorithms: Brute-force, Sunday, KMP, FSM, Rabin-Karp.
Compare their running times using chapters of a book, with a small and a large pattern. Your report should contain some description of the algorithms and, most importantly, your findings.
Include a graph showing the relation of RT against the text length. (This implies that you have to use several different lengths.)
The results should be reproducible.
Anonymous
Anonymous
Moouuaaddhh
SS
I need help with a solution
SS
Can someone please help me out?
Zain
Bro Anyone Suggest me the Best Telegram group from where i will learn C# please
Zain
Best telegram group to learn C#
Someone
@leovan can i send u code which i wrote yesterday?
Someone
Zain
Google dot com C# telegram
I know Sir but for practice and my question answer i need some experts like you to help me in my c sharp coding jurny
Someone
Zain
МК
Hi everyone, I have a problem of realization 2-3 tree on C, maybe someone have code or can help me to do this ?
tasya
Hi anyone know how to answer this
Int number[7]={1,2,4,7,10,5};
1.cout<<number [1];=
2.cout<<number[4];=
ÐΞΛÐ HΛϾКΞЯ
Hey, Can you guys help me In logic building
ÐΞΛÐ HΛϾКΞЯ
?
ÐΞΛÐ HΛϾКΞЯ
Anonymous
tasya
#include <iostream.h>
#define NUM 10
void main()
{
int salary[NUM] = {2000, 3400, 1900, 2500, 3300, 1238, 3200, 2700,
3600, 4500};
int *ptr;
ptr = salary;
cout<<"Staff ID\tSalary"<<endl;
for (int i=0; i<NUM; i++)
{
cout<<i<<"\t\t"<<*ptr<<endl;
ptr++;
}
}
tasya
whats the error
Poker
ÐΞΛÐ HΛϾКΞЯ
Yess Using SDL
ÐΞΛÐ HΛϾКΞЯ
줄리아 우지야노바
#include <iostream.h>
#define NUM 10
void main()
{
int salary[NUM] = {2000, 3400, 1900, 2500, 3300, 1238, 3200, 2700,
3600, 4500};
int *ptr;
ptr = salary;
cout<<"Staff ID\tSalary"<<endl;
for (int i=0; i<NUM; i++)
{
cout<<i<<"\t\t"<<*ptr<<endl;
ptr++;
}
}
#include <iostream>
const auto NUM = 10;
void main()
{
int salary[NUM] = {2000, 3400, 1900, 2500, 3300, 1238, 3200, 2700,
3600, 4500};
int *ptr;
ptr = salary;
std::cout <<"Staff ID\tSalary"<<endl;
for (int i=0; i<NUM; i++)
{
std::cout<<i<<"\t\t"<<*ptr<<std::endl;
ptr++;
}
}
.
Hello programmer I am mr unknown. I'm thinking of learning c ++ right now. I'm new to programming. I don't know any of that. So I want the experts here to guide me. And let me explain where I should start. I am sure you will help me.
~Mr Unknown
Luka🇺🇦
Go through all the rules and the links mentioned in this post. Contravening the rules laid out here will result in a warning (least likely) or a ban (most likely).
This group is meant only for C/C++ discussion.
For chitchat of any other kind, go to the Offtopic chat, where anything unrelated to C/C++ programming can be discussed subject to the rules laid out for that group.
For information on learning C/C++, see our list of resources at @Resources
RULES:
1. Only English language is allowed. If you don't speak English, then this group is not for you. Please look elsewhere.
2. This group is meant to be used for C/C++ discussions alone. Assembly language discussions are allowed as well. The moderators' intention is to keep this group clean and to stick to the purpose the group was created for. Hence, questions or discussions about anything else is strictly forbidden. This further means that:
• You should not send useless messages like "Hi"/"Hello", "I'm new here" and similar.
• You should not send useless messages like "Does anyone know XYZ?", "Has anyone used XYZ?". Just ask your question directly.
• You should not ask questions without checking your problem in Google or any other search engine. Doing so will result in a warning. Following this, check the Resources section of this group to see if your question has an answer there.
• You should not ask exams/homework/interviews solutions. This will get you banned.
Asking for something that is there in the pinned message right after joining will get you banned.
3. NSFW content (porn, nudity etc) is not allowed.
4. Religion, politics and ideological topics are forbidden.
5. A little bit of programming related jokes and memes are allowed subject to admin group's discretion.
6. Advertisements of any kind are forbidden. Job postings will not be allowed either. If you are unsure about whether something could be construed as an advertisement, please check with one of the admins before posting the message. Not doing so will result in a ban.
7. Code sharing is encouraged subject to the following rules:
• Try to use markdown formatting.
• For many lines (10+) of code, use a pasting service like Gist, Pastebin, Ubuntu Paste, Hastebin. Don't post walls of code in the chat window. Firstly, it inconveniences others and secondly, you are unlikely to get a response and may even get warned or banned.
• Don't attach photos or videos of your screen. Screenshot captures are ok.
8. No illegal activity. This also means no piracy, no requesting/offering hacking/no posting of compiled executables. This will result in an immediate ban.
9. Respect people's privacy. Don't send private messages to people in this group without taking their permission to do so. Not following this rule will result in an immediate ban.
10. Avoid usernames that affects chat readability.
The group bot Rose offers a lot of readymade responses that can be used when replying to someone. The most commonly used ones are:
• #paste - Display a list of sites where code can be shared.
• #markdown - Learn how to use markdown formatting.
• #res - Post the link to the C/C++ resource collection.
• #meta - Tell someone to get to the point!
• #howtoask - Tell someone how they should ask a question.
• #ot - Tell someone that their question is off-topic and hence must be moved to the OT group.
I am sorry rules clearly say to use pastebin services, but how can i use them if that bot removes messages with links?
Someone
Dima
lol
Dima
Our bot is retarded
Try putting link with spaces in it
● Igor
I've been studying smart pointers (C++) and I managed to understand scoped_ptr, unique_ptr and shared_ptr, but I couldn't understand when should I use weak_ptr
Dima
bruh
Luka🇺🇦
Hi! I am not a C++ programmer, i am just packaging stuff around, but got to strange issue with compiling Cpp code, error is: pastebin .ubuntu .com/p/5n34xsgNSS/ declaration looks like static int const max_write_fds{10}; static std::array<std::atomic<int>, max_write_fds> write_fds; Sorry for space this chat just have crazy bot.
Dima
ye sorry we gotta fix that
Anonymous
pavel
Luka🇺🇦
And what's error?
it is on pastebin, but if in 2 lines:
In static member function ‘static void mir::detail::SignalSources::SourceRegistration::notify_sources_of_signal(int)’:
/home/luka/unity8/mir/src/mir-1.8.2/src/server/glib_main_loop_sources.cpp:487:37: error: range-based ‘for’ expression of type ‘std::array<std::atomic<int>, 10>’ has incomplete type
pavel
Luka🇺🇦
Missing include?
i dont think so... as that files compiles on other platform, here is that cpp actually https://github .com/MirServer/mir/blob/v1.8.2/src/server/glib_main_loop_sources.cpp
pavel
Anonymous
pavel
And include for atomic