49,761 Topics

Member Avatar for
Member Avatar for Ashok_kr

Hi All, I have a VB test application(Client-Server Model)which inturn calls c/c++ engine which uses ACE classes for the TCP socket creation and TCP socket close. When Server closes the TCP socket and now if client tries to reconnect to the server client gets RST from Server in response to …

0
60
Member Avatar for daviddoria

Anyone know where I can get an implementation of this? Some code to read in a set of vertices/triangles and then do some simple intersection tests? If you can point me in the right direction that'd be great! Thanks, Dave

Member Avatar for Alex Edwards
0
217
Member Avatar for Traicey

Another assignment, another due date, another exams, thats how I describe my life these days Im trying to read a date from the user and compare it with the date in the file and if the date is foung I have to print some user details... so my problem is …

Member Avatar for Radical Edward
0
124
Member Avatar for timdog345

I need to make a hangman game but I have code but it won't end the game even if you ges the word, and it won't show the gesses all at once. This is what I have [code] #include <iostream> using namespace std; int main() { char solution[20]; char blank[20]; …

Member Avatar for joshmo
0
142
Member Avatar for rpjanaka

Hi all, I want to just write a simple test case for a method which multiply two numbers. I am using the Linux platform. in the web ([URL="http://cpptest.sourceforge.net/tutorial.html"]http://cpptest.sourceforge.net/tutorial.html[/URL]) there are some examples. But I do not know what is the header file that should include. please can anyone help me...

Member Avatar for daviddoria
0
164
Member Avatar for Frazinray

Hi guys I'm a fairly lightweight (in virtual world only, sigh) hobbyist who finds programming fascinating. I enjoyed teaching myself C++on my old machines. Bloodshed Dev C++ I found particularly robust and reasonably forgiving in older Windows OS. We recently switched to Linux for most of our machines and I …

Member Avatar for Ancient Dragon
0
102
Member Avatar for Aamit

[code]#include<windows.h> #include<stdio.h> #include<conio.h> int main() { system("mkdir c:\\Imp"); getch(); }[/code] How to check this Imp folder exists or not?? if exists not creating again??

Member Avatar for Nick Evan
0
906
Member Avatar for ambarisha.kn

The following program is giving error as follows. please get me the solution how to debug this error. Error: Debug Assertion Failed! Program: ... File: d:\program files\microsoft visual studio 8\vc\include\vector Line: 1556 Expression: ("this->_Mycont != NULL && this->_Myptr != NULL", 0) [code] #include<iostream> #include<vector> #include<deque> #include<list> #include<algorithm> #include<functional> #include "print.hpp" …

Member Avatar for ambarisha.kn
0
168
Member Avatar for AnjaliAnuradha

I am having problem with sorting and need help with it. I have to sort the integers in an array and finally after sorting the index number of all the elements before sorting are to be preserved. I have used merge sort. The sorting is done but the index numbers …

Member Avatar for mitrmkar
0
118
Member Avatar for peachslasher

Hi all, I am having trouble understanding BST recursive algorithm. Here is the code: [CODE] int maxDepth(struct node* node) { if (node==NULL) { return(0); } else { // compute the depth of each subtree int lDepth = maxDepth(node->left); int rDepth = maxDepth(node->right); // use the larger one if (lDepth > …

Member Avatar for Alex Edwards
0
115
Member Avatar for ambarisha.kn

I wrote the code for Arithmetic, relational and binary operations. Here i have intilaised all inputs. I want to give inputs from keyboard instead of intialisation or direct Push_back from loop. How to do this? Please check the following code and please help me to give inputs from keyboard. [code] …

Member Avatar for Nick Evan
0
151
Member Avatar for sfurlow2

I was just curious; what exactly does the line cin.ignore(INT_MAX) actually do? I was always told to use it just to keep the program screen up when inputting something.

Member Avatar for Nick Evan
0
113
Member Avatar for eranga262154

Hi all, I have a disk file define as [CODE]TCHAR szTempFile[MAX_PATH];[/CODE] What I want to do is, read that file into memory stream. To a buffer. How can I do it.

Member Avatar for eranga262154
0
290
Member Avatar for vatson

I have an application with a dependency on gdiplus.dll. However, on Windows 2000, since there is no gdiplus.dll (I don't want to ship with the app....asking the user to download is what i want), the exe throws an error (this looks like a system error) saying gdiplus.dll was not detected …

Member Avatar for Ancient Dragon
0
91
Member Avatar for daviddoria

I have a file that contains lines like: 2/3/4 5/6/7 8/9/10 and I want to extract the 2, the 5, and the 8 So I am parsing the line by the ' ' delmiter to get 2/3/4 5/6/7 8/9/10 then I need to parse each of those to get the …

Member Avatar for Duoas
0
141
Member Avatar for ff4930

Hello, I have a project that needs to implement a Safe Array which is an Array that has bounds checking. On top of that I need to create a "Matrix" class which implements 2D which is basically a Safe array within a Safe array. This is also templatized. The problem …

Member Avatar for Radical Edward
0
800
Member Avatar for Latte

How to count line of code in text file or file .cpp (this .txt file or .cpp file is the input file of program) and what's function for count line of only mark code for example of this code(file input) , I want to count only "do" function that have …

Member Avatar for VernonDozier
0
186
Member Avatar for Black Magic

Hey, I was bored and had not made a program for a short while so decided to make one, Just have a few questions and some "How do you.." questions, well heres my code.. [CODE=C++]#include <iostream> #include <fstream> using namespace std; int main() { int registerID, ID; char name[20]; char …

Member Avatar for Sky Diploma
0
107
Member Avatar for Flixter

[CODE]#include <iostream> #include <vector> using namespace std; class Pair { public: Pair(int a, int b) {x=a; y=b;}; int get_x() {return x;}; int get_y() {return y;}; private: int x; int y;}; int main() {vector<Pair> set; \\input of the set of points, with 50 points Pair* a1 = new Pair(70, 64); set.push_back(*a1); …

Member Avatar for Flixter
0
126
Member Avatar for himsymcpp

Hi friends, This may a childish question but please help me out. I want to know whether there is any dfference between Heap and free Store in C++ (dynamic memory) or they are the same i.e just the synonyms used? One more thing i want to know is that where …

Member Avatar for vijayan121
0
134
Member Avatar for ambarisha.kn

Container V1: 1 2 3 4 5 6 7 I want to print the elements which are greater than equal to 3 but less than 6. How to do this using Standard template library functions.. We have logical_and, greater_equal and less_equal Predefined Function Objects. But i dont know how to …

Member Avatar for vijayan121
0
87
Member Avatar for MAXPAYNE88

Hey guys. I've been having this problem with a Dynamic list using pointers. I have built the class, then defined a MAX size to the list when first created. Then I thought about maybe the user wants to enter more values, so I made some changes. Here's the code: [code] …

Member Avatar for MAXPAYNE88
0
98
Member Avatar for chrisfrolich

I was wondering if programming a hangman game would be possible. I took a little bit of time to make something, but it doesn't seem to be working very well. Any info is appriciated! [code] #include <iostream> using namespace std; int main() { char solution[20]; //holds solution char blank[20]; //holds …

Member Avatar for chrisfrolich
0
357
Member Avatar for herrepeder

Hi, I'm using Visual Studio 2008 on Windows XP. How do I play a mono sound of approx 2500 samples over 500ms using ASIO Audio Driver? I'm really stuck on this. I've never used callbacks before, but the ASIO driver does. I need to use ASIO due to latency issues.

Member Avatar for Ancient Dragon
0
82
Member Avatar for Aamit

I am creating client -server architecture ... 1 server and 20 clients..are attached ... when computer starts client sends abc.txt file information to server ...through socket port no 8000...server take this file and rename with that comp name... problem is -> when number of clients machine on at same time …

Member Avatar for Ancient Dragon
0
135
Member Avatar for ambarisha.kn

Hi, I need some algorithms with syntax to work out logical operations using Standard template library(STLs). Please get me some examples of these or teach me regarding logical operations using STLs.

Member Avatar for ambarisha.kn
0
98
Member Avatar for wellibedamned

okay, this one's supposed to take n numbers, ints/floats, sort them, spit them out... now i have my code, and it looks fine to me, i'm doing bubblesort while checking with a bool function is the first larger than the second string... if i use two numbers, it works fine …

Member Avatar for wellibedamned
0
201
Member Avatar for ambarisha.kn

Hi, I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be V2 itself. Where we have to specify destination container. [code] replace_if(V2.begin(),V2.end(), //range …

Member Avatar for ambarisha.kn
0
103
Member Avatar for camproject

I have a file dialog.i have filtered out the type of file i need.but how could i open the file in the application after selecting it?after clicking "open" in the dialog , i need to see the file.

Member Avatar for Nick Evan
0
327
Member Avatar for QuantNeeds

Hello, So my program (to calculate n factorial) works well, except for one thing, it won’t output correctly after 12. My other 2 projects working with factorials ( calculating the constant e and e^x) worked because I used data type long. I tried doing it with my program but it …

Member Avatar for Salem
0
119

The End.