Beginners (Page 88)

Sorry if this is old
I am trying to write a mortgage calculator for my C++ class and I can't figure out what is wrong. Co...
[2 replies] Last: I think you want to multiply the price by the down payment percentage ... (by wildblue)
static variable won't iterate within class func
I just created a static variable within the function defination of one of my class members of my hea...
[3 replies] Last: Just a thought (1 cent worth): If only incrementing by 1, then just u... (by TheIdeasMan)
by Alby94
Why can not I convert the object of a derived class to a base class without using pointers? ...
[2 replies] Last: Duplicate of . Please... (by MikeyBoy)
by Alby94
Cast (Base -> Derived)
Why can not I convert the object of a base class to a derived class without using pointers? Base ...
[2 replies] Last: Because your object o ISN'T an object of type Derived . What you'r... (by MikeyBoy)
Problem with detecting wrong user input
Hello guys, Im writing a function to allow the user to input the contents of a matrix. voi...
[3 replies] Last: i figured it out , thanks guys. Just a silly mistake. Here's the corre... (by Void life)
by enemy
pointers, arrays and elements...
Hello! Please, in first function I created array a. Function is returning POINTER of the array a. ...
[3 replies] Last: [quote=Standard] 5.2.1 Subscripting [expr.sub] 1 A postfix expre... (by MiiNiPaa)
by ccdare
integral promotion question.
If the expression is: short a=11; short b=a; In the second expression, will a first be conv...
[1 reply] : Both a and b are of same type, so there should be no reason to convert... (by keskiverto)
Problem with pointers and arrays
I get an error saying no match for operator<< in std::cout.... #include <iostream> #include...
[2 replies] Last: Oh stupid me, have school now but I'll compile it when I come back tha... (by YellowPyrmid)
by Arcie
If statement with multiple criteria
I am not sure how to ask this. I have been coding since my first post on this forum at 2, working on...
[5 replies] Last: Ok, that's weird... I swear that code wasn't working yesterday! Just t... (by Arcie)
Finding average Temperatures w/ Vectors
I've been working on this project for a while and cannot figure out what to do next. I'm trying to a...
[4 replies] Last: Add: if (temps.size() == 0) return 0.0; somewhere to avoid divide by... (by ShodanHo)
Compiler and tutorials
I have some previous knowledge of c++ but i have had a long break about 2 years but now i wanna star...
[5 replies] Last: It does matter, download the latest release of codeblocks or mingw and... (by nvrmnd)
implementation of a multithreaded version of mergesort.
Hello, Im working on making a multithreaded version of mergesort. [The // Perform "cleanup" wor...
[no replies]
by n30n
c++ class constructor to create date and time
Write your question here. im trying to create two classes: a Date class and a Time class. The D...
[2 replies] Last: And you didn't provide 'Time class' code. (by ak16)
by lomber
Clarification on numbering for header files?
Hi, I have 2 examples here that demonstrate numbering in header files, Ex1 and Ex2. My question, whi...
[1 reply] : Do not include the line numbers. Ex2 is the correct one. (by kevinkjt2000)
by tommyo
c++ string class concantenate
I can't figure out how to write this ConCatenation member function for my Mystring class. I need it ...
[2 replies] Last: Your function is supposed to return a Mystring. Probably you want to a... (by ats15)
destructor in .h and .cpp file
I have 'expression must have pointer type' error so in CCC.h file I have public: /...
[1 reply] : I am assuming taxRate is of type double ? The delete keyword is o... (by kevinkjt2000)
Vector Iterator Not Dereferencable
I'm getting the error as stated in the title at line 80 when I call my binarySearch function. Any id...
[2 replies] Last: A. In a vector, v , v.size() is never a valid index (line 17.) B. ... (by cire)
by stdeez
Sorry for the simple question but for some reason I'm having a hard time finding a reference to show...
[7 replies] Last: It's part of exception handling. You can throw an error for later view... (by Volatile Pulse)
I need help with a couple things.
I have been struggling on this for a while now. First I am confused as to what the section of code ...
[1 reply] : #1 int main() { string phrase; char encodeOrDecode; int i; ... (by Volatile Pulse)
Pascal triangle using recursion.
Hi! I have written this program for Pascal's Triangle using recursion but I m not sure whether it ca...
[2 replies] Last: Yes it gives the right output. Thanks! (by Manav Mnv)
Pages: 1... 8687888990... 120
  Archived months: [feb2014]

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