General C++ Programming (Page 4)

binary semaphore with NON-busy waiting
 
can someone please help me on how will I be able to program this? So, say I have a process and it...
[1 reply] : In C++11 (and boost) there is no semaphore but mutex: http://www.cplu... (by coder777)
by smosh
Tic-Tac-Toe Game w/ 2D arrays Help!
 
This the question: Two Dimensional Arrays (courtesy of Dr. Huo) The following program is the...
[1 reply] : Alright 1st you Really need to Comment your work! Always good practice... (by Sanction)
Need help making a dart score board source code.
 
So I want to make a code that keeps track of peoples scores when we play darts that is fairly organi...
[1 reply] : Use an associative array (eg. std::map<> ) to associate name (string)... (by JLBorges)
Treasure Hunt program (arrays) help
 
In a 5 by 5 board, the user must type in x and y coordinates (e.x 4,5) for treasure, specifically 10...
[5 replies] Last: i finished. Here is the code. #include <iostream> #include <iomanip> #... (by RaginContagion9800)
by rko786
C4244 warning
 
i can not gid rid of these 3 errors i'm new to this so please take it easy thanks ...
[8 replies] Last: I recommend using iostream like this: #include <iostream> #include <c... (by jasonwynn10)
How does one go about...
 
How does one go about Playing a music file that they picked and playing it in the default player? I...
[5 replies] Last: ok, cool. thanks! (by jasonwynn10)
Help please
 
Hi, I'm working on this program and I wanted to know if I was going in the right direction or not. H...
[1 reply] : Repeat Post! http://www.cplusplus.com/forum/beginner/151275/ (by jasonwynn10)
bresenham's line algorithm
 
Hi. I need a program to count pixels for bresenham's line algorithm. I just can't think of how s...
[3 replies] Last: R? Angles? Bresenham's doesn't traditionally have any Rs or angles in ... (by Duoas)
Ranged for loop with arrays of arrays
 
int arr ; for (int(&row) : arr){ for (int &column : row){ } } Why do we n...
[2 replies] Last: int m = { { 1, 2, 3, 4 }, // row 0 { 5, 6, 7, 8 }, // ... (by Duoas)
help with int
 
while (number <= 0 || number > 16000000000){ cout << "Please the size of memory: "; cin >> numbe...
[2 replies] Last: Integer values are constrained by the number of bits they have to stor... (by Duoas)
C string style problem
 
Hi, I'm not sure if any one will have the time to take a look at this and help me but I've been work...
[3 replies] Last: I haven't analyzed it carefully to see exactly where your indices are ... (by Duoas)
Static linking the boost library
 
I have written a program that uses boost in visual studio 2012. The only boost library I used is fil...
[1 reply] : Properties->C++->Code Generation. Change runtime from MD (release) or ... (by naraku9333)
by rko786
it will not open text file help
 
a
[15 replies] Last: Ok! (by minomic)
how to display structure content ?
 
i need help to display all the content of the ( codedParams & modeParam ) in the next piece of cod...
[1 reply] : use cout to display something. you can use the . operator to a struct ... (by tanezavm)
Having problems reading in from/writing to files in C++
 
I am writing a program that reads in a list of pilots' names followed by a set of coordinates for ea...
[1 reply] : I found some problem in read function below: void read(static ifstre... (by tanezavm)
Value returning function question
 
How is the definition of the term "expression" affected by value returning functions, and why?
[5 replies] Last: Function call is an operator (it's even overloadable as "operator()") (by Cubbi)
by Ploppz
[Solved] Can't figure out how to include a simple library!
 
Hi. I've spent days trying to figure out this, searching the web and everything. I want to include S...
[3 replies] Last: Thanks for replies. This is what my makefile currently outputs: g++... (by Ploppz)
If statements
 
Hi I'm having some problems with my conditions. No matter what number I type the second condition al...
[2 replies] Last: Ohh, I didn't know that. I get it now, thank you for explaining things... (by Newie0001)
MPU-401 ammount of voices?
 
Anyone knows how many voices (or voices per channel) are available with a MPU-401 or a modern MPU? I...
[no replies]
by extra1
How to delete a line from a text file using fstream
 
I'm trying to make a simple phonebook app that can show contacts, add, and delete. I'm pretty new to...
[6 replies] Last: From Reference Manual, string : Return Value The position of the fir... (by tcs)
Pages: 123456... 57
  Archived months: [oct2014]

Cannot post in this page. To post a new message, go to the first page.