General C++ Programming - March 2012 (Page 8)

The Dining Philosophers Problem
 
The Dining Philosophers Problem which for 5 philosophers, how to implement WIN32API application using C language for the problem? (We should take philosophers a...
[1 reply] : http://software.intel.com/en-us/articles/win32-functions-to-manage-sem... (by Duthomhas)
by idks16
broken oven problem
 
there is a oven with digits from 0-9 but 1, 4, and 7 is broken. if the user entered a broken digit, the program would output the nearest number that works. ...
[1 reply] : this is the rest of the code, it could fit in 1 message if (((t1==0)|... (by idks16)
Working Program Error
 
Hello, First thread here, but I have a simple program that does the following. Takes user input and enters it to an array. (of ints) Then sorts them in ord...
[4 replies] Last: I didn't bother downloading your zip file. If you can't reduce it to ... (by cire)
array please help
 
i need to develop a program to check if the entered Number is in the prerecorded data file. the Data file with 300 Numbers is already provided in a file .txt . ...
[1 reply] : Duplicate of http://cplusplus.com/forum/general/65700/ (by Stewbond)
Tic-Tac-Toe Multi-Dimensional Array
 
Hello, I have to create a tic tac toe game with a multi- dimensional array table numbered 1-9 with three rows and three Columns for my computer class. I know th...
[1 reply] : Make a 2D array like so: int grid ; now use 2 for loops, to set e... (by Stewbond)
Write a function that will return the max element in an array of 10 integers
 
Hi, can someone help me with this. This is what I have so far ! #include <iostream> #include <cdtg> using namespace std; int max(array<int,10>Data) { ...
[7 replies] Last: drugs, must be drugs. (by Stewbond)
How to find the number of occurrences of a word in a text file
 
I am doing a program on files.The program should read a file like example.txt and find the number of occurrences of a word.for example say Example.txt contai...
[3 replies] Last: you should better use map to store data. Thats what i said..(?) ma... (by Bootstrapper)
by S G H
Infos on atexit()
 
Is atexit a "Evil" function? I know it cannot be used from a DLL for some reasons, and that's my main reason why i would like to have another function similar ...
[2 replies] Last: Nice idea, didn't think of that! EDIT: Works perfectly! (by S G H)
card picker program
 
i am trying to generate random cards for a poker game almost but i am quite new to this software so im still not quite sure what i am doing half the time, i hav...
[1 reply] : We've had problems like this before in the past. Personally, I would ... (by MrHutch)
comparing the last looged date with the system date
 
Hi I am doing work related to logging my objective is to compare the last logged date with the current date,if the last log day is smaller than current dayi...
[no replies]
by vivmen
problem with exception
 
hi all i am trying following code and have some query. class myexn { public: int* ptr; myexn() { ptr = new int; cout<<"ctor myexn \n"; ...
[4 replies] Last: i tried all your suggestion well one thing sure that copy of object go... (by vivmen)
by Gabz
Programming electric pulses (FES)
 
I'm trying to program my 'electrotherapy' device to feature a motor(vibrate) and electric pulses(FES). Im running on this silicon lab program, on a 8051 with...
[no replies]
by Jggrnt
Find out the mistakes in the code
 
Hello everybody. I am new in c++ and I made a little game. a labirent, a maze that ı created. You just give orders to walk in the direction of east, we...
[1 reply] : = is assignment == is comparison Besides that, you've got a lot of s... (by ne555)
get value of windows.title
 
Hello, Please let me know how I can get value of windows.title() in c/c++ programing. I want to get the title of webpage in c/c++ Is thr any function ??
[no replies]
help me
 
creat class which the object can hold any numbers.object created as one oe two dimension. *if two columns ca be different sizes. *the object can be resize. ...
[no replies]
Comparing Iterators
 
Hey there folks.. I'm trying to write a search function that returns a typename iterator as shown below. typename list<T>::iterator Search(list<T> words,...
[1 reply] : You are passing a copy of your list. So the 'pos' iterator is invalid ... (by ne555)
by MikeTV
Releasing object pointers
 
So let's say that somewhere within my application, I have a class that creates a new object. This object contains a Release() method, and when my class is destr...
[5 replies] Last: I don't understand very much your setup, but it is really up to you. ... (by webJose)
memory debugging -- lost blocks
 
Hi, I've written a small program which finds saddle points on an energy surface and I am trying to get the memory management correct. I'm always messing this u...
[8 replies] Last: You are thinking in linked list. To iterate in a vector you just incre... (by ne555)
Counting how many times I've compared
 
I have the following for loop that compares some values before being entered: for (; (loc > 0) && (theArray[loc-1 ]> nextItem); --loc) { counter++; ...
[1 reply] : How about this? Didn't test it but I guess it works. int conditionC... (by webJose)
Tutoring?
 
Hi ive taken a class in C++ but am a little fuzzy. Looking for a Teacher/Tutor/Internship(not paid). Can anyone help my dilema Email me at hunteru@bountifulfami...
[14 replies] Last: Not been to learncpp since they still had a ton of unfinished tutorial... (by BHX)
March 2012 Pages: 1... 678910... 49
  Archived months: [feb2012] [apr2012]

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