Beginners - November 2013 (Page 53)

by Avi24
Monthly Budget Program
 
My goal is to write a monthly budget program where the user is prompted to enter in how much they spent in 10 categories, and the program will compare to what i...
[15 replies] Last: Adding in this using same format as above: cout<<"Category\t\t"<<"B... (by Avi24)
Need help with if-else statements with for loop
 
I want the program to do this this: The application requires that the user enters integer mark between 0 and 100 (both marks inclusive). If the mark entered by ...
[6 replies] Last: Thanks everyone i figured it out. And yeah i know that it has lots of ... (by ohnoitsrjay)
Bracketing data
 
Hello, I'm new to the forums but I've stumbled upon a problem I hope you guys can help me solve. I want to take a .txt file I have full of numbers, multiply the...
[1 reply] : I think you confused the starting value of foundMin and foundMax - sho... (by JockX)
Help Please
 
Hello, I'm very confused by my current assignment but have gotten quite a bit done. My question is probably simple so please accept my apologies in advance. I'v...
[no replies]
trouble with c-strings and loops
 
Hello everyone I'm working on a homework assignment and I'm trying to use add employees to a database. When entering an employees name I'm trying to use a C-str...
[4 replies] Last: Awesome! Thanks that worked perfectly (by elMalifico)
by Nefri
3 Strings in one row
 
Hello, is there any simple solution how to get 3 string divided by white space '_' ? Input: Hello bye no s1 = "Hello" s2 = "bye" s3 = "no" i must sep...
[3 replies] Last: Sorry, ignore my post above... Try something like this: #include <... (by closed account N36fSL3A)
Car Payment program help needed
 
Need help with writing a program that calculates monthly car payments. I am supposed to be able to enter the principal amount, then based on that display the m...
[no replies]
Sentinels
 
I'm trying to have the program exit the loop when the sentinel is entered and I'm pretty sure it has something to do with my errorCheck function saying m has to...
[5 replies] Last: In VC++, it won't let me make one without returning 0. (by closed account N36fSL3A)
Segmentation fault (core dumped)???
 
Okay so we are talking about binary trees in class and were told to practice. This is based off of (and is very close to) code that our teacher gave us in class...
[4 replies] Last: That was the problem, however now I have another. I have two different... (by drawinfinity)
"Filling" up the content of an empty stringstream
 
I have the following code chunk from a large project, why isn't the for_each() working? It is supposed to "fill" the stringstream object #include<iostream...
[1 reply] : At the end of the while loop, the ss.fail() flag will be true , it ... (by Chervil)
Space problem c++
 
Hi there,I am new to programming and I am having a lil bit problem with my code, I can't get to use space in the program i am trying to create. Actually i am ...
[1 reply] : Line 19: get first word into variable Address . Line 20: get rest of ... (by Duthomhas)
Unresolved external.
 
This is one of my first shots at modular programming and I keep getting a message that I have an "unresolved external" in the sentenceAnalysis function when it ...
[3 replies] Last: wow!!! it's always those little details. thank you so much. (by Oalvarez)
Errors in class definition
 
Hi everyone, apparently there are 5 errors in the class definition within a header file shown below. So far I have only been able to identify three errors: -...
[8 replies] Last: Sorry for the double post, but I think I have one. So since the constr... (by FatPhysicsBoy)
big arrays = segmentation fault
 
hello everybody this a simple conceptual question, i guess. i have created a class, called Section. and i created a bidimensional array of objects of that ...
[4 replies] Last: oops! it actually seems to be more related to something i found on the... (by Stauricus)
sorting (1,2)
 
i was wondering my prof was asking me to do this two programs and im not sure how to can someone help me? the first is: write a program that will input "X...
[24 replies] Last: There are many sorting algorithms. I like to use a recursive one. t... (by IWishIKnew)
Student Programmer needs help/
 
The whole for loop is messed up and I don't know how to fix it. It is suppose to display like this: Hours-------------Distance Traveled ----------------------...
[6 replies] Last: Thank you so much that fixed my problem. (by kmartar)
Expected primary expression
 
I getting expected primary expression before '=' in line 24 . And after a lot of efforts, I realized that may I am half blind. Please tell me, what primary e...
[2 replies] Last: Thanks, that worked :D (by abeginner23235616)
Inheritance and Constructors
 
I was wondering... If I create a class with multiple variables and a constructor that initializes them. Then I create an inheritance that uses all those vari...
[5 replies] Last: [quote=coder777]private members exists, just cannot be accessed You m... (by The illusionist mirage)
by wolfv
Logic error
 
I came across this problem debugging a larger program and distilled it into the following little example. I was expecting b.print() and a.print() to access t...
[2 replies] Last: Thanks xismn. You read my mind. The following example works as intend... (by wolfv)
by faris
need help for array in derived class
 
i want to know can we declare a private array base in derived class? if can, can you explain to me. p/s: do note this is not a complete code #include <...
[4 replies] Last: But I'd still advise you to look up the topic of nested classes in det... (by The illusionist mirage)
November 2013 Pages: 1... 5152535455... 80
  Archived months: [oct2013] [dec2013]

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