python (65.2k questions)
javascript (44.3k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (13k questions)
Follow DRY principle
I have an implementation of following kind-
int max_count = 10;
main() {
Writer writer = //initialise writer;
List records = new ArrayList();
while(true) {
// some functionality
// s...
Ayushi Bansal
Votes: 0
Answers: 2
scanf inside an If statement on a do while loop messes up the inputs
When the input is a negative integer, the program should ask if you want to reset.
It worked fine when I test it with a negative integer. But when I try a positive integer, it doesn't work (I have to ...
Kaz
Votes: 0
Answers: 1
do/while loop with cin.getline parsing to string doesn't compare values to break it
So I have this type of "menu" in a do/while loop
do {
cout << "Press 0 to export IDs, exit to exit, or any key to continue to menu:\n";
cin.getline(choice...
Nik
Votes: 0
Answers: 1