General C++ Programming - February 2014 (Page 20)

Error initializing map
 
Okay so inside my ArcherArmor.cpp, I'm trying to figure out why the map initializer list isn't working, but for some reason I keep getting "Error C2593: 'operat...
[7 replies] Last: Amazing! t works now! Thank you! (by damian519)
by MrRed
openCV: Unhandled exception upon call to cornerSubPix() and calcOpticalFlowPyrLK()
 
I already posted my problem in the openCV forum, but I figured it would be a good idea to present it here as well. Here is the link: http://answers.opencv.or...
[1 reply] : http://www.cplusplus.com/forum/general/112111/ > We are not considerin... (by ne555)
Creating Header files
 
I was wondering about header files. When creating one with a class, do you just put the class in without the class function members, or do you include it all. ...
[3 replies] Last: The main difference between the two is function inlining and compile t... (by Disch)
cloud signature tool in C++
 
developing the Cloud Signature tool to allow investigators to quickly search for cloud application remnants on devices (computers, phones, iPads, etc) seized fr...
[1 reply] : Theoretical simple: you need to read all seizable data and then - lik... (by coder777)
simple logic in program
 
I'm looking at one of exercises from book, and basically this simple program is straightforward, except one thing. There is a conditional check "if (advance(hea...
[1 reply] : If you insert and remove elements, the head won't be at the beginning ... (by kbw)
function definition?!
 
Hello. Please tell me how the 'compare function is used in the example at: http://www.cplusplus.com/reference/cstdlib/qsort/ Thanks in advance
[1 reply] : The idea is this, the sort function is independent of the algorithm. ... (by kbw)
please i need help ... how do you use get line function to read the line of code?... work below
 
include <cstdlib> #include <iostream> #include <string> using namespace std; #include "ccc_time.h" int main() { // Get time. Time fast_u...
[1 reply] : Read this (and the example): http://www.cplusplus.com/reference/strin... (by coder777)
Trouble Testing Program
 
I need to test the program with the text file I made called scores.txt, but I am having trouble doing so. Seems like the program can't find it. The text file co...
[4 replies] Last: I got it now, I hadn't moved it into the directory. You were right tho... (by tburns517)
by cjan
comparing the points..
 
there are numbers of lines connected to each other. i ve extracted the line start point and end points but i am confused how to compare the end point of one lin...
[2 replies] Last: this is just comparing two points i need to compare all the points of ... (by cjan)
problem with do while loop
 
So in my code I want to give the user to be forced to input one of the options given so I did a do while to try that. { string filename; cout << "Enter the ...
[6 replies] Last: As I have said lots of time son this forum, I really hate dislike c... (by TheIdeasMan)
RGB to HSL Saturation Close but Incorrect
 
Currently I am trying to convert RGB to HSL. Everything is working but the saturation value. It is always close to the correct value (usually less than 10 off)....
[5 replies] Last: @doug4 http://en.wikipedia.org/wiki/HSL_and_HSV the Lightness is in ra... (by ne555)
Inheritance problem I guess
 
ok... so I had a couple of problems with my code but now I have only one left... I tried to figure it out for hours and also searched the internet but with no ...
[3 replies] Last: oh guys... thank you SO MUCH for clearing my mind... I guess I was tir... (by chippzanuff93)
Diamond with n rows -- please help me understand this.
 
The object is to create a diamond with an odd number of rows, the range being from 1 to 19, and I did that, but I need help understanding why it works. Thro...
[no replies]
ToUpper Code Help
 
I am trying to write a program, and I am using classes when doing it. My problem right now is I am using a class, and have gotten it setup to ask a question an...
[4 replies] Last: Thanks!! I don't know what I was thinking. My logic was wrong when i... (by karichie)
The usage of hash
 
The original code: struct NUM { NUM(int a, int b) :a(a), b(b), val(a+b*sqrt(2)){} bool operator<(const NUM& n) const{ return val > n.val; } bool opera...
[no replies]
problems with getLine() function
 
I can't figure out why this isn't working, please help. I'm trying to use the getLine() function to have the user enter the command "read note" to read the not...
[3 replies] Last: What you said worked Disch, but now that I added more commands that do... (by UnlimitedAlpha)
unexpected output from fprintf
 
I have the following piece of code which should write the contents of my vetor to y file but I am getting a very weird output in my file. for (int i=0;i<a...
[1 reply] : fprintf expects a c-string. You are using c++ string (surprised you di... (by Smac89)
by qzpqzp
Missed a few classes, need slight assistance with homework
 
As the title suggest, I need ASSISTANCE with my 4-part homework. I am only going to ask for ASSISTANCE for the 1st part, then I should be able to work my way......
[1 reply] : void display_options() { cout << "Geometry Calculator" << endl ... (by Smac89)
how to save two digit variables in an array
 
hi I am trying to redefine an array, but the result can only display one digit variable. I want the program to display 97 98 99 *+, but the program is only disp...
[1 reply] : In c++, single quotes are used to denote a character while double quot... (by Smac89)
Resource Manager - need a nudge in the right direction
 
I'm trying to build a resource manager for an sfml game and I've reached a point where I am just stuck. Here, is the header file I have at the moment: #ifn...
[no replies]
February 2014 Pages: 1... 1819202122... 33
  Archived months: [jan2014] [mar2014]

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