Beginners - April 2014 (Page 19)

finding the average using an array?
 
hi i need help finding the average using numbers from an array. this is what i have so far. please help. thank you. the problem is on line 30 the formula on ho...
[3 replies] Last: ok just finished it up thanks a lot (by JulyZerg)
Explain Program count chacracter, please
 
when i start running the program, i can't exit while loop when input character, so the program isn't print the value of nc. #include <stdio.h> main()...
[3 replies] Last: Ok, Thank all (by CongDao)
How to ignore extra data inputted by user
 
I can't believe how long I've spent on this... Problem asks for user to input a 6 digit account # and only a 6 digit account #. I assume my teacher is going to ...
[4 replies] Last: #include <iostream> #include <iomanip> #include <cctype> int main() ... (by JLBorges)
Trying to understand lists
 
For my homework in C++ I am required to complete a program provided by my professor. The first part of which requires me to return a pointer to the beginning of...
[19 replies] Last: If I want the program to print the words in alphabetical order but wit... (by mrspam)
by Subo93
Read and select a data from a file
 
when I input rn,i dont get any output.. in Africa.txt i have saved 1 Su 1000 1203 20.3 2 Qu 3904 4345 11.2961 3 Anshu 6895 6905 0.145033 4 Sahoo 5644...
[7 replies] Last: Thanks.. it works... thanks for your time... ! (by Subo93)
How to get my if statement to repeat
 
Basically the question is "Chocolate Delights Candy company manufactures several types of candy. Write a program that accepts a candy number (whole number o...
[2 replies] Last: The program runs correctly only displaying the last cout if the input ... (by darthaq)
Finding spaces and digits
 
This is only part of my code but I need to check the input of inPin and make sure the user only inputs digits (integers) and if he doesn't then I give an invali...
[1 reply] : look at <cctype> (by Little Bobby Tables)
by Subo93
If statement
 
...
[2 replies] Last: Thanks.. (by Subo93)
Two input streams into a function
 
Very noob question: Two input streams and one output stream. It reads the characters from each of the two inputs and compares them. #include <iostream> #in...
[6 replies] Last: "It reads the characters from each of the two inputs and compares them... (by siphenx)
NEED HELP Please
 
This program is supposed to find the sum, min, max and if its odd or even. Must ask the user to input 10 numbers. I keep getting zero for min. Can someone help ...
[1 reply] : BlueWizard, you asked about this program already. If you have more que... (by PrivateRyan)
by Baso
C++11 before old C++.
 
Would it be okay to start learning C++11 or I have to learn old C++ first?
[2 replies] Last: The question doesn't really make sense. They are both 'C++'. The only ... (by TwilightSpectre)
Prime factors using stack
 
Write a program that uses a stack to print the prime factors of a positive integer in descending order. #include <iostream> #include <stack> using names...
[2 replies] Last: Can you use a sieve to generate the prime numbers then add to stack? A... (by giblit)
Sorting strings
 
Write your question here. Write a method to sort an array of strings so that all the anagrams are next to each other. My problem is why we should use &s1 i...
[2 replies] Last: Thanks a lot. It is clear and understandable. (by andrewlin2011)
For loop declared variable reference
 
Hello all. I'm writing a simple function to calculate the co-volume parameter for a mixture, but I can't seem to remember how to reference one of seven variable...
[1 reply] : Put each type (p1-p7, b1-b7) into a seperate array/vector and access t... (by Hippogriff)
by venros
Recursion Function with an Array - Help
 
Hi The first time the function recurses it changes the searchValue to 1 instead of 5, I really need help with this. thank you, #include <iostream> ...
[3 replies] Last: That's good! you are welcome! (by eyenrique)
by bozz51
Help1
 
How can I display my eight numbers in three columns? 12 13 15 17 18 15 18 19 I get them to display correctly I just can't seem to get them in three c...
[8 replies] Last: Chervil, Again thank you... (by bozz51)
I need Help with my code please
 
I am new to c++ programming and at the moment I am using windows.h to make a simple RPG game. At the moment I'm having trouble because I want to make sure that ...
[no replies]
what is best used in a loop
 
What is best used to regularly add and remove integers, such as array, vector, list or other? but it also has to be able to do things such as for eg. vector.siz...
[3 replies] Last: it depends on where you are removing/adding. There is push_back and po... (by giblit)
How to write on text file
 
I want to have this output on my screen but my code is not working correctly, could anyone help me fix this code. Heres what I want to display: Round 1: ...
[no replies]
LNK2019 and LNK1120 error
 
I am writing a program that implements merge sort for my C++ class, and receive LNK2019 error for an unresolved external symbol _main referenced in function __t...
[1 reply] : Update: I now see that I cannot template main(), so I remove that temp... (by RobertErvin)
April 2014 Pages: 1... 1718192021... 67
  Archived months: [mar2014] [may2014]

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