Beginners (Page 2)

[code review] mode of integers
// Finds the mode of input integers #include <iostream> #include <vector> #include <algorithm> i...
[6 replies] Last: @lastchance Thoughtful! Thanks. (by chirumer)
Very new to programming! Need help with a for loop not working.
Hello, I've recently started programming and I've had lots of trouble figuring out why my code is wr...
[3 replies] Last: Thank you so much! After a bit of fixing it finally worked. I had trie... (by Luca4588)
Raptor FlowCharts
Need help with Raptor flowcharts, I will later need to write a C++ program that does the same thing....
[5 replies] Last: I did a 'net search on RAPTOR Flowcharts ( (by Furry Guy)
Beginning C++
When you first started with C++ how were you able to become fluent in the programming language?
[7 replies] Last: ...need to have patience and actual motivation. Sadly two things the ... (by Furry Guy)
by NMI21
Reading lines from txt file with calloc
Hi guys I dont have a specific code yet. I know how to read a txt file with fstream. I can implemen...
[2 replies] Last: I think there is a way to directly read text into a c++ string... han... (by jonnin)
how to get a specific text from string? #2
I don't do code much with c++ so here is a question I have with this string. string - param 1: CP:0...
[3 replies] Last: I just now read my post again and I think I could've presented the iss... (by Reverseit)
Class A members depends on Class B members: how to? (1,2)
Hello everyone, i spot here from time to time when i come back to c++ development. I have a questi...
[21 replies] Last: It sounds to me like the background object should be global. After a... (by dhayden)
Need help with a creation of student diary in C++
Hello, I'm struggling and desperately need a help with the following task. I don't have any idea at ...
[2 replies] Last: In addition, once you have code to read from the file, create a functi... (by seeplus)
by NiceS
+2 instances overload
Im having trouble solving this error and does not know what does it mean. I tried this kind of code...
[4 replies] Last: If one goes to <algorithm>, then one could go to std::sort too: // So... (by keskiverto)
Can someone explain to me why my vector won't output?
int i = 0; int pop = 10000, stars_dscvrd = 0; int army = pop / 2; int pop2 = 10000, sta...
[11 replies] Last: I got it to work Note that "it works" is a frequent assumption. It... (by keskiverto)
Toggle, clear and set bits
I a) Toggles bit 11 in x. b) Clears all bits except bit 3 in x. c) Sets bits 0,1,2,3 in x. a...
[9 replies] Last: My favorite is my Apple Magic Keyboard. I have used several other typ... (by agent max)
by alexas
collision detection - need advice
Hello It is a broad and yet very complex subject, at least for me, when I simply google it. I would ...
[3 replies] Last: Are there any constraints as to where these cuboids can go? Use any co... (by Ganado)
Error with inheritance
Write your question here. //main #include <string> #include <cstdlib> #include <iostream> ...
[3 replies] Last: vs code is a poor tool. Try the real visual studio (2019 current) and... (by jonnin)
printing nodes with the same degree
get nodes(int n) - This function returns all nodes in form of a string, whose degree (number of chi...
[6 replies] Last: If you can't alter the above code to do that, then you seriously need ... (by seeplus)
Ternary Tree construct
I have been suffering for three days trying to figure this out and start my code. Class Methods...
[1 reply] : Do the same as you would for a binary tree, but do the extra test for ... (by lastchance)
formula is not working
Just started coding and it seems like I must have typed the formula wrongly or something because the...
[5 replies] Last: I've learnt that the order is very important and that I've to make sur... (by teacoder)
formula is not working 2
So I seem to have the same problem again with the formula and I have done what the other guy said ju...
[3 replies] Last: So basically my problem was that I used a general formula for the code... (by teacoder)
array and vector - whitespace
Hello, I am doing problems on hackerrank, and had a question that involved putting values into an ar...
[5 replies] Last: To reverse access a vector's elements using iterators: [code firstline... (by Furry Guy)
Press "esc" to stop asking for values
Hi i'm new here. I want to make a c++ program that will ask values that can be stored in an array...
[7 replies] Last: For some reason I was thinking escape emitted 2 characters instead of ... (by jonnin)
Sorting a vector alphabetically
In the function add contacts, I want to add a persons name, phone, and email in my vector my contact...
[5 replies] Last: @dhayden, Out of this: string first = mycontacts .name; // save the... (by Handy Andy)
Pages: 1234... 13
  Archived months: [mar2021]

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