olli
Woow, now it works. Thanks a lot!
Good to hear, You're welcome :)
klimi
yay
Anonymous
Hey what does = default mean in C++11?
olli
Hey what does = default mean in C++11?
Explicitly telling the compiler to generate a special member function
Dima
Anonymous
Lol
nibu
Is any library available for language translation in c?
nibu
Plz help
Dima
probably NLP thing?
Dima
just use api
Bader
like google translate thing?
Dima
YOS
Anonymous
Have anyone worked with Qt+ or SFML libraries on c++?
Ludovic 'Archivist'
It is fun seeing a place where you hold the ban hammer
Roxifλsz 🇱🇹
Oh, lmao
Roxifλsz 🇱🇹
You already banned him
Anonymous
Omg
Anonymous
So many admins guard this non-spam territory
Dima
Anonymous
Feeling safe😌
Dima
you can contribute
Dima
reporttt
Anonymous
Okay)
Anonymous
Still one of my favorite frameworks
.
Hi people
Anonymous
I did with sfml
How is it to work with graphics on c++?
Anonymous
Comfortable?
Dima
yes
Anonymous
Anonymous
You know I feel like my arms grow from my ass because I couldn't set it up on CodeBlocks😔 So I moved to Java in order to learn graphics with Swing Java library😂😂😔
Anonymous
What
Anonymous
It is the simplest thing ever
Ибраги́м
It is fun seeing a place where you hold the ban hammer
It is fun seeing a place where you're seeing me hold the ban hammer
Anonymous
Just add the additional linker and compiler includes
Anonymous
Just add the additional linker and compiler includes
I know but this fucking CodeBlocks always warned me about some error so I dunno and Im too lazy to repair it😅
Anonymous
It may sound crazy
Anonymous
Well how can you program in C++ and can't set up rightly SFML? Have you been following a guide?
Anonymous
I always used standard libraries
Anonymous
And sfml was my first time
Anonymous
U know I'm always bad at first time
Anonymous
No I haven't
Just follow the official one
Anonymous
Just search "code blocks SFML"
Anonymous
The first result is yours
Anonymous
Also, last thing: download the right SFML for your compiler! Otherwise that's obvious it will give you errors
Anonymous
Oh, okay thnx:)
Anonymous
I'll try
Anonymous
Code blocks has GCC or maybe MinGW I don't know right now
Anonymous
Second
then download the mingw one SFML
Anonymous
Also, if you could send the errors it gave you, that would be helpful to find the problem (probably wrong compiler, but just let's not jump to hasty conclusions)
Anonymous
OK I'll try it tomorrow with special guide and if something goes wrong I ask u
Anonymous
I see u r adept in it
Anonymous
I'm using it for more than an year now
Anonymous
Still haven't found a good idea for a serious project, lol
Anonymous
Let's see
Anonymous
What about
Anonymous
Hmm
Anonymous
What about a game
Anonymous
2048
Anonymous
Easy game
Anonymous
And good practice
Onur
https://onlinegdb.com/ryz_QPPHQ Can someone explain why behaviour of these two are different? I would expect both of them to output null.
klimi
Yep?
Dima
Already banned
Dima
klimi
I see in history
BinaryByter
wtf...
Pointers are little shits
olli
https://onlinegdb.com/ryz_QPPHQ Can someone explain why behaviour of these two are different? I would expect both of them to output null.
Since there is no answer yet.. No they are different. from_arr creates a local array inside the function and copies "Hello" into the array. Once you leave the function by returning the pointer, the array is no longer valid since it is temporary and no longer available. from_ptr only stores a single pointer that points to at string literal, this string literal is constant, you 'cannot' change the content of the memory location p is pointing to. Since the string literal has static storage duration you can always return a pointer to it (but shall not modify it) GCC creates a warning (-Wreturn-local-addr) <source>: In function 'from_arr': <source>:13:12: warning: function returns address of local variable [-Wreturn-local-addr] return p; ^ Compiler returned: 0
Anonymous
A very cool google puzzle: Let’s say that you have 25 horses, and you want to pick the fastest 3 horses out of those 25. In each race, only 5 horses can run at the same time because there are only 5 tracks. What is the minimum number of races required to find the 3 fastest horses without using a stopwatch?
Anandkumawat73
Anyone know how to Crack/Remove Password of .Rar file?
Itay Cohen
Which version of rar? Oldest versions can be cracked, for others you'll have to brute force
Anonymous
Easy game
I would have chosen pong, to be fair