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 ...
[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...
[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...
[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...
[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...
[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. ...
[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...
[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...
[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...
[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 ...
[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...
[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...
[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...
[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...
[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
[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).
[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...
[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....
[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...
[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 ...
[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.