I've been inspired to make my own array class after using unreal engine for a while, but the compiler doesn't see the definitions of each function in
C++
theangryepicbananaI had this problem a while back for my CS final, and you apparently can't have them in separate files unless you provide specific overloads for each type you use it for in the header file3 years ago
Hey there. The other day, I gave JavaScript a try to take a little break from game dev in Unity and UE4. I used all the things I learned in an hour in
HTML, CSS, JS
NoelB33Make it return a number using the Number(localStorage.youritem) because I think it’s messing up that way. I could be wrong, but I think that’s what’s happening.3 years ago
Hi there replers! I've learned a bunch of other coding languages, other than the ones it says I know, but I don't know how to change that on my profil
Roar123The languages shown are the ones you code with most frequently, so I'd say if you continue to code in your preferred languages, then your profile should reflect that.3 years ago
I was playing around with socket.io in python, and I was able to make a server, but I have no clue how to connect to it. Any help?
Python
a5rocksThat's not socket.io... By the way, only http requests can get to your repl, so this won't be possible, so you need to use something like websockets or aforementioned socket.io (though I can't to find how to do a socket.io server in python)4 years ago
I've been working on a terminal project, but I can't seem to find out how to encrypt save files and load them into a database. I also need help creati
C++
HighwaymanO.o wait so you want to actually code with sockets and you want to encrypt your files that aren’t even going to save if the ide isn’t open?
(Just as a side note: OpenSSL maybe? It’s an encryption lib, but I don’t remember whether it’s c++ or js... kinda a hit or miss, but check it out anyways)
I think if you look for it, there are a couple of dbs actually here on repl.it. Also try and find a lib to help with the networking part because c++ was nahht built for networking. Yet. Maybe for the c++204 years ago
I just coded this mystery game as my first ever C++ Game! You guys can check it out and notify me if there are any bugs or if you have any suggestion
C++
HighwaymanIf anything I posted was confusing or unhelpful, please ping me with as many questions as you like.4 years ago
HighwaymanWhy do you encapsulate null in eXpo, only to use a global using statement on the eXpo namespace? What is the advantages of the namespace? I feel it is simply code bloat there. I suggest just declaring null as a regular global variable.
Also, since you already say using namespace std; just before main on line 31, you do not need to write the using statements on lines 16 to 20. I would however suggest getting rid of line 31 instead of getting rid of lines 16 to 20 because it is generally better t4 years ago
HighwaymanOn lines 19, 38, 42, 48, 54, 60, 62, 64, 70, 76, 92, 98, 101, 104, 107, 120, 131, 136, 141, 145, 153, 155, 158, 160, 163, 165, 168, 170, 173, 175, 178, 181, 183, and 186 you use usleep() when you have sleepfor() as well? I suggest using either just sleepfor() or just usleep(). It is probably preferable that you use sleep_for(), actually, since usleep() is coming from a header that is only accessible on Unix systems. So then it could work on a windows os too.
I noticed that you are including bot4 years ago