Beginners - August 2018 (Page 9)

heap algo modification
 
how can i access each permutation of an array individually found by heap algo? i.e.,permutations of...
[2 replies] Last: I'm not sure that's what was asked. A "heap" is just an array that is... (by Duthomhas)
by okfree
Constructing an array
 
If I have an existing array a, and an integer k, how do I create an array such that the i-k to i+k t...
[5 replies] Last: I'm a little confused by what your asking... If by i you mean the inde... (by Karakuik)
Modulo recursive problem for exponents with decimals
 
EDIT: cleaned out some of the stuff from int main() to make it more readable. Hi, I have an exercis...
[6 replies] Last: Yes, you are right I was overcomplicating, should have thought up of t... (by darkob93)
.exe has stopped working
 
This is my code but when i compile it on codeblocks it says .exe has stopped working after taking in...
[3 replies] Last: These ones: while(i<t) { length=digits(n,i); in... (by Repeater)
by Ch1156
Ternary operator help
 
I'm looking at the ternary operator and I never used it before but would liek to know how it works, ...
[8 replies] Last: Great! thank you for all your help! (by Ch1156)
by ChrisL
Some basic reasons to start
 
Write your question here. I have started on a question that allowed me to compile but when I went t...
[4 replies] Last: You could get 99 (or any number) if you forgot to initialize count to ... (by tpb)
Spell checker (Programming 3)
 
"Write a spell checker class that stores a set of words, W, in a hash table and implements a functio...
[3 replies] Last: std::unordered_map is a hash table. http://www.cplusplus.com/reference... (by tpb)
Program hangs
 
I'm having a hard time figuring out why my program just hangs after I enter my skeleton and human. ...
[4 replies] Last: That one feels backwards to pretty much everyone at first. But when yo... (by tpb)
Adding values in a list with an iterator
 
I'm looking to take the list and instead of going from 0-90 by 10 I would like it to go from 0-90 co...
[2 replies] Last: Oh wow that was an easy fix thank you very much! (by passiontrip)
coordinate compression
 
Can anyone give me some hint as how to solve this problem: Write some code, post it here. This is...
[7 replies] Last: can someone just explain me the test cases.. I am sort of getting the... (by darkX)
by kreezy
My First Project
 
Hello everyone :D I recently made my first C++ project (console app), and I want any feedback you...
[6 replies] Last: Thanks a lot from everyone who responded. This project was made withou... (by kreezy)
GCD (1,2)
 
How can we calculate gcd of a^n+b^n and a-b when a,b,n<=10^9 My logic is that gcd(a^n+b^n,a-b)=gcd...
[22 replies] Last: Just an observation, but... If (a-b) = 0 then GCD = 2a^n. If (a-b)... (by Manga)
GCD
 
Write your question here. Whats problem in my code #include<iostream> #include<vector> #inc...
[5 replies] Last: @Manga, In gcc <iostream> indirectly includes <string>: <iostream> ... (by tpb)
by clonxy
How do you delete 2d vectors?
 
I tried deleting a 2d vector by using .clear(), but when I tried reloading the Game object, it print...
[1 reply] : If map2d is a vector of vectors, then map2d.clear(); map2d.res... (by Repeater)
std::bad_array_new_length
 
Write your question here. what() is wrong whith this code ? from a famous book I'm reading P...
[4 replies] Last: [Hello all, I have reworked Andy's line # 12 from : for (int i = 0;... (by mycuser)
by asdru
->size() returns the wrong result
 
I'm using the ->size() operator to compute the number of elements in an array of strings, but the re...
[4 replies] Last: All of these syntaxes call the size() member function of first std:... (by keskiverto)
Decryption of openssl packets with static certificates
 
I am working on an ethical hacking https://goo.gl/mFYtki project to monitor all the encrypted packet...
[no replies]
by Seyter
HOW TO MAKE A PROGRAM THAT ACCEPTS POSITIVE NUMBER INPUT BUT NOT NEGATIVE NUMBERS OR ALPHABETS?
 
HOW TO MAKE A PROGRAM THAT ACCEPTS POSITIVE NUMBER INPUT BUT NOT NEGATIVE NUMBERS OR ALPHABET AND...
[8 replies] Last: Also, the usual idea is to write pseudo code first, then turn that int... (by TheIdeasMan)
Default Constructor question.
 
Let's say I have a parametized constructor, and it's the ONLY constructor that should be used, shoul...
[4 replies] Last: Nope not misleading. I appreciate you clarifying for me. I sort of fig... (by CGunn86)
by Kai456
Exception thrown when trying to print only first n elements of vector
 
I can't seem to figure this out. I basically want to first prompt the user how many elements they wa...
[6 replies] Last: Wow Ganado thank you for the great reply! Makes a lot more sense now t... (by Kai456)
August 2018 Pages: 1... 7891011... 15
  Archived months: [jul2018] [sep2018]

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