Beginners (Page 3)

Code Suggestions / Improvements For Me
Background Hello everyone! A few months ago (as well as more recently) I looked into a JSON parser...
[2 replies] Last: [quote=Thomas Huxhorn]obviously ... printInstructionsAndGetInput() doe... (by PiggiesGoSqueal)
Sum of all pairs
find sum of all possible x+y where x and y are natural number solutions of the equation x^3 ...
[5 replies] Last: I see, so that shows that the radius is bounded, and therefore you onl... (by Ganado)
Help in this question
You are given an array a of integer of size N. Now, select any two adjacent indices, ifa == a[...
[2 replies] Last: For Example if a = [4, 3,3, 4, 4,4] I suspect you meant: if a = [4, ... (by lastchance)
Can someone Just tell me how to create your own namespace std? If you can suggest me some video for...
[4 replies] Last: Also, if you don't know vectors yet, stop. Learn them before arrays. ... (by Repeater)
Fixing a segmentation fault
I believe that the segmentation fault is occurring because the object isn't getting written into the...
[9 replies] Last: you are very welcome. this kind of simple mistake are why pointers a... (by jonnin)
how to handle out of range?
apt list prints an extra field " " when a package is installed. however when package is not installe...
[1 reply] : > the actual print out is: ¿why there is no "cmd = ", "apt_list = ", ... (by ne555)
How would you use vectors in a real life situation when making programs using vectors
I just learned about vectors in c++ and want to know what ways can we use a vector in a real life si...
[2 replies] Last: To make a collection of items that has an unknown size at compile time... (by Ganado)
Undefined reference error Code::Blocks (1,2)
Hello, I received undefined reference error at a project with three files: SUM.h, SUM.cpp, main.cpp....
[20 replies] Last: By the way, CodeBlocks Project (CBP) files are just XML, so you can op... (by Ganado)
C++ Problem
[5 replies] Last: @talal02: #include <iostream> #include <cctype> #include <limits> i... (by Furry Guy)
Concactenate string and user defined object by + symbol
Hello! See at the bottom of the code. I would like to be able to execute that code (in comments) ...
[1 reply] : you need a stringstream to do that because you don't have anything in ... (by jonnin)
Kindly explain this binary tree array
Kindly explain this binary tree with array representation.
[14 replies] Last: The page that I posted a link to writes: If an initializer is not pro... (by keskiverto)
Quick Question
#include <iostream> #include <random> #include <numeric> #include <algorithm> int main() { con...
[3 replies] Last: Oh okay. Indeed a very quick question ;) (by Thomas Huxhorn)
spoj SEQ problem runtime error
im trying to solve spoj problem SEQ - Recursive Sequence , i comp...
[3 replies] Last: @Enoizat thankyou for the revise my code to become readable, after fix... (by surfersss)
I'm having trouble
I don't know what's wrong. I think it is something with the loop and the formula I have in the loop....
[2 replies] Last: It often helps to “trace” through your code. Start by listing you... (by Duthomhas)
Having Trouble With This Assignment
I am not good with functions. I just can't really understand them overall. But I finally got to the ...
[1 reply] : functions have a type and return for a reason. or they have void type... (by jonnin)
Help please
I need help with this assignment I do not know what im doing wrong. Write a program that accept...
[5 replies] Last: It doesn't print line 18, but I was able to fix it. The main problem r... (by BatJuan72)
Random set numbers and its size
I've begun to do a new program, but I've hit a roadblock and need help. I'm trying to enter the size...
[1 reply] : set s is destroyed after size() is done. it seems like you should hav... (by jonnin)
Strings with Spaces
I am trying to create a program for fun that will recite the Tragedy of Darth Plagueis the Wise, and...
[3 replies] Last: Let's look at save(). After indenting it looks like this: void save()... (by dhayden)
by swa9
Could someone explain what a variable is in depth, Ive read a lot of articles but none of them expla...
[16 replies] Last: why does an object require an identifier to be considered a variable ... (by dhayden)
puts vs cout vs printf
Hello! When watching different tutorial videos on C++, some teachers still use C keywords printf...
[6 replies] Last: So, is it possible that advanced programmers mixed the two keywords in... (by jonnin)
Pages: 12345... 26
  Archived months: [aug2019]

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