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

by titi
Implementation Running length Smoothing Algorithm
 
Hi, I am new in C++ programming. I use c++ and opencv. The type of image is Mat structure. In ma...
[1 reply] : What is tmpText ? A typo perhaps? Should you be using tmpImg ? Ed... (by cire)
by xorkon
Highscore
 
Im making a game in c++, and struggling with how to write out the Highscore. I've got a variable tha...
[5 replies] Last: You need to return\pass the variable into the scope that is displaying... (by Computergeek01)
by chacha
JCPP
 
Hi I was trying to implement a library that has the same API than the jdk. Here is the link htt...
[no replies]
Adding External library whit code blocks
 
hi!, first im programming avr in c ! im trying to make a V-USB application so i downloaded library...
[no replies]
by xkara
Storing multiple arrays based on user input
 
I'm trying to create a function where it allows the user to type in multiple amounts of integers, so...
[3 replies] Last: Can you show the exact code you used? http://ideone.com/4a8PuL (by giblit)
Trouble Processing Code
 
Ok so this is my prompt for my program and I'm having a bit trouble displaying and computing. "Read...
[4 replies] Last: Ok, Room capacity is 100. and if it is over 100 (eg. 101) I have to ha... (by cppbeginner3)
Homework quesiton on Loops
 
So my program doesn't seem to follow the correct loops when I compare the code I wrote to the code t...
[1 reply] : Double post. http://www.cplusplus.com/forum/beginner/123110/ (by giblit)
How to allow a class to know about another?
 
Not sure how to setup the includes (if that's how it's done) to allow one class to know about anothe...
[2 replies] Last: So your main.cpp should be: A thingA; B thingB; (by ne555)
by Chubby
How to find mode
 
how do you find a mode in array? This is what i got so far i put this after i sort the array ...
[1 reply] : Isn't the mode the number that appears the most in a set of given numb... (by giblit)
flushing question
 
Hello, I am trying to conceptually understand cout flushing. consider the following int func() ...
[6 replies] Last: Doesn't the cout.flush() tell it to flush? Yes. Why doesn't this ... (by Disch)
Error in reference description of abs
 
I didn't see a place to report errors on this site, so I'm posting my comment here. http://www.cplu...
[4 replies] Last: Yes. That is, I commented on the <cmath> abs. The <cstdlib> abs is OK. (by sclamage)
Why pure virtual destructor should have body.
 
Why we should provide body to pure virtual destructor? Thanks
[2 replies] Last: If there is no body it would not build properly. You can do class fo... (by ne555)
Problem with templates
 
Dear all, I am having an issue with templates. It is strange because the very very same line of ...
[6 replies] Last: > I don't know why you deleted it. I deleted it because after I post... (by JLBorges)
by mora15
Magic Number Revisited
 
i need help writing a modified version of the Magic Number program. For this program, the user is as...
[4 replies] Last: srand(static_cast<int>(time(0))); this is not necessary you already ... (by giblit)
by S G H
Lambda/Function help
 
I have a collection of objects, and I want to add a collision callback via lambda functions. Basi...
[8 replies] Last: @ Cubbi : Thanks! That is interesting to have bookmarked. I just need... (by Computergeek01)
by Plavsa
lexicographical_compare
 
Hello there. I was doing some coding today, and i needed a function to see if 2 words compare lexico...
[3 replies] Last: std::lexicographical_compare is for when you have a iterator range and... (by Cubbi)
by Chubby
Pointer function:
 
I am trying to make a information to pointer function but the problem is how/what number am i puttin...
[1 reply] : include <algorithm> // std::swap #include <iterator> // std::e... (by cire)
what does this syntax do?
 
I have seen code recently that looks something like the following... #include <this> #include <t...
[8 replies] Last: The difference is that you cannot actually call Function3 until A is a... (by LB)
by LB
End iterator invalidation
 
This excellent SO answer explains all the iterator invalidation rules: http://stackoverflow.com/a/64...
[no replies]
by Drae
Trace Table for an Arrary
 
int marr ={23,67,12,9,33,7}; int track =0; int ans = 2; while(track<7) { marr = marr + 3; i...
[6 replies] Last: So true. I must apologize cire. (by Drae)
February 2014 Pages: 1... 2425262728... 33
  Archived months: [jan2014] [mar2014]

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