Skip to content
Sign UpLog In
Profile icon

Terra361

@Terra361
I am the dude who tried to learn C++ fluently in two months... and it almost killed my brain cells
Repls
Community
Terra361
Terra361
shared a Post
2 years ago
Why do C++ projects in repl.it need to have a 'main.cpp'?
This is causing some problems. I can't move the main.cpp file anywhere, nor can I rename it. It's not helpful at all when I'm trying to create somethi
Wumi4
Wumi4
You can just use the Repl Terminal! (Ctrl+Shift+S if you don't know)2 years ago
Terra361
Terra361
shared a Post
2 years ago
I'm building a DLL inside of repl.it (with C++), and I need to know the compiler/debugger info/configuration. I also want to know how I can link it to
Terra361
Terra361
Never mind, I just resolved my own answer. If anyone was wondering, I confused myself big time.2 years ago
programmeruser
programmeruser
You could try CMake. https://medium.com/@onur.dundar1/cmake-tutorial-585dd180109b2 years ago
Terra361
Terra361
Is nobody going to answer this question?2 years ago
Terra361
Terra361
shared a Post
2 years ago
I was wondering if repl.it has the SDLImage or SDL2Image libraries. I assumed they did, but I can't exactly be sure, since there's tons of ways the fi
CrazyVideoGamer
CrazyVideoGamer
You can try to do install-pkg libsdl2-image-dev, which will install SDL_image2 years ago
JadenTheDev
JadenTheDev
DDD2 years ago
ucax217
ucax217
If it helps, I have a simple env with SDL2image and SDL2ttf compiled https://repl.it/join/nfwfdsos-ucax217 2 years ago
Terra361
Terra361
shared a Post
2 years ago
I keep seeing the term 'cycles' on repl, but I don't know what it means. Can somebody please tell me?
Coder100
Coder100
Cycles are these numbers to the right of you. For me, I have like 9000 but I can't keep track, and you shouldn't keep track. They are useless internet points. You can get them to make you get a bigger ego. someone upvotes your posts: 1 cycle someone marks your answer as correct: 5 cycles btw don't talk about wanting cycles, it makes you send greedy and/or unintelligent. If you are a redditor, it's called karma2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Cycles are basically the numbers beside you, which you get if someone likes you post, and hits the 1 next the name, or if someone accepts your answer. Screenshot 2020-11-06 at 8.26.39 PM So like if you click the check mark next to me, that gives me some cycles.2 years ago
JBloves27
JBloves27
Cycles are upvotes pretty much. Like subscribers pretty much. Pls mark this correct if it helped u2 years ago
Terra361
Terra361
shared a Post
2 years ago
Whenever I try to run the attached C++ repl, it doesn't display a window; the display frame doesn't even switch from the 'run your repl to see output'
Coder100
Coder100
OHHH I SEE you forgot to compile your game.cpp files so nothing got defined xd .replit file becomes: run="g++ -o main main.cpp 'Game Files/Game.cpp' -lSDL2 ; ./main" notice anything new? 2 years ago
Coder100
Coder100
Probably something similar to this mistake: void main() { other(); } void other() { } can you guess what happened?2 years ago
Terra361
Terra361
shared a Post
2 years ago
I made an SDL2 renderer. It literally renders a completely red 600 x 300 window for three seconds, then ends. I finally managed to get it to DO someth
Terra361
Terra361
shared a Post
2 years ago
I feel like the title explains the whole question.
StudioHawaii
StudioHawaii
ok11 months ago
programmeruser
programmeruser
@Terra361 I hate it when people think Polygott is some sort of magical language that runs repl.it. Anyways the things you do in Makefiles are just bash commands, but there there is more than that. Try looking up a Makefile tutorial (and to run different targets you'll have to configure the .replit file).2 years ago
RYANTADIPARTHI
RYANTADIPARTHI
Try this link https://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/2 years ago
Terra361
Terra361
shared a Post
2 years ago
It seems like almost no one on repl.it uses C++. I mean, I understand that it is hard to learn. I barely have the brain capacity to learn more than on
MatthewWesolows
MatthewWesolows
C++ is one of those languages that you have to really learn to love. I spent multiple years learning C++ after deciding that C# wasn't for me. C++ is ALMOST unmatched in sheer power and capability. Python and web languages are easy to learn and provide flashy GUI's (nothing against web programers, you'll find that their actually pretty talented).2 years ago
zplusfour
zplusfour
C++ is awesome!!2 years ago
maxina
maxina
Very false claim, c++ is one of the most popular languages, maybe even more popular than c, since it is object oriented, and c/c++ is the most fastest language out there, since it is a compiling language and does not use garbage loading. It is used for basically everything.2 years ago
Terra361
Terra361
shared a Post
2 years ago
I'm trying to make an nCurses loop in C++ that creates a 5 x 5 patch of grass over and over on the screen. However, all I get is a few stringy green l
xxpertHacker
xxpertHacker
I had just tried to run it and debug it, but it doesn't even show the aforementioned green lines.2 years ago
xxpertHacker
xxpertHacker
Is it just me, or is that literally C, just ran in a C++ compiler, augmented with a hint of C++? But I have to warn you, don't get your hopes up, there are approximately only 10 people who know C++ on Repl.it.2 years ago
Terra361
Terra361
shared a Post
2 years ago
I currently am attempting to create a game in the console using ncurses, but I was immediately faced with a big problem (if I'm going to be honest tha
RYANTADIPARTHI
RYANTADIPARTHI
The only way to do it is by dragging the window across. So when you hover over the edge of the terminal, your cursor will change, and just hold, and drag it. And it will expand.2 years ago
Coder100
Coder100
Sorry, not possible :( just expand your terminal, like maybe zoom out?2 years ago
Terra361
Terra361
shared a Post
2 years ago
I am using the nCurses library on my project. I am trying to generate pixels in the console, but all I get when I run the code is Undefined reference
DynamicSquid
DynamicSquid
Okay, so to compile and run your program, type this in the console: g++ -o main main.cpp -lncurses; ./main Or if you want, create a new file called .replit, and type this in: run="g++ -o main main.cpp -lncurses; ./main" Then just hit the run button and it should work! This is because you have to link the curses library since it's an external one and g++ can't do it for you automatically.2 years ago
DynamicSquid
DynamicSquid
You have to link the curses library manually. One sec, lemme try to get it working2 years ago
Coder100
Coder100
Does repl.it maybe not support ncurses.h?2 years ago