Asad
https://pastebin.com/PKBmdSCn
Asad
hi guys. i wanted to write class Sudoku. here: std::mt19937 generator(std::time(0)); std::uniform_int_distribution<int> distribution(0, 8); these two are giving me errors. what is the problem?
Surge.rs
send the error?
Asad
it says "function time is not found"
Đỗ
what kind of error?
Đỗ
it seem to be you use outdate library, i guess boost-asio
Đỗ
that not support random generator
Asad
#include <ctime>
i have included. when i use it in the man function it works, inside the class it does not
Surge.rs
also i dont think its part of std so it should just be time(0) as its defined in ctime
Surge.rs
i have included. when i use it in the man function it works, inside the class it does not
time is not defined in std namespace, should be just time(0)
Asad
i corrected, but still...
Surge.rs
what compiler are you using
Asad
visual studio
Surge.rs
visual studio
try time.h
Asad
it ain't working. the compiler has gone crazy i think. it is assuming the object of std::mt19937 a function
Surge.rs
oh ....
Surge.rs
maybe wrap the erroneous code in a function? lol
Surge.rs
Asad
https://pastebin.com/iyh60xYv
thank you. it is working
Surge.rs
lol
Surge.rs
set whatever values that are in that function to private fields to be accessible within the instance so you dont lose anything when calling that function
Surge.rs
how can i do so?
you should be able to figure that out :P
Anonymous
🤔
Anonymous
hi guys
Anonymous
can i you help me?
Anonymous
I want to get information from the university server....
Dan Yael
hello. How can i get the directory of a file relative to the binary instead of the execution directory.
Dan Yael
Im trying to load an image with SDL_LoadBMP(), from SDL2
Marián
Good morning folks any good resources to finally understand makefiles?
Marián
I moved my workflow to linux and need2build everything by myself but that $@%. syntax just scares me af, i always manage to create my makefile with lots of googling and struggling but i've never really understood the advanced syntax
Marián
I've also had this problem before and never really found anything on them either
how did u solve this? using other system like cmake or just learnt them by intuition + googling?
Marián
you know, i'd rather read few articles than struggling with google
Surge.rs
https://www.gnu.org/software/make/manual/make.html#Using-Variables
Marián
I never really found my answer haha
btw made fast-manjaro setup yesterday
Surge.rs
Thata the brunt of what is given
Marián
was like ew manjaro but needed some fast linux distro setup lol
Marián
also swappable kernels etc are quite cool features
Surge.rs
Marián
Marián
just some fast rice (not really rice though)
Marián
more likely default kde with aritim dark + trasnparency + blur + cava 😅😅😅
Marián
which rule in makefile is exectued if I don't add any arguments?
Marián
if i do like make it executes first rule or something with specific name?
Ибраги́м
http://www.cppmove.com/
Marián
Marián
is there any way i can make OBJECTS from OBJFILES in more convenient way?
Pavel
http://www.cppmove.com/
oh, a book about one C++ feature
Pavel
we were moving towards this moment
Anonymous
/notes
Kobby
#cpp
Anonymous
/notes
Anonymous
#imhacker
Anonymous
😂
Raaj
/notes
Raaj
What is this????🙄🙄
Anonymous
best-book
Mateo
/get best-book
Mateo
I tought so
Mateo
/get ide
Anonymous
/start@MissRose_bot
DT
Hi.. im making a multiplayer game using C++ using Unreal engine 4.. Please someone give some suggestion how its serverside should work..
Marián
Marián
don't you know what the \ operator does? quess it like concats?
Surge.rs
don't you know what the \ operator does? quess it like concats?
Pretty sure It defaults the line break so you can continue on the next line. Most tab sensitive languages do this including bash
Marián
so if you put multiple $ they will concat?
Anonymous
server side game programming? I want know too...
Marián
like A = a.o B = b.o C = $(a) $(b)
Marián
gives C = a.o b.o ?
Surge.rs
like A = a.o B = b.o C = $(a) $(b)
Uh maybe? I dont actually know lol