Beginners - February 2014 (Page 29)

Cannot open image
 
Hello again! I have done all examples from chapter 12 (Programming -- Principles and Practice Using C++) with success. But now that I've tried to open an im...
[18 replies] Last: All I can think of your problem is the image file path. Have you ever ... (by EisenhowerPDF)
Bsort Bubble Sort Function Help!!
 
I have made a bubble sort user defined function program, which will arrange elements of array in descending order but it can't arrange it in descending order. P...
[3 replies] Last: Thanks for the replies, I appreciate your work, but also I figured the... (by Xylotron)
by jcam93
Total Purchase Program help.
 
I'm a complete beginner at this and this hw assignment we are to use five variable to come up with the subtotal, sales tax with it at 6%, and total. We are give...
[2 replies] Last: Most likely, you're just looking at some normal compiler messages and ... (by long double main)
by phooh1
Stats on number series
 
I am working on this so that a sample number can be entered. Then the user can input a series of number up to the sample. It would then display the max, min, su...
[18 replies] Last: Ok, Thanks for the help. (by phooh1)
recursive to count down
 
Hello all, I am trying to write a recursive function to count down a number n to 1, if the number n is 10, it should be: n, n-1, n-2, ..., 3, 2, 1; This is ...
[4 replies] Last: Actually, the problem is that the function doesn't actually count down... (by long double main)
Input/Output File Help!
 
I have the following code and I need to copy the output file to the original input file. My program works in Visual Studio but not in the linux terminal using ...
[no replies]
op overloading error
 
I am not sure why i am getting an error. I dont require it to be a friend, since the settings are public, but assuming if it later became private. #inclu...
[2 replies] Last: ah thanks. (by metulburr)
included headers in the latest compilers
 
I always use to include string when declaring strings, however i noticed (after forgetting to include string) that my compiler ran it just fine without includin...
[5 replies] Last: thanks for the info. Ill make sure to include the headers still to mak... (by metulburr)
Help
 
#include <fstream> #include <iostream> using namespace std; int main() { int a, b, s; ifstream fd("Duom.txt"); fd >> a >> b; s = a + b; fd.close(); co...
[1 reply] : It should be in the working directory of the program -- generally spea... (by long double main)
Passing Object to Class Constructor Problem
 
I have this weird error that is messing up my program. When I pass a class object set to an int array and an int the program is not assigning them to the priv...
[2 replies] Last: Ok, I got it to work. Thanks for the help. (by BreezedStars)
Difference between step over and step out
 
Learning how to use a debugger and I am trying to figure out what the difference between step over and step out is because they look like they do the same thing...
[no replies]
pointers pass by value
 
I have two concerns I passed pointer as argument by value in the code below in function initNode, addNode and several others the argument im thinking were pass...
[no replies]
Student Needing help
 
I am writing a program for class and i need help. The instructions say; Design a class called Heading that has data members to hold the company name and the rep...
[6 replies] Last: I corrected that in my program after I saw it in my post but forgot to... (by kmartar)
Why would I need to alter bits?
 
I'm referring of course to the bitwise operators in the beginners section of the tutorials. I know what they do and I know that there's a useful shortcut usin...
[no replies]
Need Help with Dev c++
 
Write your question here. This is what my instructor gave me to correct and debug, I have no clue what to do, I am so lost I passed the tests with questions bu...
[2 replies] Last: Thanks jdwright (by cgolz64)
Vector elements
 
How can I check, if all the elements in a vector are equal to each other or not?
[3 replies] Last: Adding to the previous answer: If you have a large vector, you can re... (by Daleth)
Passing 2D Array - Error
 
I am passing the array ary into the function fillArray and am getting a "No matching function for call to.." error at the point where I call the function in...
[3 replies] Last: Guys, disregard ^. Stupid mistake on my part. (by jdwright)
hospital
 
hi I have to create a hospital file and I have problems implementing my add doctor functions here is my doctor.h file * * doctor.h * * Created o...
[1 reply] : Why does a Doctor class have an addDoctor function? What is this funct... (by Daleth)
HELP D: ifstream
 
well, I did a program that reads as many lines of the file you specify. the program is 99% perfect but this little bug is stressing me. if you would like to se...
[3 replies] Last: LOL yes I am sorry I need to correct that XD about the ENTER and thank... (by closed account ivDwAqkS)
Fraction class?
 
fraction class
[1 reply] : why not call your operator << and >>??? ostream& operator<<(std::ost... (by giblit)
February 2014 Pages: 1... 2728293031... 60
  Archived months: [jan2014] [mar2014]

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