Time for your 3rd Quarter Update! Are you in the running for the 6th Annual Expert Awards? Click the link to find out.

Third Quarter Hot Shots
 

Having problems asking a question? Have a general question about Experts Exchange? Let us know!

 
Time Tested C++ Solutions: 126 - 150 of 6109
 
I have been trying for the past 48 hours to get all the errors to go away and create a successful build of Ntop version 3.3.8 for Windows. I know nothing about windows compilers, I'm using the...
I have a question about the randomize function in c++. I have a population of agents belonging to a class. When they are first constructed they are assigned some randomly generated values (say...
i am running my C++ program in LINUX redhat 9 i got actually 2 questions question 1 ---------------   my code looks like          char buf[20] = " ";          while(1)          {  ...
Hi,      I am doing Krushkal's algorithm implementation with the following program. There are 2 files airports.txt, flights.txt airports.txt contains(for example):- 3                    ...
Hi Experts, I need to protect some data in a multi-threading/multi-processing enviorment.  What syncronization mechanism should I use.  What is the difference in using Semaphore vs mutexes.  
I am trying to write a maze program using stack in c++ I idea is that a user can call from a file a list of 1's and 0's that will be used as the maze. The maze is to work (in 4 directions...
The following program inserts strings into a stringstream and then extracts from the beginning of the stringstream.  I'm happy that it works this way, but don't understand why.  Speaking in fi...
can anyone give me a simple example of converting string to int. string a="321" int b; is there any function in STL in VS++6 which can convert "321" into b=321; Thanks
hello experts, i am trying to write an arry of structs to a file (binary) using fwrite and reading the same using fread. program given below is not working accurately, please tell me where i ...
Hi, I wanna know how to convert a string to int. char DataBuf[200]; int   Temperature; char TempStr[2]; TempStr[0] = DataBuf[100]; TempStr[1] = DataBuf[101]; How can I get Tempe...
I can make a socket listen on a port, but I don't know how to make it timeout if it doesn't recieve any data on that port within, say, 10 seconds. Does anyone know where I'm going wrong? ...
Hi All!    I am wondering how to copy folders (and all files/subfolders contained in it) in C++, I tried CopyFolder(init, fin, Bool) but it doesnt work (see code below), any ideas? The folder...
How to make a STL string Lower case or Upper case? Is there a function to convert an STL string to Lower case?
How do code a curve fitting via least squares to an nth degree polynomial? THanks for the help
Dear Experts, i want code for Jacobi Method. Please help me. Thanks
I have an XML data file that I wish to read and have access to its DOM, ie parse it. What is the simplest way to do this? I want to pull out the attribute and leaf node values so as to assign ...
I'm looking for a simple example showing how to create a WebBrowser control - NOT using MFC. Ideally I would like a sample EXE that creates a main window which in turn contains the WebBrows...
/* non-recursive Pascal's Triangle         programmer: Enrique De Los Santos*/ #include <iostream> #include <stdlib.h> #include <stdio.h> using namespace std; #define MAX 12 typedef i...
Does anybody know how to get screen size in Windows using c++ or MFC code? By size I mean current screen resolution in pixels.
I have encountered  an error: "expected nested-name-specifier before "namespace" expected unqualified-id before "namespace" expected `;' before "namespace" expected unqualified-id before "...
Hello, people. I need to figure out what is the cause of RPC_E_SERVERFAULT error. It occures on Win2K Server + SP3, in my application, which uses MSMQ (or Message Queueing). Application is...
I compile my code like this g++ -c -O2 main.C g++ -c -O2 class.C g++ -O2 main.o class.o 1)Is the optimization flag -O2 redundant in either the compilations or the linking, or is it neces...
Hi... I need the FindFirstFile and FileNextFile example Visual C++ Source code... If you have, send to me.. thanks
i am trying to write this program using if/else statment but i am getting an error at the end. Could someone help me writting this program using C++?? Here is the problem: Write a program ...
Hi Experts, I was using #include <iostream.h> #include <stdlib.h> void main() { char *charValue = "123"; int value; value = atoi(charValue); cout << value << endl; value = 256...