Ludovic 'Archivist'
What i whould learn after basics in c++
How to implement your own datastructures, some usage of lambda, and some usage of templates
Ludovic 'Archivist'
What i whould learn after basics in c++
I recommend that you try to implement something like Newton's method for solving equations and graphs with topological sorting as they are a good exercise and actually useful in real applications
💰💵⚛️💹⚛️💵💰
What i whould learn after basics in c++
try learn c++ GUI with win32 api or MFC for windows app development
💰💵⚛️💹⚛️💵💰
hello, does anybody know the resource to learn c++ HFT ?
Anonymous
hello, does anybody know the resource to learn c++ HFT ?
https://www.amazon.com/Developing-High-Frequency-Trading-Systems-high-frequency/dp/1803242817 I have neither read it nor am I into High Frequency Trading. But this book seems to have good reviews.
Shaxriyor Tursinmurodov
#include<iostream> using namespace std; int main() { cout << "ismizni kiritasiz"<<endl; return 0; }
Abhay
Plz given oops notes
Abhay
Please provide c++ oops notes
Abhay
No
Reason?
💰💵⚛️💹⚛️💵💰
Both are outdated. Why not WinUI
i never heard WinUi, i check
Anonymous
I have the string_view "cc " uint64_t space = 2 I perfom next str.remove_prefix(std::min(space, static_cast<int64_t>(str.size()))); str.remove_prefix(str.find_first_not_of(" ")); and get str = "c " what is wrong there?
Anonymous
after removing prefix my str gets wrong
Anonymous
got it, I need to make the next min(space, static_cast<int64_t>(str.size()) when remove spaces
Anonymous
No
@K11M1 , my friend what's the reason you say no😂😂
klimi
@K11M1 , my friend what's the reason you say no😂😂
stating the fact that this request will not be likely accomplished (if he wanted notes and resources, he would get that information from the pinned message) 😂😂😂😂
Chat Boss
Dm sent a huge message, it has been re-uploaded as a file class Translator { public: Translator() = default; void Add(string_view source, string_v..
Siddharth
Hi everyone, I've just started learning C and I'm doing all the basic stuff. I wanted to know what are the real life benefits of learning C. Thanks
Aditya☺️
Hi All, I am starting cpp from basics and dsa. Any one wants to peer?
Anonymous
Watsap doc
Chat Boss
Tulika sent a code, it has been re-uploaded as a file
Tulika
Tulika sent a code, it has been re-uploaded as a file
Can anyone pls help me in this code...in C language plss
\Device\NUL
Just sent it here
Tulika
Sending media in grp is not allowed
Tulika
How can I share the ques
\Device\NUL
\Device\NUL
It would just iterate the string and then compare the data using array for keeping the value of the char
\Device\NUL
Show your effort first
Tulika
Acha
Athanase
Hey
Athanase
Pls any free c++ course online
.
Youtube
Athanase
Youtube
Which one
Athanase
Any where
Xxxx
Which one
Some popular YouTube channels that offer C++ courses for beginners include: • Programming with Mosh • Learn C++ • C++ Station • C++ Programming Tutorials • Derek Banas • thenewboston • MyCodeSchool • You can also find tutorials and lectures from universities and professors on YouTube, such as: • C++ Programming - by University of California, Santa Cruz • C++ Tutorial for Complete Beginners - by Programming Hub • C++ Tutorial for Beginners: Learn C++ from scratch - by Learn C++ Programming • It's always good to check for reviews or look for multiple sources to find the best fit for your learning style.
João
who here studies or studied at 42 schools?
João
if you did how do you feel about them?
itsmanjeet
Hey all, i am getting malloc(): invalid size (unsorted) from malloc() operation when SomeStructType* value = (SomeStructType*) malloc(sizeof(SomeStructType)); struct SomeStructType { SomeOtherType* list1; SomeOther2Type *list2; Other3Type list3[10]; int count; } is my struct type roughly, Googling the malloc error code said that the program is going out of bounds in allocated memory but I am getting issue during malloc() and error should occur when i write something after allocation beyond the allocated size
'''''''
Good for basics
Ammar
gdb points to that part only, btw code is [WIP] opensource at https://github.com/itsManjeet/srclang/blob/port-to-c/src/srclang.c
That's too big to review, do you have a way or input to reproduce the error? I can build it on my machine. Just to narrow down the review area if you have a reproducer.
Ammar
let x = 10; in code.src ./srclang code.src
Doesn't reproduce for me. >> let x = 10; :: 10 >>
itsmanjeet
Doesn't reproduce for me. >> let x = 10; :: 10 >>
😕 something wrong with my system i guess,
Ammar
😕 something wrong with my system i guess,
No, it's undefined behavior. It may look run well with a different compiler, but silently corrupt the program. That malloc() assertion error doesn't always happen.
itsmanjeet
Ammar
Uh I am clueless now, Getting error everytime with archlinux gcc-12.1. Working good with ubuntu gcc-12 container.
Do you have another reproducer to try? I'm building with ASAN now, should be easier to catch memory error will detailed traces.
itsmanjeet
let x = 10; in code.src ./srclang code.src
This is the one i am getting issue every time when source_compiler_new()
Ammar
Uh I am clueless now, Getting error everytime with archlinux gcc-12.1. Working good with ubuntu gcc-12 container.
Concat string operation yields a heap-buffer-overflow bug here: https://gist.github.com/ammarfaizi2/fb5972812ad888b8f87068af115b79f5
Ammar
gdb points to that part only, btw code is [WIP] opensource at https://github.com/itsManjeet/srclang/blob/port-to-c/src/srclang.c
This looks wrong and dangerous: char *buf = malloc(strlen(left->ptr->value) + strlen(right->ptr->value)); strcat(buf, left->ptr->value); strcat(buf, right->ptr->value); result = source_string_new(buf); free(buf);
Ammar
1. strcat needs to find a NULL char to concat a string, but malloc() returns an uninitialized block of memory. 2. You don't take the NUL char into account.
itsmanjeet
Ammar
garbage value can create issue you mean?
Absolutely, that will cause the strcat to misbehave.
Ammar
Something like this should be fine: char *buf; size_t len; len = strlen(left->ptr->value) + strlen(right->ptr->value) + 2; buf = malloc(len); CHECK_MALLOC(buf); buf[0] = '\0'; strcat(buf, left->ptr->value); strcat(buf, right->ptr->value); result = source_string_new(buf); free(buf);
Chat Boss
Turu ㅤㅤㅤ sent a code, it has been re-uploaded as a file
Chat Boss
Turu ㅤㅤㅤ sent a code, it has been re-uploaded as a file
Chat Boss
Doriu sent a huge message, it has been re-uploaded as a file I have a code which should replace \\n with \n if it’s found in the given string and if it finds..
Anonymous
Hi
Anonymous
Someone knows an script of crm multi-user with wpp integration?
-
Can you tell me how can I pass new line (\n) as an argument to strcpy ? I want sth like this Input : Hi\nBye Output: Hi Bye
Dm
Can you tell me how can I pass new line (\n) as an argument to strcpy ? I want sth like this Input : Hi\nBye Output: Hi Bye
char str[20] = "hi"; strcpy(str, "\n"); strcpy(str, "bye"); If you work with C++ understand why are you using char* instead of std::string
\Device\NUL
Can you tell me how can I pass new line (\n) as an argument to strcpy ? I want sth like this Input : Hi\nBye Output: Hi Bye
Isn't it just strcpy(dest, "Hi\nBye") ? But make sure dest is enough to hold the buffer