Beginners (Page 3)

Squares of Inputted Numbers problem
 
Write a program that outputs the squares of the inputted numbers. The program stops when 0 is entere...
[3 replies] Last: Shouldn't the output for 4 5 6 7 0 be 126 (16+25+36+49=126)? You're m... (by dhayden)
simplest vector graphics forms
 
Hello, I am trying to write a code that simulate wifi strength. The code should take a top view im...
[2 replies] Last: After half a month: I gave up on the idea of using vector graphics. I... (by John Karror)
PIC ADC issue
 
I am working on ADC with PIC16F1829 and have an issue understanding where the error appears. I wrote...
[13 replies] Last: Eventually, it works. I decided to change the analogue channel that AD... (by RytisBe)
Help?
 
Problem follows: Write a program that outputs the squares of the given numbers. The program stops w...
[3 replies] Last: You should have been able to make the required modification to the ear... (by JLBorges)
How to run methods in an object in a vector
 
How would I do this? I have this code: this->debugLetters .draw(graphics, 0, 0); debugLette...
[4 replies] Last: Never mind. Thanks for all your replies, but I've fixed it now. (by Salsa Boy)
by clonxy
camera in display() function
 
I have a vector that is 30x17. I want to create a camera where it prints a 9x9 vector of the charact...
[8 replies] Last: Yes, that's pretty much it. But WINDOW_SIZE/2 is 9/2 which is 4, not 5... (by tpb)
by Seyter
Whats wrong with my code?
 
Works at first, now it outputs incorrectly. #include <iostream> using namespace std; int mai...
[12 replies] Last: your {} for the if statement is in the wrong place. try this: #inclu... (by clonxy)
by mrmatt
"Multiple definition of 'lcd'" - Issue with C++ for Arduino
 
I'm using c++ to program an arduino. I am trying to separate each of my main systems into its own c+...
[5 replies] Last: I have now solved it. Below are the changed I have made: lcd.h: Liqu... (by mrmatt)
by ria1
please explain the example INPUT and Output of this question
 
Link to the Question is -: https://www.codechef.com/AUG18B/problems/KCOMPRES You are given a seq...
[no replies]
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)
Pages: 12345... 26
  Archived months: [jun2018]

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