General C++ Programming - December 2016

How do I stream webcam video from my c++ app to my webserver?
 
I'm trying to stream video captured from my webcam using open cv (c++) to my Node.js server using web sockets. Here's what I got so far: - I'm capturing (a...
[2 replies] Last: Thanks wizebin, I actually figured it out and you're right, websockets... (by hashbrown)
What would be the best container mechanism for different game engine objects?
 
Currently, I'm working on my own game engine which uses SFML. Engine object types: Rectangle, Circle and Sprite uses the same base class which is called Object....
[3 replies] Last: Thank you very much! It's really helpful. (by Putarda)
custom pow() function
 
I need to make a variation of the pow() function for a homework assignment. These are the requirements: "Using a for loop, write code that will compute the re...
[8 replies] Last: I'm checking for negative inputs and results because I don't want to ... (by dhayden)
Threads
 
Hello at all, I'm new here. And I would like to write a Code so the functions are computed parallel 2 or more functions. If there only void Functions and...
[3 replies] Last: Too much time passed since I learned multithreading so best I can do i... (by raschupkin)
Problems with arrays of objects!
 
I am an advanced beginner in C++ and I tried to make a program with classes. Well.. this program drops "apples" from the sky and you have to catch them with a "...
[3 replies] Last: Ok I figured it out (by HenrikAET)
reversing float
 
Take floating point number from user and reverse it For example user enter 123.45 Your program should reverse it Output should be 54.321 with basic if else w...
[4 replies] Last: Please use code tags. http://www.cplusplus.com/articles/jEywvCM9/ ... (by integralfx)
Trivial constructors and destructors
 
Does the fact that an implicitly declared constructor(default, copy, move) or destructor is trivial - triggers the compiler to define / not to define it? cpp...
[8 replies] Last: Thanks. Now I got it. (by alxprog)
trouble with nested class within class template
 
How can I declare and define an inner class within a class template? Without template I got it to work: //==== declarations struct Outer { struct I...
[3 replies] Last: Thank you both. The link was illustrative to me! (by nuderobmonkey)
Why can't I access a header file at the environment path?
 
I added a path to the path environment variable, but I cannot include the headers at that location via #include <file.h> What am I doing wrong? On linux stuff...
[2 replies] Last: What compiler and operating system are you using, and how are you tryi... (by jlb)
Help, i want to do this without using "vector" biblioth
 
#include<vector>// i dont want to use this !!! class FileManager{ public: vector<Utilizator> readUsers(char* filename){ ifstream f(filename); vector<U...
[2 replies] Last: #include<vector> // i dont want to use this !!! What do you want to ... (by Cubbi)
reading multiple stl objets with serialization
 
I have saved multiple map values inside a file using boost serialization, now my problem is i don't know exactly how i can read all of those maps: Till now i've...
[1 reply] : So what's the problem in deserialising these multiple maps? #include... (by JLBorges)
Need help for coding!
 
QUESTION 3 A bank in your town updates its customers’ accounts at the end of each month. The bank offers two types of accounts: savings and checking. Every c...
[1 reply] : double post: http://www.cplusplus.com/forum/beginner/205494/ (by Thomas1965)
by user42
help with program
 
http://cpp.sh/9i66o how can i make this code better? can i use for's? i didnt really know how to play around with the indexes to get it to do what i wanted...
[no replies]
by kmce
Might not be the place, but c++ video game source
 
I am currently learning c++ focused towards video games, and i want to see what i have learnt being used in real games. I know this might not be the best place ...
[1 reply] : What about this? -> https://wiki.unrealengine.com/Survival_sample_game... (by Marcus Aseth)
How can i save vectors of type class in file and read it
 
I am currently using below program to write one object of class student inside a file and than read it but as i try to save more than one object than read it th...
[2 replies] Last: Maybe like this - store the size, and then the data. In a vector, the ... (by Chervil)
cant use object serialization to read an object
 
I'm using write.cpp to store map values inside a fifthgrade.ros file as: #include <iostream> #include <fstream> #include <string> #include "map.h" using namesp...
[3 replies] Last: Well i tried to use array at first to store these numbers but since th... (by dinesh999lama)
Lightweight conky like system monitor with HTML/CSS for themes
 
https://www.reddit.com/r/linux/comments/5ktq6f/conky_like_system_monitor_with_html_and_css/ A program I've been working on us an alternative to conky on linu...
[no replies]
How to divide two evctor of vectors element by element ?
 
Hi, I have two "vector of a vector"s: vector < vector < double>> v1, v2; I want to divide v1 by v2 , how exactly can I do this ? ...
[4 replies] Last: It did work without "-03", thanks. (by quantatanu)
Serious problem with pointers and CERN root !
 
Dear Coders, I will try to put the question through a simplest (but complete) representation of my original program. I have a macro that I use to analyze par...
[19 replies] Last: Thanks a lot kemort, I see particle physicists using underscores too o... (by quantatanu)
The problem about the class exported from static link library
 
I have prepared a very simple static link library project(projectlib.lib),only include lib.h and lib.cpp,i want to expoor a class named c_lib1,there are 2 ways ...
[4 replies] Last: Thanks ne555 (by motatamotata)
December 2016 Pages: 123... 18
  Archived months: [nov2016] [jan2017]

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