Beginners - August 2020 (Page 4)

streaming with 'unget' problem
 
Having trouble with a fill-in the ... practice problem from my online book. So the problem states...
[4 replies] Last: there are a mix of ancient exercises from before the language had some... (by jonnin)
Multiple users registration problem
 
Hi guys please can anyone help me i created this program it is a simple login and registration progr...
[13 replies] Last: With the password check fixed, the code works. I'm not sure what you ... (by kbw)
by Mif
Need help with menu control 'C'
 
How to avoid terminating the program if someone type 0 (zero)? #include <stdio.h> #include <w...
[2 replies] Last: > while((temp = getchar()) != EOF && temp != '\n') Given that EOF is g... (by salem c)
basic math operations with one dimensional arrays
 
hey pals, need your help in here, how to add, subtract, multiply and divide 2 arrays(one dime...
[7 replies] Last: @ lastchance , thank you so much for explanation and patience! (by MaxGreen)
If statement fix?
 
Any idea how to fix this If statement? So I want the program to go into the if section if there is a...
[1 reply] : Change the last || to && (by lastchance)
Unhandled exception in 0x00673CF9 in es7_24.exe: The cookie stack instrumentation code detected a stack-based buffer overrun
 
Hi, I'm creating a code to simulate if the horse(chess) can make a tour of the board 8*8, the progra...
[6 replies] Last: @OP Your move function needs to check that the new move position is a... (by againtry)
Templates and concepts
 
I am reading through a C++ book and one of the exercises that builds on top of the previous ones say...
[7 replies] Last: Thanks, unfortunately I'm out of ideas. Maybe someone else here will r... (by Ganado)
Why does non-pointer variable use base class method but pointer variable use derived class' method?
 
I'm trying to understand how polymorphism works. In particular, what "static linking" and "dynamic b...
[2 replies] Last: Ah. Mystery solved. Thanks! Foo f2; f2 is a Foo object. Exactly a Fo... (by ElusiveTau)
How to detect memory leaks poperly ?
 
I am trying to understand if my program is causing memory leaks. I do not know what to do. Any idea ...
[12 replies] Last: ok. you can try to fix that if you wrote the leak detector yourself, ... (by jonnin)
Ignoring time stamps
 
I am trying to write a code which ignores the timestamps of one file to compare the contents with th...
[18 replies] Last: Learn and love the command line utilities to pre-process your strings.... (by dhayden)
Ringtone management system on C ++
 
The ringtone problems I have seen a lot and that make me great to have a system that manages my own ...
[5 replies] Last: https://www.youtube.com/watch?v=KmnRcldV0NM (by againtry)
Secret Word
 
A computer scientist has developed an encryption algorithm. This algorithm takes two inputs - one pl...
[3 replies] Last: https://www.chegg.com/homework-help/questions-and-answers/secret-word-... (by againtry)
Getting the logic right
 
String Pair Problem Description One person hands over the list of digits to Mr. String, But Mr. St...
[2 replies] Last: https://www.texspert.com/2020/08/string-pair-codevita-9-solution.html (by againtry)
implicit pointers?
 
Could someone please explain what an implicit pointer is, The book I am learning from (currently lea...
[4 replies] Last: It's misleading to think of a reference as an implicit pointer. Refere... (by dhayden)
by StMick
Map Insert Error
 
Hi there! Im trying to insert two objects (actually 1 object and a an object list) into a map and am...
[7 replies] Last: Thank you all - the curly brackets were all that was needed to success... (by StMick)
by F95
Difficulty writing method for Dijkstra's algorithm
 
I'm trying to implement the code that will perform Dijkstra's algorithm, but I've hit a brick wall w...
[3 replies] Last: Maybe: while (vertexQueue.size() > 0) { // Q not empty // Fi... (by dhayden)
What does 'constructed in-place' mean?
 
This is primarily with regards to containers' emplace() method. I get that insert() copies the argum...
[5 replies] Last: Ah cool. I'm still a little bit shakey on move semantics so I don't s... (by mbozzi)
Dynamic queue problem
 
Hi everyone, I'm trying to find the solution to this problem for more than 2 hours but can't think u...
[2 replies] Last: Thank you ! (by closed account zAoTfSEw)
I cant get my invalid number detection to work, for my calculator
 
#include <iostream> #include <cstdlib> #include <time.h> #include <math.h> #include <errno.h> usi...
[13 replies] Last: Hello WoodyW00, Debugging the program is much like writing the progra... (by Handy Andy)
Why "IF statement " doesn't catch the "=="?
 
I'm trying to write a program that does the following : 1- input "x" and "y" 2- "i" goes up by i=...
[3 replies] Last: I Didnt know that 0.1 + 0.2 != 0.3 ... I solved the problem like th... (by kaismea)
August 2020 Pages: 123456... 8
  Archived months: [jul2020] [sep2020]

This is an archived page. To post a new message, go to the current page.