General C++ Programming (Page 51)

Multithreading--Semaphores
 
Hi All, I have come across below code to demenostrate the use of semaphores #include <pthread.h...
[10 replies] Last: you have three threads: main, thread1, thread2 if one of them is in a... (by coder777)
Emulating 8237A DMA Controller?
 
I've written a script emulating a DMA controller. Anyone knows if this is correct? Sources: http...
[1 reply] : Continuation of the file: byte DMA_ReadIO(word port) //Handles IN in... (by superfury)
Initializing object of a class inside another class
 
I have a class MySeqBuildBlockModule that I am inheriting from: public SeqBuildBlock. Other than co...
[5 replies] Last: Thanks everyone, I solved this problem as: 1) by declaring in privat... (by dkumar3)
Vector syntax: resize and reserve
 
Hi All, We can construct vector in following ways vector<int>v1; //create an empty vecto...
[1 reply] : vector<int>v(10,5) I am clueless ,is this allowed?,what syntax all... (by Catfish666)
IsDialogMessage - Cursor not blinking
 
Hello everyone I have created a simple WIN32 application. I inserted the function "IsDialogMessag...
[1 reply] : I just got the solution: while(GetMessage(&Msg, NULL, 0, 0) > 0) ... (by theRunner)
by zsmash
Number counting up to infinite .
 
#include <windows.h> int main() { int i; int y=6; int x=9...
[2 replies] Last: your for loop will never execute. Considering 0 is less than 1. Also a... (by giblit)
Header File Will Not Compile
 
I am currently learning OOP, and I can't figure out what the problem is with my header file. The res...
[1 reply] : main() should be in a source file. The preprocessor can't find Rectan... (by Zhuge)
Code::Blocks or Visual Studio Express??
 
I have been using the Dev-C++ IDE ever since I started programming over two years ago. While, by a...
[9 replies] Last: I don't understand what you mean. Visual Studio has been proven itself... (by Fredbill)
find vowels
 
how to make a program that find vowel in each word. for ex: he is good. no. of vowel: 1 1 2
[4 replies] Last: Don't forget that sometimes "Y" is a vowel. How can you code for that... (by cnoeval)
by Dkob1
cin.peek help equation
 
So far I did this but I have to use cin.peek and I'm not really sue how it works. I have to delete t...
[12 replies] Last: ya I looked at the other link but it was different, thanks anyway just... (by Dkob1)
C++ Programming Multiple Functions
 
#include <iostream> #include <stdlib.h> using namespace std; void DisplayMenu(void); voi...
[2 replies] Last: I have fixed the error but i want to show if the number is prime for t... (by Noob Programmer)
Trouble with Code for a class project
 
I'm using Codeblock and I'm having trouble running this code I keep getting errors can anyone help, ...
[2 replies] Last: thanks so much we figured out where I included the % and did not need ... (by apachejoe)
by dnulho
std::sort (iterator, iterator, custom) will not compile
 
I am trying to use std::sort to sort a vector of complex objects using a custom function. However, i...
[6 replies] Last: Thank you, fixed. (by dnulho)
Multi-threading
 
I'm currently trying to log real-time data by using boost::thread and a check box. When I check the ...
[1 reply] : m_threadSendData.interrupt(); // interrupt the thread Threads genera... (by Cubbi)
to compare data_members of a objects store in std::vector
 
Overview of problem : I am using std::vector to hold objects of Subject. Now this vector contains lo...
[1 reply] : #include <iostream> #include <string> #include <vector> #include <alg... (by JLBorges)
by yugank
Using a delay function
 
I have been working on this project to develop a slot machine game. In that I intended to show rota...
[1 reply] : http://en.cppreference.com/w/cpp/thread/sleep_for (by MiiNiPaa)
by mjlohr
Problem
 
What does this program display? I know it has errors in it but I have no idea how to fix them. By t...
[3 replies] Last: #include <iostream> #include <iomanip> using namespace std; int mai... (by kbw)
by quayda
String with Vowel Removal
 
I'm trying to write a program that uses a loop to remove vowels from words. I'm really bad at this p...
[3 replies] Last: What is s? Where did you tell compiler anything about it type, size, c... (by MiiNiPaa)
C++ operand programming homework
 
My question is Write a program that has the user enter two integers and then has the user enter a...
[15 replies] Last: Bonus (without ifs or switch): #include <functional> #include <iostrea... (by MiiNiPaa)
Boost serialization archive versions
 
Hope everyone is doing well. I'm having an issue with boost serialization. I have serialized a fi...
[no replies]
Pages: 1... 4950515253... 58
  Archived months: [feb2014]

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