General C++ Programming - April 2016 (Page 8)

Declaring an object in a class
Hi there. I have 2 classes in 2 separate header files and I am trying to declare an object of one of the classes in the other class. However whenever I try to ...
Apr 21, 2016 at 4:19pm
[9 replies] Last: You're welcome! Glad it worked out :) (And sorry if I was overly sar... (by MikeyBoy)
by kgrl
converting matlab code to c++
Anyone can convert the following matlab code to c++ ? Thanks! ************************************************************ function [ v d] = power_meth...
Apr 21, 2016 at 1:53pm
[no replies]
Non member function error - Overloading Polynomials
My intentions of this code is to use overloaded operators for assignment, addition, subtraction and multiplication of polynomials. What I have done so far are t...
Apr 21, 2016 at 11:14am
[4 replies] Last: So where does ptrValue = &Value; go in the program? Anywhere you wan... (by MikeyBoy)
What is the C++ code to obtain gray scale image pixel intensity values using CImg library ?
Hi, everyone I’m a beginner to C++ and raspberrypi, Here I’m working on a project to capture the real time images using Raspberrypi CSI camera and to perfor...
Apr 21, 2016 at 10:53am
[2 replies] Last: Hi Moschops, that's great ! thank you so much, it is good for obtainin... (by blvlohith)
Bunny objects exercise; MSVC bug?
I decided to try implementing the list of bunny objects from this list of exercises (http://www.cplusplus.com/articles/N6vU7k9E/ ). Here's the code. http://pas...
Apr 21, 2016 at 9:59am
[2 replies] Last: That seems to have done the trick. Thanks! It seems I hadn't read the ... (by jeffm712)
problem
can someone please tell me what I am doing wrong! the second part of this program on the drivers license exam is suppose to display the total of incorrect and c...
Apr 21, 2016 at 8:55am
[1 reply] : if (studentAnswers == 'A' && studentAnswers == 'B' && studentAnswer... (by Thomas1965)
by homing
anyone here uses include-what-you-use?
Hey, Has anybody tried incude-what-you-use? https://github.com/include-what-you-use/include-what-you-use It detects unnecessary #includes and tells you w...
Apr 21, 2016 at 6:44am
[no replies]
How to count words in a file.
I have been looking around for example of how to read a file and count how many words in a sentence, my understanding is counting how many white characters. Is ...
Apr 21, 2016 at 5:04am
[1 reply] : I'm not sure that's a good method actually. What if someone types He... (by SamuelAdams)
Array Binning Problems
Hello, For a class I am having to make a simulation of a lab we have done. The problem I'm having is increment the value stored in each bin. It seems to ke...
Apr 21, 2016 at 4:54am
[1 reply] : Solved (by paintballer008)
Help please
One litre of fuel is 0.264179 gallons. Write a program that will read in the number of litres of petrol consumed by the user's car and the number ofmiles trave...
Apr 21, 2016 at 3:08am
[1 reply] : Use meaningful, specific subject headers The subject header is you... (by integralfx)
Help
A group of friends and I made d a c++ text based rpg game and we were wondering how to put it in to functions to make it easier to edit Here is our algarithem {...
Apr 21, 2016 at 1:00am
[no replies]
help me
Write a program that presents the user w/ a choice of your 5 favorite beverages(Coke,Water,Sprite,...,whatever).Then allow the user to choose a beverage by en...
Apr 21, 2016 at 12:48am
[1 reply] : Your 2 posts so far belong in the beginners forum. You should probabl... (by cire)
rename() and remove()
When using rename(oldlocation, newlocation) to move one path to another path, is it necessary to use after this the remove(oldlocation) command? In other words,...
Apr 20, 2016 at 10:34pm
[9 replies] Last: Thank you both for your kind assistance. (by glasses)
Better understanding the STL
Alright, so this is a topic where I have very little exposure. So I feel like I need some sort of guidance to understand it all. This has happened to me more...
Apr 20, 2016 at 10:25pm
[2 replies] Last: At this stage, I suspect you won't get much understanding of the STL b... (by Moschops)
by zantax
How to create a Multi-User Program
I've taken a a couple basic classes in c++ and I was looking for a bit of a bigger project to test my skills. I had an idea for a program to help out in the off...
Apr 20, 2016 at 8:49pm
[1 reply] : First, you have to be aware that if anyone ever takes out a file witho... (by fredk)
by merm
min-max heap implementation
I'm trying to get the logic for the min-max heap (min is the root max is the next level and so on). I am confused about the percolate up and down aspects of the...
Apr 20, 2016 at 5:32pm
[2 replies] Last: http://lmgtfy.com/?q=min+max+heap (by doug4)
Trying to deal with a random number generator
#include <iostream> #include <ctime> #include <cstdlib> using namespace std; int main() { int amount; int IntegerarArray ; unsigned seed; int randominteger, ...
Apr 20, 2016 at 3:36pm
[1 reply] : There are a number of errors in the program. It also doesn't follow th... (by Chervil)
HELP !!
hey im trying to write code im a beginner and need some help I want to create 3/4 classes the first class would be class 1 At start …enter 12345 ...
Apr 20, 2016 at 2:38pm
[no replies]
Get paid for making me a working program??
Hey guys I'm curious if anyone would want to make me a program for some easy money. It shouldn't take too long, it would mainly consist using functions to read ...
Apr 20, 2016 at 1:29pm
[2 replies] Last: It shouldn't take too long, it would mainly consist using functions t... (by doug4)
by sag12
cin, arith. expressions
Can anybody help me with this problem?: Write 2 C++ statements for reading input and the quadratic equation (both roots), filling the blanks below, after the...
Apr 20, 2016 at 12:31pm
[1 reply] : Are you serious about not having a faintest clue on how to use std::c... (by keskiverto)
April 2016 Pages: 1... 678910... 23
  Archived months: [mar2016] [may2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.