General C++ Programming - June 2016 (Page 5)

C++ VECTORS
Hello, how's everybody going?. I am trying to copy exactly as it is, a vector<std::string> to a vector<byte> without changing/casting any element. What do i ...
Jun 19, 2016 at 5:05pm
[2 replies] Last: using byte = unsigned char ; std::vector<byte> to_bytes( const std::... (by JLBorges)
ERROR OF CODING
Actually my lecturer gave me some exercise. She wanted me to find what's the error of this coding. Can you guys please help me to find the error and make it a c...
Jun 19, 2016 at 2:44pm
[11 replies] Last: [quote=najihanzd]What kind of code tags is? Sorry I'm just new with th... (by closed account E0p9LyTq)
Boost object_pool array allocation
Lately I have been using the boost::object_pool class to create memory pools in a program I am creating. Currently I need to allocate an array of pointers in th...
Jun 19, 2016 at 2:38pm
[2 replies] Last: This seems to work, thank you for your help. (by Shadowwolf)
To read a string from text file (searching the string) and compare with user input
I want to search through a text file database and display if the word or string is within the text file...The code is doing but it doesn't find any word that ac...
Jun 19, 2016 at 2:01pm
[15 replies] Last: Excellent - good luck with it. Come back with your attempts if you nee... (by closed account 48T7M4Gy)
by jtm013
Program for 5 salaries and averages
This program is for a class and I am having trouble even starting it the question is.... Create a complete C++ program that prompts the user for 5 salary va...
Jun 19, 2016 at 8:10am
[5 replies] Last: Just to give you an idea... #include <iostream> #include <iomanip> #... (by chicofeo)
by yiddo
Messy way to read Data from File, help out
Hello guys, i am working on this program to Add and later on Read data for Students/Teachers/Guest Teachers. Currently only Students are available for adding. ...
Jun 19, 2016 at 7:34am
[2 replies] Last: I was such a dummy to forget "endl;" after "line", dear me. Now order... (by yiddo)
Time complexity of algorithm
Hi guys, I'm trying to find the number of integer points lying on or inside a given triangle (which may have non-integer vertices). My algorithm sums the are...
Jun 19, 2016 at 6:56am
[2 replies] Last: Ahh, thank you :) (by Guessit)
Putting two pieces of code together help
Just finished some prototypes and looking to put them all together but can't seem to do it, they are completely identical pieces of code with different variable...
Jun 19, 2016 at 6:21am
[1 reply] : Hi, I am pretty sure you cant use int main() more than once , plea... (by shadder)
write all possible values of an array
What is an elegant way to write all possible values of an array? Let's say that the array is boolean: bool A ; I'm trying to generate all possible values of t...
Jun 19, 2016 at 6:14am
[2 replies] Last: This isn't a permutation, though. It's treating an array as a number a... (by helios)
editing minisat solver
please , I am a master student in the topic of satisfiability so I get the precompiled binaries of the minisat solver v 1.14-which works under the Cygwin as an ...
Jun 19, 2016 at 12:45am
[3 replies] Last: You need to edit the source code and then compile it. There are instr... (by htirwin)
How can I inline functions in header files?
//Point.h #ifndef POINT_H #define POINT_H struct Point { int x; int y; } bool operator==(const Point& lhs, const Point& rhs) { return lhs.x == rhs.x...
Jun 18, 2016 at 7:43pm
[2 replies] Last: Oh boy...now I feel dumb. I appreciate the help though. I was under th... (by TinyTertle)
Copyrights and intent
If I use CURL to download a webpage and save it to disk for the sole purpose of comparing it to that same webpage one hour later in order to indicate to the use...
Jun 18, 2016 at 1:20am
[6 replies] Last: Helios, that makes sense, though I don't like the idea of shifting the... (by newbieg)
Help me find a median!!!
Hay guys, I am trying to write a program that ask the user how many grades there are, inputs the grades, and displays the median of those grades. My bubble so...
Jun 17, 2016 at 10:54pm
[5 replies] Last: my temp "t" in my sort was an int, this caused all my problems. (by zacharyMarbooti)
Audio/Sound/Midi library?
Hello everyone, I'm trying to find a library that can create sounds(From samples/soundfonts?). I don't need much complexity - just enough to be able to make a m...
Jun 17, 2016 at 10:39pm
[3 replies] Last: So given a waveform, play the waveform without having to first convert... (by Ganado)
by JCRQ
Calculate mean, variance and standart deviation
I need to know how can I read an archive csv to c++ with 30 points of longitude and latitude and after calculate mean, variance and standart deviation
Jun 17, 2016 at 4:01pm
[3 replies] Last: Your best way of going about it is to do a search on this site or goog... (by closed account 48T7M4Gy)
by JCRQ
Average and Median filter
I need a program that read a bitmap image and apply median filter (window 3x3 and window 9x9) and average filter (window 3x3 and window 9x9).
Jun 17, 2016 at 2:52pm
[1 reply] : Better post it in the job section. http://www.cplusplus.com/forum/jobs... (by Thomas1965)
What is wrong with map.clear() in my program
I am trying to write a program for snake and ladder game. I am having an issue with the map.clear in the main function. Can someone help me with why map.clear d...
Jun 17, 2016 at 2:00pm
[4 replies] Last: Thanks, those inputs were very helpful. My issue is fixed (by funprogrammer)
by Sareks
[QT] How do I use curlcpp with QT?
Hello, I'm about to make my first legit application which actually does something useful. But I'm not familiar with libraries such as curlcpp at all, so....
Jun 17, 2016 at 12:10pm
[10 replies] Last: Then add <curlcpp root>/build/src/ to your library path and <curlcpp ... (by htirwin)
how to create an array with boost.python
I want to create python array with boost.python but get segment fault every time. I paste my code as follows. Please give me some hints. Thanks! #include <i...
Jun 17, 2016 at 5:37am
[no replies]
Boost asio client server
Hello Guys i made a synchronus client and asynchronus server. I am trying to connect them and able to successfully implement them. But i am having trouble with ...
Jun 17, 2016 at 4:15am
[1 reply] : io_service::run() returns when there is no pending asynchronous oper... (by JLBorges)
June 2016 Pages: 1... 34567... 14
  Archived months: [may2016] [jul2016]

This is an archived page. To post a new message, go to the current page.
Registered users can post in this forum.