Mosrod (505)
Guide to Asking Coding Questions
# **Guide to Asking Coding Questions** ## **Why?** Good questions help your question be solved faster, and people will want to answer your questio...
amasad (3278)
Wildest programming language idea
What is your wildest programming language idea? This could be fun (silly) ideas or really cool and useful ones. Go! Also on le twatter: https://twit...
xxpertHacker (785)
C++ What is the point of referencing object methods via class
One can call a method on an object, ex: `"123"s.at(0)`, or reference the method from the class, ex: `std::string::at`. Yet, the latter always causes...
StellarX10 (0)
Help with Streams
Hey guys, working on an important assignment here. Do any of you know how to add a real file to my code on my repl.it so my code reads it? For example...
xxpertHacker (785)
.replit files' `onboot` no longer works?
I was using the following `bash` to update C++ Repls: ```bash if ! command -v clang-10 &> /dev/null then install-pkg clang-10; fi; ``` For some reas...
Qaimaq (0)
What is the difference between declaring class as normal vs declaring it as a pointer?
Are there any difference between them? I tried to test it out, but they are giving me the identical results so what is the pro and cons of one another...
Wolfclaw1226 (0)
Any ideas on how I can fix this?
Yeah, So, I didn't expect this bug to happen. Just check out the note on my program. P.S. this is in C++
erelsgl (0)
How can I run "make" from the current folder?
I created a repl from my github repository, which contains many different folders with code samples. To run each code sample, one has to go into the...
xxpertHacker (785)
Coalescing if statements leads to change in control flow?
On line 228 of base64.hpp, I had this: ```c++ if ( u8'=' == ascii[i] ) { if ( u8'=' != ascii[1u + i] ) { return false; } } ``` I looked at this,...
kirtikatambi (2)
A small problem
Hi... I am facing a small problem in my repl for C++. Every time this file called 'main' appears and no matter how many times I try to delete it, dele...
Qaimaq (0)
How do I run a program on repl.it by specifying command line arguments? eg. a.out 3 ab a b
So I have these code lines: ``` int main(int argc, char *argv[]){ for(int i = 0; i < argc; i++){ cout << argv[i] << endl; } return 0; } ``` What I...
xxpertHacker (785)
C++ unknown type?
I'm trying to figure out what type `u'0'` and `u"0"` are, but `std::char8_t` doesn't exist, so is it an un-named type? Ahh, these don't even compare!...
SourabhPrasad (0)
Why not Dereference it?
When assigning value in 2D array, we should put ** because we are accessing memory location? Am I right or wrong?
DarkHollow (0)
How can I print the object values instead of their addresses?
Also, how can I make a ptr pointer to an array of vehicles (dynamically) and then print them? Let's I want to use ptr as an array. If ptr is an array...
SourabhPrasad (0)
Why this program is taking too much time?
It's not even showing compile error!!!!!
hedimaamar (2)
Need some help from you guys
I have a lab it's due tomorrow, it's my first time using repl, and I not sure how to use it properly, I got stuck in this part *Click on 'share', then...
hedimaamar (2)
need some help from you guys
I have a lab it's due tomorrow, it's my first time using repl, and I not sure how to use it properly, I got stuck in this part *Click on 'share', then...
RDutch (0)
How to use BOOST.Asio?
Hello. I get this message: *error: no type named 'io_context' in namespace 'boost::asio'; did you mean 'sigcontext'?* in this program code: ```C++ #in...
JasonLiu19 (69)
Segmentation Fault (C++)
Most of the time when I set the type of product to per pound (0), and I put a number in, it causes a segfault. Why, and how to fix it?
xxpertHacker (785)
[Closed] Why can't I destructure arrays into already declared variables?
I declare two variables, `a` and `b`, and then try to destructure an array into them. Why isn't this allowed? ___ Update, Rust doesn't allow this e...
debby_telfer (1)
Which GUI package can you use in C++ code in repl.it?
Please tell me which GUI package can be used in my C++ code and what special commands do I have to do to use the GUI import?
18331 (0)
File does not convert to a C++ source file and main file doesn't recognize header file.
https://repl.it/@18331/Other#main.cpp Hi, I'm new to coding and I'm trying to make a simple function. This function is based on three different files...
NicholasCzyrnik (0)
Why does my code have a linker command fail?
I originally thought it was me, but when my professor dropped his code in our chat and i copied it word for word, it still said it wasnt working. Any...
CyberScarlett (0)
How to calculate baby weights and average?
I need help with a homework assignment. It's for a programming class but I'm not understanding it. If anyone could help I would be very greatful! Her...
LoveFromSkyy (120)
How do I make variables change after another changes?
I want the monster of the level to become stronger in terms of hp and attack damage ONLY. I don't want to change the player's stats yet, that's going...
xxpertHacker (785)
Unable to use std::make_shared overloads?
I cannot get Repl's clang-7 to use any of the overloads for std::make_shared on [cppreference](https://en.cppreference.com/w/cpp/memory/shared_ptr/mak...
GeoneveStudios (9)
Is C++ Hard To Learn?
Everyone's been saying its so **hard** to learn. I just wanna hear you guys opinion. *By The Way* I'm showing one of my repls to show that C++ is easy...
xxpertHacker (785)
std::ostream overload not taking effect
I made a simple overload for std::ostream, so that it can format arrays (`T(&)[N]`), but it's not taking effect for `T(&)[0]`. I'm not sure why it's...
SamOlatunde (0)
My first Code
Can anybody help me fix this program
AlexanderRyan2 (0)
Linker failed with exit code 1
I'm really not sure why im getting this error but if someone could help me out i would really appreciate it
FlameBurst (2)
Project in C++
I need help with this program function It needs Build Subroutine or Function - Banner Page (Extra Clear Console) - It needs to say a Name - Start and...
LoveFromSkyy (120)
Another C++ function error :/
I'm trying to make `XP` go to 0 after the player levels up but I don't know how to do that. Here is what I have: ```C++ int XpClear(int XP, int Lvl)...