General C++ Programming - October 2014 (Page 13)

Visual C++ 2013 and templated member function definitions
 
I am not sure if this forum is the right place to ask this, as - necessarily - the advice and help given here is compiler agnostic. However I am sure many of y...
[4 replies] Last: I can see what you are saying - and agree for the most part. Even wit... (by Gemman Aster)
Cannot access protected members of parent class.
 
Good day I have a question regarding classes and inheritance. I am a student, but the question does not relate to homework or an assignment. I am doing C++ d...
[1 reply] : You can use this->first or linkedListType<T>::first or orderedLin... (by Peter87)
Converting feet to inches as a decimal
 
I have my program all but done, but I can't get past this last part. I need to have the user input their height as a decimal. For example someone who is 5 foot...
[4 replies] Last: Be careful with single-digit inch values. Would 5' 1" be written as 5... (by doug4)
help with queue declaration
 
in my main i have this PCB1 pcb; in another header file I have a class PCB1 . in another header file, I have a class ready_queue and I did this : queue <...
[2 replies] Last: in another header file, I have a class ready_queue and I did this : ... (by MikeyBoy)
Reading BMP binary problems.
 
Hello, i wrote a program which reads binary info from BMP image, it reads the header bytes, RGB bytes, but I cant find the width and height on the image in the ...
[2 replies] Last: Yeah, i read it byte by byte, and i should have read 4 bytes (by hakeris1010)
How to make task bar?
 
i want to make task bar just like in Windows 7. I have no idea how to start . I am using Qt .Any Help ? Thanks.
[no replies]
How to initialise dynamic arrays of objects?
 
Hi. Say I have a class called Play now I have a constructor called Play(int, char, int); I create Play play=new Play ()//default const Now i want to in...
[5 replies] Last: http://www.informit.com/articles/article.aspx?p=1852519 (by keskiverto)
OpenMP - Linker Errors for MathGL
 
I'm getting a bunch of linker errors when compiling MathGL with it's dependency OpenMP. From what the below says, I need to add linker flags to the build p...
[5 replies] Last: I ended up using this solution: http://mingw.5.n7.nabble.com/MingGW-a... (by dominover)
So So close. I think.
 
PLEASE IGNORE I COPIED AND PASTED WRONG.... Hi everyone. First off I am sorry that this code is no where near beautiful. I am a new cs student who is just t...
[4 replies] Last: No problem. :) (by closed account 48T7M4Gy)
mean and median for test grade (1-100) students
 
// I cannot figure out what I need to change. // I cant get it to count the number of scores it puts in instead it says "enter next score" // How would y...
[no replies]
vector of the highest path in a bin-tree
 
Hi all, I have a function signature: vector<int> tree_highest_path (Node *root); which gets a pointer to a binary-tree root.(the struct is:[int id, Node *right,...
[3 replies] Last: > What is this path in 1st line? a proper structure that would store ... (by ne555)
How to drag a pattern read from file by mouse In OpenGL
 
#include <stdio.h> #include <stdlib.h> #include "fssimplewindow.h" int ParseString(int &nWord,int wordTop ,int wordLength ,char str ,int maxNumWords) { in...
[no replies]
by jaystu
Input Validation for 5-digit PIN number read from integer
 
The problem states that i need to accept any pin number between "00000" and "99999". I need to read the PIN the user enters as an integer. The problem is that...
[2 replies] Last: Thank you so much, greatly appreciate your help (by jaystu)
by Shyckh
ellipse fit method understanding urgent help
 
please can any one help me on explaining this code in this link https://github.com/eyewriter/eyewriter-1.0/blob/master/src/tracking/FitEllipse.cpp
[1 reply] : http://eyewriter.org produced their eye tracking program as part of th... (by closed account 48T7M4Gy)
Artwork Program (Inheritance)
 
This program compiles and runs until the user inputs the media, material, or type then it crashes. Please help. #include<iostream> #include<string> using ...
[4 replies] Last: so I fixed it... here is what I I came up with: int main() { int ch... (by dub1987)
Initialization Error
 
Ok,I am currently studying the book Beginning C++ Through Game Programming. The Lost Fortune program is as follows: -------------------------------------------...
[2 replies] Last: Ok, I get it now. I really appreciate that. I need to pay better atten... (by Vesuvius803)
by Glaven
Find Smallest Number in 2d Array
 
I need to generate a grid of 10x8 and fill it with random numbers (max 70) then i need to find the smallest number within the random numbers generated an...
[4 replies] Last: You nee help understanding the dimensions of your array. Read this tu... (by doug4)
Newton Raphson recursive function
 
Hello, I am trying to write a function which will perform the Newton Raphson method for finding the roots of a polynomial. This function should be recursive....
[3 replies] Last: you were doing this before: if (...) { newt(xn, accu); return 0;... (by Stewbond)
by chuxta
compiler failing to build
 
i wrote my code with code::blocks compiler. i declared classes in different header files. class b inherited from class a. i gave this project the name iheritenc...
[1 reply] : Code::Blocks is an IDE. You need to add a compiler like GCC, MinGW (by Stewbond)
Read only certain lines from CSV File
 
I am trying to read lines from a CSV file and put the values into vectors. The CSV contains a large amount of data and I would like the program to only read cer...
[1 reply] : Read line. Check secid. If it matches, continue with storing values If... (by MiiNiPaa)
October 2014 Pages: 1... 1112131415... 38
  Archived months: [sep2014] [nov2014]

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