Beginners (Page 7)

Missing 0 When Printing Out?
 
I have to write a program that takes two times in HH:MM format and tells the difference between them...
[1 reply] : #include <iostream> #include <iomanip> // for std::setw, std::setfill... (by JLBorges)
How to change pointer from vector element to vector. (1,2)
 
I've written a function which gets back a reference to a location in a vector. I want the pointer to...
[21 replies] Last: I'm inclined to avoid creating a new hand class at all: a hand is noth... (by mbozzi)
by j rod
Mode
 
Hello. I have written some code to find the mode. However I want it to output every mode. Exampl...
[2 replies] Last: gunnerfunner I am not very adept at c++. I was not sure how to implem... (by j rod)
by logana
C++ Array problem???
 
I tried this Array entry method, where it asks for a colour then you press return and put in the rem...
[2 replies] Last: Thank you Chicofeo; that is very neat. Nice code! (by logana)
by Meden
Beginner's cin validation
 
I am wondering if someone could write a very simple example of an entry validation function. I am t...
[5 replies] Last: thanks again cire. your suggestion is undoubtedly more elegant and rob... (by gunnerfunner)
Dynamically Allocating for Multi-Dimensional Array
 
I have this piece of code that may or may not be correct (feel free to comment on it, but that's not...
[1 reply] : Something like this, perhaps? // Run again with Runge-Kutta (vari... (by cire)
by leyla2
collision detection
 
Hello, my program doesn't have any errors but for some reason I am stuck on this collision detecti...
[10 replies] Last: I come here to learn too. I learned c++ way before the STL existed, a... (by jonnin)
Comparing user input always equals false. Why? (1,2)
 
I can't figure out why when I try to compare the users input answer to the answer in the array it al...
[39 replies] Last: Thanks for all the help guys. I got my program completely working as i... (by pleaseINeedHelp)
sum equation
 
I believe my sum calculation is not working and I would like to know what I am doing wrong. please a...
[1 reply] : line 30: your 'Sum' function is of type void and then does not return ... (by ar2007)
Generating 100 million unique random unsigned integers
 
Hello guys, i am thinking of building a program where i would take up data for people in the million...
[16 replies] Last: Thanks guys for putting up such an educative debate. Special thanks to... (by blongho)
Problems with 'while' loop.
 
I have included the code I have started along with the output and output expected. My first month ke...
[6 replies] Last: Changed the code to the following and everything is compiling like it ... (by maschneid)
Count sentence.
 
Write your question here. Hello all, I have a homework which is counting sentence based on the dot...
[2 replies] Last: use std::count() http://en.cppreference.com/w/cpp/algorithm/count (by gunnerfunner)
Process a data set of random numeric information
 
It should start by creating an array that can hold a maximum of 100 double or float elements. There ...
[1 reply] : so the steps in your program would be: 1. declare double myArray whic... (by gunnerfunner)
What does cout<<" "; mean?
 
Truly a beginner's question.So,if i dont use cout<<" "; the program would be wrong,why is that,why...
[1 reply] : It just outputs a space. (by helios)
Parallelogram using For Loops
 
I'm trying to write a program to output a parallelogram. It's suppose to be of a size the user chose...
[4 replies] Last: Here's a couple of other obscure variants. I'm still working on a recu... (by lastchance)
by Arcy
Loop/array question
 
Hi everybody! A coding noob trudging through his first attempt at programming with the help of St...
[6 replies] Last: Thank you for your help, AbstractionAnon. I think I understand what mi... (by Arcy)
Assign all values ​​in a dynamically allocated 2d array at one time
 
So, I have a dynamically allocated matrix. How do I avoid having to assign the values ​​one by o...
[6 replies] Last: #include <iostream> int main (int argc, char * argv ) { int row_... (by kemort)
Program that determines if number is prime. How do I make it work for multiple numbers?
 
I have a homework assignment to see if number is prime and it needs to be able to analyze one or mor...
[2 replies] Last: bool is_prime(int num){ //lines 19--24 return count==2; } int ... (by ne555)
How to Read a sentence in a .txt file HELP!
 
** How do i Read a sentence in a .txt file??? My output is just "INeed" now im pretty sure its a ge...
[1 reply] : inputFile.open("File.txt"); inputFile >> one; inputFile >> two; You... (by mbozzi)
For loop output?
 
After for loop is run, what will be the values in the array? int number = {1}; for(int i =...
[1 reply] : Try it. 0 0 4 0 8 (by joe864864)
Pages: 1... 56789... 70
  Archived months: [jan2017]

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