Beginners - July 2018 (Page 10)

Help with function to reverse Stack
 
Hello! I am currently working on an assignment in which I am trying to create a function to reverse a stack if written in the format stack1.reverseStack(stack2...
[3 replies] Last: @lastchance Thank you! So obvious when someone else points it out! (by BrettD565)
meaning of this template struct
 
How to describe this template structure in words what is the use of ContainerAllocator? I find it being used in the code as, typedef ::geometry_msgs::Quaternio...
[1 reply] : typedef ::geometry_msgs::Quaternion_<ContainerAllocator> _orientation... (by helios)
GEARS
 
can any one tell how to find if a cycle is odd or even using dsu??
[1 reply] : i can give first 5 and 60 points subway for gears or wartaran PM me if... (by blackmamba)
What does this typedef mean
 
What does the type define mean? namespace sensor_msgs { template <class ContainerAllocator> ... ... typedef std::vector< ::sensor_msgs::PointField_<C...
[1 reply] : Try removing all the namespaces and turning it into a ‘using’ stat... (by Enoizat)
Best C++ way of doing things?
 
Hi everyone! I'm a C programmer that has been learning c++ for the past couple of days and I consistently encounter the same problem. Because of the interope...
[9 replies] Last: [quote=TwilightSpectre]My point was that in almost every case, std::en... (by Enoizat)
How To Change The Size Of Text?
 
Assalam-o-Alikum; I am using the DevC++ IDE For Programming, And I want to Change the Console Text Style and Size, So Can Someone Please HElP That How To Cha...
[1 reply] : Assalam-o-Alikum. Dev-C++ is not the only free IDE you can find and i... (by Enoizat)
Merge Sort Segmentation fault
 
I have been trying to identify the bug in this code for a long time to no avail. It is a merge sort code I tried writing myself. I am getting a Segmentation fau...
[4 replies] Last: Thanks a lot for your suggestions. Fixing the temporary array size mak... (by hasslersteph)
No Minimum No Maximum Help
 
it must be (n-i-1)C(k-1) and (i)C(k-1).
[14 replies] Last: I HAVE EQUILBR NMNMX GEARS AND WARTARAN FULL AC SOLUTION (WARTARAN 98 ... (by closed account jy6DLyTq)
by Bytex
Help with a minesweeper project
 
Hi, my problem is that I'm trying to make a recursive function (function "reveal") in order to "open" all the empty grids until they found a wall of numbers, bu...
[11 replies] Last: wow! that really works for me, thanks man and thanks all of you for th... (by Bytex)
Need Hint On This Problem (1,2,3,4,5,6,7)
 
There is a sequence of N integers a 1 ,a 2 ,…,a n . where 1 ≤ a i ≤ 26 You are allowed(but don't have to) to replace any one number in this sequence...
[127 replies] Last: if anyone helps me with gears problem can have any of the first 5 prob... (by blackmamba)
Need help EQUILIBR (1,2,3,4)
 
I sincerely need a hint for this problem! https://www.codechef.com/JULY18B/problems/EQUILIBR
[61 replies] Last: if anyone helps me with gears problem can have any of the first 5 prob... (by blackmamba)
Error help
 
So I have errors that i`m not understanding why they are there. I need help ASAP Errors: line 24, 'source' was not declared in this scope line 32, no matchin...
[1 reply] : your line numbers don't correspond 'source' was not declared in this ... (by ne555)
remove_last function help.
 
So i need a remove_last function that takes out the last thing added to the array. (All you need to do for this is to decrement the used counter. You do not nee...
[4 replies] Last: I fixed remove_last now I have other errors in my program to find lol. (by sgill1998)
by wsme
Passing Strings
 
Attempting to make a timestamp program where the current time is printed to a text file when the program is run. Wanting to keep the code modular, I wanted t...
[3 replies] Last: @Peter87 I thought content in the pointer was passed by reference? The... (by wsme)
Subsequence product !!! NMNMX - NO MINIMUM NO MAXIMUM (1,2,3,4)
 
Why did you used ** it can be done in * only
[68 replies] Last: @priyanka can u use code tag your code is not indented (by closed account 3UohqMoL)
Help me with NSA
 
PM me pseudo code for ur approach i ll see if can find something... also if u have done gears problem even partial then help me with that
[5 replies] Last: @wasp what was the problem?? (by blackmamba)
NSA hint
 
try converting all int to long long
[1 reply] : @iamx converting int to long long doesn't improve the efficiency... @m... (by honeybuzz)
TLE in No string attached in O(n) complexity
 
Write your question here. Guys, I have almost cracked NSA.I have used DP/memoization and have reduced my complexity to O(n) but am getting only 30 pts...I ...
[5 replies] Last: 1 0 AC (0.070000) 1 1 AC (0.110000) Subtask Score: 10.00% Result - AC ... (by honeybuzz)
by ysf007
how to get threads to communicate with shared memory ?
 
Hi, I'm trying to write a code which allows me to get threads to communicate, a particular way. I want these thread read and write from the same vector ...
[2 replies] Last: thank you @tpb (by ysf007)
Should you forward declare classes that are part of a library?
 
Is it ok to declare classes that are part of a library that your using or should you only forward declare classes that you made? For example: namespa...
[3 replies] Last: The biggest advantage of using forward declarations is to avoid circul... (by Peter87)
July 2018 Pages: 1... 89101112... 17
  Archived months: [jun2018] [aug2018]

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