Beginners (Page 14)

shifting elements in an array
Hi everyone, I know this is a common question, but I've gone through all of the related posts that...
[9 replies] Last: #include <iostream> using namespace std; const int ARRAY_CAP = 10; ... (by lastchance)
Extract particular loop number from a loop
In my code, a loop is occurring 25 times, where the variable has been assigned as part. (example has...
[3 replies] Last: condition1 && condition2 is the same thing as "if cond1 and cond2 are ... (by highwayman)
by vysero
This is just a general "best practices" question. Let's say header file X has an include Y but heade...
[2 replies] Last: Oh yes, of course, that makes sense thank you. (by vysero)
passing a function a non decided amount of arguments/parameters
Hi there, I am wanting to have a function that i call from main that i want to pass a certain amount...
[5 replies] Last: @jonin we must have replied at the same time... lol this isn't weird!... (by markyrocks)
How to write destructor ( unique_ptr<T>).
I am working on a custom container class. My main method runs correctly. Iterating the contents and ...
[7 replies] Last: UPDATE : The original error - HEAP CORRUPTION DETECTED: before Nor... (by goozeberry)
Help with a Loop
Hello, I'm currently making a program that reads off a file and prints a list of movies playing with...
[4 replies] Last: Hi, I've implemented what you've suggested and I see what you mean no... (by Beararms)
Erase vector items exercise
Hi everyone. I am a student learning C++. I have a the following assignment that I can't get to comp...
[5 replies] Last: lucretia borgese reports again from the nunnery fatuaosa (by againtry)
Function not returning bool value
Given a list of numbers and a number k, return whether any two numbers from the list add up to k. ...
[3 replies] Last: Thank you so much guys! (by Vijay0753)
Add element to Custom STL Container Class
I am building a RingBuffer Container and I struggling with how I should be using pointers to interac...
[6 replies] Last: ¿how do you distinguish between a full buffer and an empty buffer? ... (by ne555)
Ok, so if I remember correctly, typeid returns some sort of char or maybe it’s a string. For now I...
[2 replies] Last: That actually cleared up a lot of stuff lol. Thanks for putting up wi... (by highwayman)
Ternary expression issue?
Hi. I'm playing around with some simple tutorials that i found online. just so i can get a better ...
[5 replies] Last: If you format ?: like this std::string sloglevel = log_level >= 2?... (by mbozzi)
by hbcpp
Finding the largest element in a vector / array vs vector
I have a school assignment, even though the class teaches C, my teacher said it is ok for me to use ...
[11 replies] Last: #include <iostream> #include <iomanip> #include <string> #include <al... (by lastchance)
int to string
Hello, so p=11 which is an int. I convert it to a string and I do the following for loop to displ...
[16 replies] Last: > superiority complex much? I apologize if what I said was in any way... (by highwayman)
normalization of database
Hi everyone. Can anyone explain to me what is meant by 'normalize the database' and what benefit is ...
[3 replies] Last: Obviously you are supposed to research this yourself. You are literall... (by dutch)
by ema897
I'm trying to implement adj matrix, not knowing dimension. Target is to clear a flag using method c...
[9 replies] Last: Can you show the full code and the full problem description if this is... (by dhayden)
I need help in my C++ class.
I am in currently enrolled in a C++ course and haven't taken coding in 5 years. My professor glazes ...
[1 reply] : #include <iostream> int main() { int x = 0 ; // The variable x s... (by JLBorges)
Special member function as a template?
I am currently reading a book (C++ Templates: The Complete Guide 2e) that explains that a member fun...
[3 replies] Last: I don't see why converting to volatile enables "better matches" Perh... (by Enoizat)
by newGrl
help! multiple files and "undefined reference to"
Hi everyone, This is a school project. I haven't even started and I'm stuck. There two .cpp fi...
[5 replies] Last: Thank you everyone for the replies!! dutch, you were exactly right abo... (by newGrl)
by kmce
Hash tables
Hi i am having to create a hash table for a project, but i have never actually created one before, a...
[18 replies] Last: of course, i am forgetting they are not stored the same way as arrays.... (by jonnin)
Declaring in loops question
I am assuming that if I do this. I am not stacking memory on top of each other but it is going thro...
[2 replies] Last: Thanks (by advancedip)
Pages: 1... 1213141516... 23
  Archived months: [dec2019]

Cannot post in this page. To post a new message, go to the first page.