Ask coding questions
h
Mosrod (416)
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 (2493)
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...
CarlosRosiles (153)
C++ - How to make this function thingy not append?
How do you make this function thingy not append? If you try it on my repl, it will append, and I don't want that. I want it to update the file. And yo...
baolinchang (5)
Please help me! :)
Hello! I'm working on a game of battleship, and I don't know why I can't place multiple ships on my board using my function 'placeship()'. If anyone c...
answered
calebchan1 (3)
.replit run file
I imported a cpp repository and want to compile and run the project. However, the .replit file only has room for 1 command, not 2. is there a way to c...
answered
GraceVenis (4)
Why is my output printing like this?
This program has a class called Person, a vector of type Person, and an input file that populates the vector. There's not much left to do with this c...
GraceVenis (4)
C++ BlackJack Game
This program simulates one hand of a simplified version of BlackJack (or 21). It has 2 players: a user and the dealer/computer. It allows a user to sa...
AndreLouis (2)
Different Values Returned In Visual Studio With Same Code From Replit?
Hello. When I copy/paste this code from replit into Microsoft Visual Studio they return different values both for the index returned and the value th...
answered
Description (3)
terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc
Raised error: "terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc" It doesn't tell me which part of the code i...
answered
BFDMod (3)
How to return to another line of code in c++
I am programming in c++ and making a food ordering app, first it shows the menu, then you pick something, then I want the program to to return to the...
JonathanWesely (2)
Settings issue
Hey so I'm having an issue where all my code becomes grey, (its happening in the LL.functions file) and I don't get that feedback for errors through c...
sionan (3)
Anyone know what im doing wrong?
Trying to find length and width of a rectangle using area and perimeter
sayas02 (2)
How do I download a CPP file?
Nevermind! Figured it out. I just did some more troubleshooting and now I feel a little stupid, but it is okay. I figured it out.
answered
AtriDey (159)
[Solved] Why won't my program run in a new tab?
It never works. I don't know what else to say. This one's a program for a Breakout.edu I'm doing at school, and it once again won't work. https://den...
answered
Andrea_del_Pila (1)
Download generated file
Hi! My C++ code produces a binary file when I run it, however I'm unable to download that file because it didn't appear in the left panel. How could I...
answered
NZHacker808 (65)
How do I do this?
I got a bit confused with this, I don't know how to do the prime thing, the one who helps me will get 5 cycles!
answered
baolinchang (5)
Please help! It says undeclared Identifier and IDk how to fix it.
Hello! I am fairly new to using classes in C++ and I was trying to do me.printsummary but it comes out as an error because it says there is an undecla...
answered
SelenaYang1 (3)
Colored Text in c++
How do you make colored text in c++? is it possible? Thanks Selena
cchapman (2)
ex 11
Can someone help me I cant figure out what I am doing wrong
answered
sionan (3)
Trying to convert inches to millimetres
Can anyone tell me what im doing wrong?
MsNajmath (1)
memory calculation
How do I calculate the memory used by an algorithm or code? Why does library like windows.h and utility.h not work in repl
answered
sionan (3)
cin statement C++
Can anyone tell me if the cin statement works on C++. The resulting code dosnt come up after where i put in the cin statement.
answered
KeaganLandfried (27)
HELP: gets() statement not working in C++
I was wondering why I am producing an error on line 11 of this code. In Microsoft Visual Studio 2010, this code runs fine. However, the gets() stateme...
answered
AtriDey (159)
Broken if statement
Probably made a stupid mistake here, but I have no idea what it was. This error only occurs in the `void fast_mode` function. The highscores are broke...
answered
BFDMod (3)
Controls in C++
I am trying to make the snake game in C++ but cannot figure out how to make the controls. I have tried #include <conio.h> and #include <ncurses.h> Ple...
h
dauzatbp (1)
How do I upload files from my computer to repl.it?
How do I upload files from my computer to repl.it?
answered
18047277 (1)
How do you modify method in C++
void gameLoop() { bool gameOver=false; while (!gameOver) { /* Ask for a command. */ bool commandOk = false; inputComma...
RiaanSheth (2)
Maze Game!
OKKKKK!!!!! It is done!!!!! Mwiki if you see this last task lol. Hows does some of this code work. I get the basic idea and I've done some vectors but...
GumballDumball (0)
Exit status?
Whenever I try to run my code it just ends up as Exit Status 4 or 5. Please help me and fix my code. Thanks. Edit: My code is supposed to be when the...
softwarenginner (3)
I am looking for a basic and easy programming ideas for java beginners.
Hello, Guys I am looking for a basic java programming ideas. It is easy to and it is for new java beginners. Please write all the ideas you have TH...
RyanMaduabum (0)
Im having issues with this code. can someone help me review it?
I just need anyone who could just look over this code and help me fix the errors it keeps making
NgMarco (0)
An Encryption Question. Made me lost 100000 brain cells :D
Hi guys! I am a c++ learner and recently studying array. Yet I found one of the questions of my assignment is out of the syllabus(we only learn basic...