Isc
no need to touch OpenGL
Nomid Íkorni-Sciurus
pros and cons over sdl ?
Isc
SDL is C
Isc
is old, you need to manage memory
Isc
and 2D api is a extension, that is not complete and needs to touch renderers and textures for using images etc
Isc
SFML is sprite-based
Nomid Íkorni-Sciurus
Hm...
Isc
SFML is better, basically
Nomid Íkorni-Sciurus
then why is it still being used ?
Isc
because the portability, SDL can be ported easily as its C
Isc
for webassembly for example, and for SFML it would be more complicated (but possible)
Isc
if you dont aim wasm, go SFML
Nomid Íkorni-Sciurus
My target would be windows/linux, mainly on x86_64 cpus
Nomid Íkorni-Sciurus
Ok, I'll give SFML a try
Isc
Nomid Íkorni-Sciurus
Isc
cool :D
Anonymous
Persian member plz come p v
Anonymous
Well I m weak in pointers...Any suggestions for improvement
Nomid Íkorni-Sciurus
Suppose you have a classroom where every seat is labeled with numbers from 0 to 256.000
Nomid Íkorni-Sciurus
The person A seats at position 8
Anonymous
Nomid Íkorni-Sciurus
So &A is the pointer to A, which means A is the person seated at &A:
&A is 8 (which is the pointer)
Nomid Íkorni-Sciurus
The classroom is the memory and &A is... where the contents of A begins (you may want to label more than one person with "A" as you do with C strings, that is "hello" => 'h', 'e', 'l', 'l', 'o', '\0')
harry
Roxifλsz 🇱🇹
Nomid Íkorni-Sciurus
harry
pointers and addresses arent the same thing, are they
Nomid Íkorni-Sciurus
so yes, &A is the address aka the pointer
harry
Nomid Íkorni-Sciurus
harry
the pointer has its own seat in your stadium
harry
an address hasnt
Nomid Íkorni-Sciurus
Ah I got what you mean
Nomid Íkorni-Sciurus
yes, a pointer variable is a container which has another address, but the actual "pointer variable" contains the address it points to
Nomid Íkorni-Sciurus
So, to store &A somewhere you need another container, B which holds that address
harry
yeah
Anonymous
Nomid Íkorni-Sciurus
Anonymous
Hello
Himanshu
Guys tell me a good book to start learning c++
Himanshu
Like i am a newbie
Himanshu
I have learned coding till highschool level in c++
Anonymous
Himanshu
Himanshu
By the way do you mean training videos?
Leander
scanf(%[^#n]s@, greeting);
will accept a string array included space. It terminated when enter was press.
Anonymous
Thx dear for accepting my request
Anonymous
Welcome to C/C++!
olli
As with regular expressions, this matches all non-whitespace characters, expect for the new-line character.
Rajath V
Read👍
Anonymous
Welcome to C/C++!
Anonymous
Anonymous
/saved
Anonymous
You can add some useful ones
Anonymous
Anonymous
Lol yeah
Anonymous
Welcome to C/C++!
Roxifλsz 🇱🇹
/warn command spam
Anonymous
Welcome to C/C++!
Anonymous
Welcome to C/C++!
Anonymous
Welcome to C/C++!
Anonymous
Mester the bot O.o
Anonymous
Anonymous
Welcome to C/C++!
Anonymous
Welcome to C/C++!
Anonymous
Anonymous
Anonymous
hehe
Btw, is it some script or you are doing it manually?
Anonymous
script
Nyuke
Aren't they automated?
Anonymous
Nyuke
Nyuke
Anonymous
?