General C++ Programming - February 2015 (Page 12)

RE: A few questions..
 
some months back i created the following topic here on cplusplus http://www.cplusplus.com/forum/general/150793/ i am back because now the amazon echo exis...
[no replies]
inherit from std::vector
 
Guys, i am confused. On some pages i find people saying that i MUST NOT inherit from std::vector, but after writing some lines of code for a class i realised t...
[6 replies] Last: I'll just put it in a namespace, that way it won't pollute the global ... (by Gamer2015)
link error although all constructors appear to be there
 
I'm getting a massive 1300 char link error with VC10. It appears to complain that it can't see the constructor although the constructor is definitely there. ...
[no replies]
Homework help Recursive Function
 
Write a recursive function for converting a string of digits into the integers it represents. For example, “13531” represents the integer 13,531. what I ha...
[5 replies] Last: > i have no idea how i would go about inserting my "," Where do you w... (by JLBorges)
boost
 
I need a suggestion. it is good practice to use boost lib. professional level big project development, is it ok to use boost lib. my simple question is, bo...
[3 replies] Last: @coder777: OP meant "compatible" and not "comparable" in both instance... (by LB)
C++ and Command prompt?
 
I would like to make a simple program to hide/unhide hard disk partitions in windows. In order to accomplish that I have to run commands in command prompt as we...
[no replies]
by tmason
Problem with creating a comparison operator: the object has type qualifiers that are not compatible with the member function
 
Hello, So I am sure this is simple; I am attempting to create a comparision operator for a complex class; I recreated the problem below with a simple class....
[1 reply] : It is not wrong to write it like so: virtual float const getInternalV... (by coder777)
Day of Week Program
 
I cant get my program to run, but it compiles without any problems. Can anyone help me out with this. Thanks #include <iostream> #include <cmath>...
[2 replies] Last: It works fine here, so maybe you just wonder why the window closes so ... (by Gamer2015)
by tmason
Whats the difference between "const int funct()" and "int const funct()"?
 
Hello, I am wondering if there is a difference between: const int funct() { //stuff... return i; } and int const funct() {...
[2 replies] Last: Awesome; thank you for the speedy reply! (by tmason)
by iamred
Trying to find mode of a vector through a map
 
Im currently trying to find the mode of a vector through a map but am not sure how to do so besides the attempt ive made void mode(vector<double>v) { map<...
[3 replies] Last: #include <iostream> #include <map> #include <vector> #include <algori... (by tipaye)
a structure code not working please help
 
#include<iostream> using namespace std; struct complex { int real; int imag; }; int display(complex); int read (complex); int main() { complex l; read(l); ...
[2 replies] Last: uhm, you might want to actually read in the complex var, but you make ... (by Gamer2015)
Errors with "emmintrin.h" file while setting up OpenCV 2.4.5 with visual C++ 2010 Express
 
I have installed the well-known open source library "OpenCV 2.4.5" with windows 7 Ultimate Service Pack 1 and Visual Studio 2008 many times and it worked witho...
[1 reply] : First, i had the error "cannot open include file "emmintrin.h" ", and... (by coder777)
Galley PHP modules
 
PHP modules are complicate to create but the result looks so simple. Please suggest me some gallery modules which i can add to my website. http://www.reddit....
[no replies]
MFC and main method all I need to run this sample code?
 
https://cs.senecac.on.ca/~gam670/pages/content/force.html This website has some sample codes that I want to run, but I'm getting errors. For the very first s...
[no replies]
easy multiple choice questions
 
1) An algorithm is A) a finite set of steps to solve a problem. B) a complete computer program. C) the inputs and outputs of a program. D) the part of the c...
[1 reply] : best of luck. (by sujitnag)
Using iostream in VS 2010
 
How do I using #include <iostream> in Visual Studios 2010? I used to know since I had to use the 2010 version in High School. But that was 3 years ago and I ha...
[7 replies] Last: There is no compilation error with the code; it compiles and runs: htt... (by LB)
Pathfinding
 
I am creating a rougelike game and am working currently on path finding. I have a map structure with a series of bools saying whether or not you can walk throug...
[3 replies] Last: I am completely confused as to how to implement it, as I have an entit... (by lordseanington)
classes & constructors
 
I am creating a bitvector project, and I'm having a little trouble creating my constructors in the cpp file. here is the header: class UIntSet { p...
[1 reply] : No, your constructor seems fine, but this { before the constructor see... (by Gamer2015)
by Cobryn
text to speech WITHOUT SAPI?
 
Hey all, I'm trying to find some code that can do very very simple text to speech WITHOUT using SAPI. Remember back in the day using DOS with the speech c...
[1 reply] : /bump (by Cobryn)
recursive loop not doing what I want
 
You know the android phones with the 9 dots for a password, and you run your finger around to make a pattern. I was bored and sick in bed and started writing a ...
[4 replies] Last: Oh, so you want to start at a given Point at get all points around thi... (by Gamer2015)
February 2015 Pages: 1... 1011121314... 26
  Archived months: [jan2015] [mar2015]

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