Beginners (Page 85)

by Salad7
If i pass a value into the constructor of a sub class...
 
Example::Example(int y, std::string z) { age = y; name = z; ------If i do this to the construct...
[1 reply] : The answer is: whatever you need. If you need to modify data after cre... (by MiiNiPaa)
Monthly Payment Loan
 
I'm doing the Loan Monthly payment homework. Everything works fine, but the formula just doesn't wor...
[5 replies] Last: P = ( r * A ) / ( 1 - (1+r)-N) Where, P = Payment Amount A = Loan ... (by lonelylense)
how to find position of newline in string (getline)
 
Write your question here. I need to find the position where enter where pressed to get newline. an...
[11 replies] Last: Post the answer and mark the question as solved. (by Yay295)
by Salad7
Passing in a pointer parameter to set it to another parameter
 
Lets say we have a class named Test. I want to pass in a pointer of type int so i can set the parame...
[2 replies] Last: I figured it out i was confused with pointers at the time (by Salad7)
shuffle
 
Define a function int * shuffle (int * p1, int length1, int * p2, int length2) that "shu...
[2 replies] Last: You must use pointer notation throughout the function (no square brac... (by Disch)
Pascal's Triangle
 
Define a function int ** pascal(int rows) that returns a triangular array containing the...
[no replies]
Calculating Volume and Surface Area of a Sphere
 
The surface area calculation is calculating right but my volume is off for some reason. Can someone...
[4 replies] Last: Yes, your method will work too. The key is to avoid the integer divisi... (by dhayden)
Static variables
 
I get garbage values when i don't declare the variable as static in my function and call it from mai...
[2 replies] Last: #include <iostream> void showstat(int curr) { int nStatic; nSt... (by kemort)
Calculate Fibonacci with dynamic array and recursion
 
Here is a program to calculate the fibonacci number. I use a int function to calculate the fib num a...
[2 replies] Last: Thank you, Yay295. I finally figure out the function cal, I forget the... (by heisadobe)
Invalidating non numeric input entries
 
Hi, This is one of my first lab assignments. I was to create a very simple program to asks for th...
[3 replies] Last: Thank you (by netomilt)
loop
 
I need help with an infinite loop for some reason my stopper will not let it exit. #include<iostr...
[4 replies] Last: I got it to work with the while(stopper !=3 && stopper != -1) Thank ... (by mtbrooks1993)
by Rob101
Help with limiting my cin to just integers
 
Hello All, This is my first post here, and I am about 3 weeks into learning C++. I wrote this pro...
[2 replies] Last: Using exceptions for this is not only overkill, it's downright wrong. ... (by LB)
Error checking for Prime numbers
 
Hello. For my class I had to write a program that asks for user input of a number. It then checks to...
[6 replies] Last: I changed the test variable to number and now it is working. Thank yo... (by MissPrimrose)
by davez
loop practice
 
hey guys i need to practice looping can someone give me practice problems using loops heres a list...
[no replies]
Help with Sentinel Value!
 
I have a couple of issues that i need to fix.This program finds the average of a number desired by t...
[3 replies] Last: #include <iostream> #include <cstdlib> using namespace std; int mai... (by shadowCODE)
Using Reference Types as return objects
 
I'm a little confused about reference types, I saw in the C++ tutorial on functions that you can pas...
[2 replies] Last: First, I don't think the tutorial ever talked about these "temporary v... (by msknapp84)
how do i store a result in a variable
 
calculate the value S according to the formula S = (1.0/2)*a*t^2 and store that result in the variab...
[12 replies] Last: wow i cant believe i forgot about that. thanks i finally finished it (by LATCH100)
by Salad7
Whats wrong with this pointer reasoning?
 
Just when i try to understand pointers =/ int a = 5, b = 10; //A = 5, B = 10 int *p1, *p2; ...
[8 replies] Last: thanks (by Salad7)
How to check for a prime number?
 
I need to write a program that asks user input of a number, checks if it is prime, and displays a me...
[2 replies] Last: EDIT: I solved this issue. (by MissPrimrose)
by yaaz32
Adding values to a listview1
 
Hi I'm new to windows programming. I have a numeric drop down and a combo box. How do i use tha...
[1 reply] : You might bet better help on the Windows specific forum: http://www.c... (by Yay295)
Pages: 1... 8384858687... 104
  Archived months: [aug2014]

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