Beginners (Page 18)

Replacing a specific part of a parent_path of std::filesystem path?
 
How would I go about replacing a specific part of the parent_path using std::filesystem? Originally...
[3 replies] Last: "notice a pause" At what point exactly are you noticing lag? Are you r... (by Ganado)
Min/Max
 
In C++ do the statements minimum and maximum work as they look? Sorry I'm unsure of the proper termi...
[2 replies] Last: You can also use int min(int a, int b, int c) { return min({a,b,c... (by lastchance)
Computer sign-in/sign-out
 
So I've been trying to code a simulation in which you can sign into a computer in a computer lab. Fi...
[2 replies] Last: Yea I could use vectors,but I'm not sure how I should incorporate it. (by Deadweight77)
sum problem with functions in C
 
I'm a beginner with programming in C and I have a problem to solve at which point I get stuck. So...
[2 replies] Last: Thank you very much! I solved the problem. (by valiciousx)
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)
Help
 
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 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. https://www.geeksforgeeks.org/binary-tree...
[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 , https://www.spoj.com/problems/SEQ/ 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)
Pages: 1... 1617181920... 28
  Archived months: [sep2019]

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