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

opencv 2.4.8 android
 
Hello I am new here... I am currently studying grabcut image segmentation algorithm on c++ What I am about to do is to transfer those algorithm in android ecl...
[no replies]
by xwilx
lvalue reference bind to a rvalue object
 
Hello, Trying to understand the lvalue and rvalue references, and come up with some strange codes, which compile and run, but is confusing to understand. ...
[5 replies] Last: Hi Cubbi, So it looks like I am making the example more complicated b... (by xwilx)
How can shorten this code
 
How can shorten this code I need to save 8739 blocks. as shorten ofstream and classes. as is a repeat, certain units read, you need to read 8739 blocks and save...
[1 reply] : You can remove line 1 and 3 and save 300k bytes in the exe. (by SamuelAdams)
Program takes longer in Parallel
 
hi, i made my mandlebrot parallel with OpenMP i used QT here's .pro to make it work: #------------------------------------------------- # # Project created by...
[10 replies] Last: im sorry if am annoying you by not understanding :( i actually think ... (by kam hagh)
C++11 Lambda capture ref vs value
 
I am fairly certain I know the answer to this question, but I seem to have 2 different compilers giving me different results. Given the following code: vo...
[6 replies] Last: Thank you (by digitalsynapses)
Leap Motion C++ Virtual Piano
 
Hi, I currently have a project that requires me to build a leap motion Virtual Piano. I am using Windows Visual Studio 2013 and i plan to use C++ to code it...
[1 reply] : Are you going to use some sort of GUI to visualize the keyboard and wh... (by giblit)
by Emkor
Help stuck
 
Can't seem to get this program working, any ideas? #include <iostream> #include <iomanip> using namespace std; int main() { int quiznum,quizsum,program,qui...
[3 replies] Last: Please use code tags when posting code, to make it readable: http://w... (by MikeyBoy)
cout and char*
 
i am really confused and do not understand why it was working yesterday and i woke up today and it is doing something weird void main(void){ char* lpBuf...
[3 replies] Last: no this is the code i am running and it is generating that output. ... (by Disch)
Hello Guyz I need help
 
It is pretty simple I have device called Logitech g27 the same driver for it is from here http://www.logitech.com/en-us/support/g27-racing-wheel?osid=14&bit=...
[2 replies] Last: well the driver for g27 it has API's ,. but to be sure i have no idea ... (by yahya1asfari)
Program with fixed notation help
 
This is the program I am working on: Write a program that will input the amount of chairs sold for each style. It will print the total dollar sales of each sty...
[1 reply] : have you tried: http://www.cplusplus.com/reference/iomanip/setprecisio... (by mutexe)
World Class
 
I have been making a game but my mind has drawn a blank and i can't remember what to put in the world class. Don't say google it because when i did it came u...
[13 replies] Last: Thank you for all your responses. I have figured out what i am going t... (by Cronnoc)
by sebz92
store text to array until text is over.
 
hello all, this is part of my code. what i wanna know is if there is a way to fill this array until the text is over instead of having to set the number of st...
[1 reply] : Yes! What you are describing is called a vector. Just #include <vecto... (by Yay295)
by sbas10
Reading from file one int a time..
 
I want to read this file to read each temperature and have it tell me if one of the substances listed will freeze or boil. My code is only reading the last temp...
[2 replies] Last: Makes plenty of sense. Thank You! (by sbas10)
by sebz92
input value get index
 
hello all, im trying to get the index of a value by inputting the value: for example if i have int arr ={22, 85, 58, 78, 69}; indexOfItem(arr, 78); ...
[3 replies] Last: If you refuse to use existing algorithms and insist on reinventing the... (by LB)
Converting a 4 digit number into a BCD number?
 
Hi I'm having trouble converting a 4 digit number into a BCD number, in the program I did below I was able to convert a 2 digit number into BCD, but I do not kn...
[2 replies] Last: I'm sorry that I did not use the code tags when in my previous post it... (by puffybear123)
Insert one program into another
 
Hello, Newbie C++ programer with an question. I have a dice roller program that I want to use in different program and I know there is a better way to add t...
[2 replies] Last: When writing code, make it as modular, independant and as reusable as ... (by Krisando)
IntelliSense: expession must have integral or unscoped enum type
 
So far I have the following code: // Purpose: To write a program that displays the number of millimeters higher the current level the ocean level will be in /...
[16 replies] Last: With some help from another source I was able to solve it with the fol... (by ProgrammingIsNotMyThing)
Exit two-threaded program with user input?
 
Hello, // clang++ -g -std=c++11 main.cpp -pthread #include <iostream> #include <thread> #include <unistd.h> void thread1(void) { while(1) { int...
[2 replies] Last: -- thank you JLBorges! (by vincegata)
streams (1,2)
 
Can someone explain to me what exactly is the difference between buffers and streams?
[20 replies] Last: They have nothing in common. A stream is an object that abstracts away... (by helios)
Regarding reading .txt into struct array
 
My code is outlined below. I am trying to read in heart two 2 heart three 3 etc to an array of cards i have named deck. I "think" i may have set up the read co...
[3 replies] Last: Are you running the program from the same directory where the executab... (by dhayden)
September 2014 Pages: 1... 1819202122... 28
  Archived months: [aug2014] [oct2014]

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