Beginners - July 2019 (Page 9)

move constructor and assignment
 
I have took the program from the article : #include <iostream> #include <string> using namespa...
[7 replies] Last: If you do ask: Can a class have all four members (copy ctor, move ctor... (by keskiverto)
by despo
help plz - Circular Merging
 
I have got 10 marks in 2nd subtask. I have tried all brute force approach but not getting the AC ex...
[1 reply] : Deja vu: http://www.cplusplus.com/forum/beginner/256890/ and http://ww... (by keskiverto)
Minimum and Maximum CodeChef
 
https://www.codechef.com/JULY19B/problems/MMAX a little bit hint will be great. what is wrong wit...
[11 replies] Last: @abo can't find your explanation someone reported it (by gokuluffy)
Rock Paper Scissors
 
Hi! I am reviewing the things I learned in the first half of my CPP class for this upcoming semeste...
[10 replies] Last: Why did you add 2,0 under win++ and 0,2 under lose++? if 2 is scissors... (by gongong)
Morse Decoder/coder
 
The c++ programme does not give the complete output. i.e. Output Decode MORSE code enter 1 Code Ch...
[9 replies] Last: @dhayden, Thank you for the input and along with the little bit of re... (by Handy Andy)
Inheritance
 
Why is this error? class Polygon { protected: int width,length; public: Polygon(int n,int...
[2 replies] Last: #include <iostream> // I swapped the order of length and width sinc... (by dutch)
Why the programms doesn't works?
 
I made little zodiak's signs finder(?) and it seens to be working but does nothing in command line. ...
[1 reply] : There's a much easier way to parse out the day and month from the file... (by dhayden)
by huhu
minimum and maximum
 
https://www.codechef.com/JULY19B/problems/MMAX a little bit hint will be great. what is wrong w...
[no replies]
help plz - Parity Again
 
I have got partial in this question. I m getting tle in 2nd subtask.But I have no idea how to get a...
[2 replies] Last: . (by rollins)
Minimum cumulative sum when combining adjacent elements
 
'N' positive integers are placed in a circle in such a way such that for each valid i, A(i) and A(...
[4 replies] Last: Deja vu : http://www.cplusplus.com/forum/beginner/256890/ [quote=Mik... (by keskiverto)
Cast to different uint possible?
 
I want to write such a function, which depends on the encodingType (We just consider the int: 0, 1, ...
[7 replies] Last: I don't think my idea works very well after all. It's easy enough to p... (by dutch)
by Bopaki
Why can't I display all the nodes from myList
 
When I run the program only the last node is displayed Enter a list of integers ending with -999...
[4 replies] Last: Its all sorted out now.... Thank you all!!! (by Bopaki)
INTEGERS -- SUM
 
M adjacent integers M1,…,MN are inserted in a circle the following operation can be done M-1 tim...
[8 replies] Last: No. No code. No ideas. [quote=Mikeyboy]If this is a Codechef problem, ... (by keskiverto)
Pig Latin Name
 
Hi! I am reviewing the things I learned in the first half of my CPP class for this upcoming semes...
[3 replies] Last: vector<bool> table(256) = {false}; table['a'] = true; //you can hard c... (by jonnin)
Checking for harshad numbers
 
Hi, I'm trying to write a program that will take in an integer N, then, starting from N, loop to a ...
[16 replies] Last: Huh.. okay yeah that is pretty sick (by highwayman)
friend
 
Why does this program doesn't work?? #include<iostream> #define pi 3.141592654 using namespa...
[3 replies] Last: So there isn't. That's me told for reading it too fast. (by Repeater)
const member function
 
I am wondering why the const member function .get() has to return a const value, and need to pass by...
[1 reply] : > For example, int get() const {return x;} won't work it does work. ... (by ne555)
Understanding const variables being "local to a file"
 
Hello, In c++ primer 5th ed, it mentions that const variables are local to a file because the com...
[4 replies] Last: @Niccolo, I think you should write a blog. You always supply lots of ... (by mbozzi)
get value attribute from other class
 
Good morning, I instantiate class A and set its own attribute (example A.pippo) in main.cpp. How c...
[1 reply] : #include <iostream> struct A { explicit A( int pippo = 0 ) : pip... (by JLBorges)
by medosz
Square with while statement
 
I am struggling with this program. It reads the size of the side of the square then it should print ...
[9 replies] Last: Thank you, I got it (by medosz)
July 2019 Pages: 1... 7891011
  Archived months: [jun2019] [aug2019]

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