Alex
yes. DerivedClass(int arg) : BaseClass(arg)
Z0OM
ooh
Z0OM
thank you
V01D
/get cppbook
V01D
/get cppbookguide
Z0OM
is there a way to initialise function pointer with arguments of the function. void func(int i){ std::cout<< i;} std::function<void()> fptr = ? i need fptr to print 1 upon call.
Anonymous
https://en.cppreference.com/w/cpp/utility/functional/bind
Anonymous
Why do you need bind when there are lambdas?
Anonymous
because lambda need to type more
Anonymous
because lambda need to type more
Then code in Python, not in C++
Anonymous
almost the same
Anonymous
Bind can be flexible btw
Z0OM
i dont wanna use bind
Anonymous
Bind can be flexible btw
What bind can do what lambdas can't?
Z0OM
how to do this with lambda?
Anonymous
how to do this with lambda?
Am I a joke to you? https://t.me/programminginc/319553
Z0OM
yes that may do it
Z0OM
thank you
Anonymous
When you only wanna change a single param, it can be useful bind(_1,args...)
Z0OM
yes
Anonymous
But most the time, just up to habit
Anonymous
When you only wanna change a single param, it can be useful bind(_1,args...)
using namespace std::placeholders; doesn't count?
Anonymous
Fine you win
Anonymous
Hii everyone
V01D
Who can help me with Opengl (glfw3) on linux? I built it from source and yada yada... I can include <GLFW/glfw3.h> I can render a triangle using legacy openGL, however I get an error while setting up a triangle buffer in modern opengl. error: glGenBuffers was not declared in this scope; did you mean glReadBuffer?
V01D
I compile with g++ and my linking options are: -l ~ GL, GLU, glfw3, X11, Xxf86vm, Xrandr, pthread, Xi, dl, Xinerama, Xcursor
V01D
Note: GLFW/glfw3 is all I included as far as openGL goes.
Asdew
Have you tried this https://stackoverflow.com/questions/15933102/glgenbuffers-was-not-declared-in-this-scope-windows-7-qt-4-8-1?
V01D
No, I did not. Thanks. Seems like I neer glew and or glut..
Asdew
Have you not heard of search engines?
Asdew
That was the first result on DuckDuckGo.
V01D
Lmao
V01D
It didn't show up for me.
Anonymous
I need to learn c++
I_Interface
I need to learn c++
What's your problem?
Anonymous
What's your problem?
I need only to learn it
Merazi
## 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 to solve an assignment/test/whatever without trying it first yourself will get you a warn or will get you BANNED. We won’t write a code for you, but we can push you forward and suggest something. * Before posting a long code snippet think twice and read the Resources section below. * No “best book” or “best youtube channel” requests, use /get cbook and /get cppbookguide chat commands. * No “best ide” requests, use /get ide chat command to see the suggestions. * 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 and will get you BANNED. * 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 dev C++ or turbo C/C++, you will not be helped, use another more modern IDE. * Don't post compiled executables, that is obviously a security risk. * Personal messages without asking beforehand are not allowed. * If you want to post a link or some article in this chat you will need an admin approval first ## Resources C/C++ group India: http://t.me/c_cpp_india 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.
Well, you can use the commands to get some recommended books
Asdew
I need to learn c++
Why do you 'need' to learn C++?
Anonymous
Why do you 'need' to learn C++?
It's my future to be a programer
Asdew
Uhhhhhh... It's your future?
Anonymous
Dima
lol
Dima
bruh
I_Interface
Uhhhhhh... It's your future?
And he wanna "just to learn it"...
Asdew
You're not going to be a good programmer (you might be hired, you might get a high salary, but not good) if you force yourself. You need to enjoy programming.
I_Interface
Why
Coz programming it's not just about "to learn".
V01D
Why
Because you aren't passionate
Asdew
Study something about which you're passionate and continue with it?
Anonymous
Because you aren't passionate
I'm passionate for this thing
Asdew
Say that again in a few days, we'll see.
I_Interface
I_Interface
Only you.
Anonymous
How
V01D
Books
I_Interface
How
Banned from searching ?
I_Interface
Google.
I_Interface
#googleit
Anonymous
Banned from searching ?
I'm doing it
Asdew
#duckit ever?
V01D
Opensource projects. School projects. Life hacks through code
Vadiraj
Can anyone suggest me on C++ websockets. I searched a lot but couldn't find a good tutorial or documentation.
Merazi
Coz programming it's not just about "to learn".
it's about enjoying the process of creating interesting programs
V01D
Can anyone suggest me on C++ websockets. I searched a lot but couldn't find a good tutorial or documentation.
C++notes for professionals from goalkicker.com has a tcp and udp section. Not sure if its good tho, never saw the section, however the book is great
Merazi
But not without pain of hard things.
Enjoy that pain, and the feeling of success when you see that your program works
V01D
You can use curl.h, too. (Depends on your project idea at large)
Asdew
I think he asked about websockets.
Vadiraj
I want to stream data from an API
Anonymous
Cool. Thanks
Get me for beginner