Beginners - October 2013 (Page 58)

How can I make this program tell me all the pythagorean triples with no repeats?
 
I'm stuck on how I should make this program loop correctly to make it show all the triples of the pythagorean theorem that make perfect triangles. My instructor...
[9 replies] Last: I think I got it... I was just overthinking a lot of things but I unde... (by Emma Naylor)
"If while" statements problem
 
When I run this program, it lets me enter in all the variables, but then it starts a new line and won't do anything else. Not sure what the deal is. #i...
[no replies]
by wolfv
Pass data from child to parent?
 
The following inheritance example works for the application I am working on. The parent gets the child's data via getElement() function. But each child has an i...
[1 reply] : I understand part of what you are doing, and I certainly understand wh... (by Stewbond)
Understanding Code/Class definition
 
Hi, I'm trying to understand how the following declaration works. First class name1::name2{}, how do I interpret that. Second the first public member is just a...
[1 reply] : class name1::name2{}, how do I interpret that It is a qualified name ... (by MiiNiPaa)
by Yugaeh
Isdigit for checking number/letter
 
I'm doing a program that when letter/s is/are entered the program will not acknowledge it and it will say: "You're so stupid! You didn't answer my question co...
[1 reply] : Firstly digits are 0-9 ( lines 11-20 ). Secondly isdigit function is u... (by giblit)
Help with switch and sorting
 
I need to create a program that computes terms of the fibonacci sequence both recursively and iteratively for the first 45 terms. It needs to do each term 6 tim...
[3 replies] Last: @NwN On your last snippet, I would consider replacing int highest=0, ... (by booradley60)
Map nested in a map
 
I am trying to nest a map into a map. However I do not understand how can I insert something in it? This is how I am declaring the map std::map<int,std:...
[7 replies] Last: I figured out the problem.. i need to use the iterator of the map_data... (by noisycoder)
What is wrong with my code
 
I am really new to the C++ programming. I have a code that was done but for some reason I cant get the code to produce the final employee data results. What a...
[no replies]
What is wrong with this? Array issue.
 
The assignment is to truncate the decimal for each number, which I did by assigning an integer value to the array. The next part of the assignment is to reduce ...
[6 replies] Last: Wow, I can't believe I didn't notice that. You're a life saver, man. T... (by Cryptik)
How NOT to Ask Questions (For Dummies)
 
Feel free to add more excerpts. Excerpt 1 Guys, I need to find the sum of all the multiples of 3 below 1000. Here is my code: #include<iostream> ...
[3 replies] Last: Articles: How to use code tags http://www.cplusplus.com/articles/z13... (by Chervil)
Why my program read files incorrect
 
Hello i have a really seriuos problem. My program reads files incorrect Why? Here's my txt file Tr1 6 1.5 -5.5 5 -1.4 8.5 -5.2 Aps3 3 5.5 -5.5 10 Kt4 8 -3....
[2 replies] Last: Ok SamuelAdams, I have uppladed all my program there http://www3.zippy... (by deividas717)
Alignment and columns in C++ Problem
 
Hiya guys, Well I need some answers regarding alignment. I have read a bit about it but I can't seem to make it become like I want. I have put ta sample ...
[7 replies] Last: He wants it to be aligned to the left. Something like 10 width and val... (by giblit)
Help with output file formatting
 
Hello all, hope you all are well. Here's my problem: Write a simple text-formatting program that reads a text file and produces another text file in which bla...
[3 replies] Last: You need to read in one word at a time. Then check the size of the st... (by SamuelAdams)
by Ruoter
Put condition on int about its range
 
I made a program which gives grade after checking marks. The condition i want for the first if statement should check if the value of the variable 'marks' is be...
[2 replies] Last: oh... that was much simpler than expected. :D thanks (by Ruoter)
by Anna22
undefined reference to neededPaint()
 
What does 'undefined reference to paintNeeded()" mean here? I'm trying to call the function from the main passing reference variables. Trying to get this part ...
[2 replies] Last: Now I get too many arguments to function "void" with paintNeeded(are... (by Anna22)
Cant find the error(s)!!!
 
The assignment is: Write a program in C++ that inputs a value into a variable n and outputs the cube (n*n*n). Make sure the user of your program knows when to e...
[2 replies] Last: "Write a program in C++ that inputs a value into a variable n and outp... (by jvjvalerio)
by ephekt
overloaded bool operator
 
can someone please tell my why this is not working? It is telling me "expected primary expression before else" I think it is just returning the value that i typ...
[6 replies] Last: awesome thank you that makes it a lot easier to understand. I now see ... (by ephekt)
by Codeez
adding to map< string, <vector<string> >
 
One of the exercises in my book is Define a map for which the key is the family’s last name and the value is a vector of the children’s names. Write code ...
[2 replies] Last: Thanks. Yup I can use initializer lists, I just assumed they wanted us... (by Codeez)
Output Problem
 
My program is supposed to read from an input file and output the minimum value, maximum value, the mean (sum of the values divided by the number of values) and ...
[3 replies] Last: I tried setting the min to the max value and now it works. Thanks for ... (by BrotherFromAnotherMother)
string problem
 
This question is about a class and I did good but my problem is when I am giving information from keyboard it is working fine when I put my gpa, it does not ask...
[no replies]
October 2013 Pages: 1... 5657585960... 86
  Archived months: [sep2013] [nov2013]

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