General C++ Programming - September 2013 (Page 15)

Formatting PI
 
Hey guys, I'm working on a project that requires the user to determine how many numbers are after the decimal place in PI, defined as 3.1415926535897 Here is...
[3 replies] Last: Okay, these really helped. However, my output for line 28 comes out to... (by VincentOrfeo)
by adn258
I don't understand Double Pointers?
 
So I understand pointers for example int a = 10; int* b; b = &a; Now b holds the memory address of b and if you wanted the value you could deref...
[2 replies] Last: First of all, there's no such thing as double pointer. Put the idea o... (by kbw)
Assignment operator
 
why do we Check for self-assignment during the overloading of assignment operator ??? means Cents& Cents::operator= (const Cents &cSource) { // check ...
[4 replies] Last: Or with C++11, copy and move. Though checking for self assignment is ... (by Disch)
Arrays
 
I want to check if an array of numbers input by the user is increasing. This happens if each element of the array contains a value that is larger than the v...
[1 reply] : You define "max" and "arraysize" as global variables. Don't. It is ne... (by keskiverto)
Extracting from loops
 
so i have a loop that will run x number of times and each time it will produce a prize which is a certain sum of money. I need to a way to sum all the money ear...
[2 replies] Last: perfect thanks! (by Brennen Barney)
by wade21
For Loops
 
Hello im having a problem with a question in an assignment was wondering if anyone could help me. Question: Write a program that contains the following for loop...
[2 replies] Last: replace the i with j or 1 and than chek it (by bilal5914)
Help: 4x4 Matrix Inverse Implementation
 
I'm implementing a 4x4 matrix class and all is going well until the inverse function turned up. I'm trying to implement the inverse function, but I can't seem t...
[3 replies] Last: @ ne555 : Thanks for the response. Using Gauss-Jordon in a way that's ... (by closed account zb0S216C)
newton raphson method high level design
 
Hello, I was asked to create a c++ design of a newton-raphson method using object oriented programming. I need to make only a design of classes like paramet...
[2 replies] Last: I think you only need 1 Term class class Term { public: Term(..... (by doug4)
by heidiK
Online C++ Test Questions
 
Hello Everyone, I recently gave an online C++ test. Below are few of the questions I need help with. Could anyone please explain to me the correct answers? 1...
[1 reply] : Have you read the C++ Tutorial on this site? It covers nearly everythi... (by LB)
Help with setting all elements of array to 0
 
Hi, I'm trying to set all the elements of my array to 0 but nothing seems to be working. Could greatly use some help. Thanks! .h #ifndef ServerGro...
[9 replies] Last: [quote=cbretana]the structure of fill is just like this: fill(arra... (by LB)
Arrays
 
I have a data set int arr ={0, 9, 2, 1, 8, 1, 10, 0, 5, 0} and I need to find the greatest drop which is 7th element but my code does not work. Anyone can s...
[2 replies] Last: ok will do. thanks (by ukalkan)
Help Tracking Mouse Input
 
Hi all. I consider my self a novice programmer, and I want some help putting together a project. I want to make a Memory Card game were you compare two card...
[4 replies] Last: I'm a windows guy. I'm not too good with Linux yet, and I despise Appl... (by zared619)
by hah49
reading characters from files
 
hello , i have a file containing some words and some features of this words .. i have created a class to collect this features together and i have created a...
[no replies]
How would I write this program (detailed description in content)?
 
Lets say my C++ program asks the user for a list of words or a file containing words. The user inputs as many words they want, and we don't know how many lette...
[2 replies] Last: This should give you an idea: #include <iostream> #include <string> ... (by Mats)
How to print structure with function?
 
I'm trying to pass my structure to a function using switch method, so that It will ask for user's name and age then then from the switch method it will call a ...
[7 replies] Last: I'm 99.9999% certain that your book will tell you how to pass paramete... (by MikeyBoy)
Help i would like function MODE excel in c++
 
Ex. 3 4 5 6 6 7 run , answer is 6 Thank you very much
[9 replies] Last: ok, i will attempt think oneself thank you very much (by thammanoon)
interconnectivity between two machines
 
I have two machines one computer acting as a server(just processing data and sending responses automated) the other I have have running a client app that will ...
[1 reply] : I don't quite follow what you are trying to ask here. But it sounds l... (by ajh32)
by DIP RO
Operator Overloading(Important)
 
Hi, guys, trying to understand operator overloading, and i wrote some code just to define a "-" operator to do a simple subtraction. SO, i wrote a program that ...
[2 replies] Last: Thank you very much:) (by DIP RO)
Class template friend operators
 
The code below doesn't compile. I would like to understand why and how to fix it. Thank you. Two things to clear up: 1) I know x is going to be garbag...
[3 replies] Last: The error tells you what's wrong: On line 10 you have a second templat... (by coder777)
Merge Sort Problem
 
Hello everyone. I had question about the "MergeSort algorithm". In this algorithm, you are meant to split a data structure (in this case a list) in half, and...
[2 replies] Last: Sorry, I figured this problem may have been a bit complex for the begi... (by unsensible)
September 2013 Pages: 1... 1314151617... 36
  Archived months: [aug2013] [oct2013]

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