49,761 Topics

Member Avatar for
Member Avatar for Umm...

Hi Im working on a c++ project that requires me to have a simple winsock client server program but the only thing is that it needs to be non blocking. Now this wouldnt be a problem except that im creating this for a windows console application. I also want to …

Member Avatar for Ancient Dragon
0
101
Member Avatar for costantinos

hello i am stuck at an IO problem and i need some help. I need to read a file that i have but i want to parse it char by char and store the contents in an array. in order to explain i have a file which has two columns, …

Member Avatar for costantinos
0
127
Member Avatar for freemind

Hi everybody! I recently wrote a little simulation program, that simulates a real-time elevator system with 3 elevators. Since the code is around 530 lines I presume it is not a good idea to paste it here. There is some number of minor flaws of logical type and I would …

Member Avatar for Rashakil Fol
0
270
Member Avatar for yuelabtina

If we don't know the size of the array before running, usually we use the dynamic allocation. My question is when I already define and allocate memory for a pointer to two-dimensional array, may I directly use the array expression A[i][j] to this pointer as I showed as following? Borland …

Member Avatar for Dave Sinkula
0
153
Member Avatar for yuelabtina

Hi, I wrote a class WAVELET1 in borland c++ 6.0 environment. And used this class member function in another file. It always said there was error when compiled. The error messages were as followings, [QUOTE] [C++ Error] wavelet.h(6): E2238 Multiple declaration for 'WAVELET1' [C++ Error] wavelet.h(6): E2344 Earlier declaration of …

Member Avatar for yuelabtina
0
235
Member Avatar for Woobag

Ill put my code at the end, as not to scare off anyone from reading on past the code (as if something so simple could scare!) I basically wrote this tonight. I have been working on my C++ skills, specifically in the way of learning newer concepts...such as implementing OOP, …

Member Avatar for Ancient Dragon
0
250
Member Avatar for ganesh_i

Hi! I have a C code of 1800 lines. I want to use this code to make a DLL in Visual C++. I am novice in using VC++. Can you please tell me how to do it? Is there any guidance available on the net for writing DLLs in VC++?

Member Avatar for Ancient Dragon
0
88
Member Avatar for wawankot

Dear All, I have alot of old funtions that have 'FILE *' as passing parameter. Now I am using Compound File...It use IStream. Does anybody know how to convert IStream to FILE* ? Thank's

Member Avatar for wawankot
0
84
Member Avatar for dev.cplusplus

Hi, to all I know this was ask before, but in the Post you say search in Google, I did and I didn't found what I'm looking for. How to connect to SQL Server from C++ code? I found the tutorial: [URL="http://www.codeproject.com/database/sqlconnect.asp"]http://www.codeproject.com/database/sqlconnect.asp[/URL], and is working and is very good, but …

Member Avatar for Ancient Dragon
0
160
Member Avatar for angle188.shroff

Hi I have one opensource of vc++. While executing this code it is giving the following errors. 1)error C2433: 'HWND' : 'inline' not permitted on data declarations 2)error C2143: syntax error : missing ';' before '{' 3)error C2447: '{' : missing function header (old-style formal list?) 4)error C4430: missing type …

Member Avatar for Dave Sinkula
0
470
Member Avatar for brale

J don't know how to detect mouse click and how to get cordinates of mouse pointer in the moment of click? J need functions that detect mouse click on console.

Member Avatar for brale
0
110
Member Avatar for Mamata

Hi, I'm not a beginner in C...I'm more used to C/C++ programming through Microsoft visual C++ rather than Simple compilers such as TurboC. Now I've loaded TurboC in my home PC so that my brothers get started with C programming... But we are not able to compile any program... Error: …

Member Avatar for WaltP
0
151
Member Avatar for BronxBoriqua

I want to learn C+ but i want to start with a simple compiler. I have access to Borland C++ and Visual studios.net but they are way to overwhelming. Can some body give me names of decent simple programs that I can learn with.

Member Avatar for jetru
0
143
Member Avatar for isaacmacdonald

I'm using the latest VS C++ express edition for a basic intro to c++ class that is largely focused on numerical applications. Anywho, for whatever reason, I'm getting strange behavior from scanf("%c",&whatever). The program is supposed to use switch to perform some operations on input integers, but way before I …

Member Avatar for WaltP
0
105
Member Avatar for ghadahelal

hallo i want 2 know if there is a function that reads from an input file and after reading this char will disapear. i mean the read char will b disappeared.

Member Avatar for Ancient Dragon
0
214
Member Avatar for CharlesTeck

I am using a list template from the STL in BorlandC++ Builder and have a problem in that I can't get it to release the memory it uses once I reduce the size of the list. The documentation states I should do the following: [code] // Remove data from the …

Member Avatar for Salem
0
190
Member Avatar for CharlesTeck

I am having a problem with a StringGrid in BuilderC++. The help file says that the RowCount and ColCount manage the size of the StringGrid. My problem is that it only consumes more memory and never releases any memory, even if I set the RowCount and ColCount to 1,1. I …

Member Avatar for CharlesTeck
0
164
Member Avatar for johnray31

hello friends, as i know header file contain the declaration then in which file they contain implementation/initialization and where these files are put in turbo c++ compiler i am able to see header files declaration but where is implementaion/initialization file is they are put in same directory with same name …

Member Avatar for johnray31
0
193
Member Avatar for startspark9

im using the borland turbo c++ compiler. I have it installed correclty but when i try to run the basic "hello world" program i get this "warning w8065 call to function 'Printf' with no prototype in function main" i would greatly apprieciate it if some one could tell me what …

Member Avatar for John A
0
149
Member Avatar for gorgonzola357

I'm just starting to learn C++, so bear with me please. I've started with a a simple example problem copied out of a book, and I've checked and re-checked several times to make sure the code is identical. The code is: [code]#include <iostream> int main() { int x = 5; …

Member Avatar for gorgonzola357
0
79
Member Avatar for iamthwee

Ok basically, I'm trying to sort by class definition in c++. For example I have a class:- [CODE] class crap { private: string word; int word_length; ...[/CODE] Which gets words from a list and then sorts them by word length or in alphabetical order. However, I couldn't find anything useful. …

Member Avatar for iamthwee
0
231
Member Avatar for luckycharms3657

my connnect four program will compile but nothing is displayed just a white screen i know that the code is not finished but i just need help making it display what i have so far [code]#include<u:\C Plus\LVP\gui_top.h> #include<u:\C Plus\LVP\matrix.h> //-------------------------------------------------------------------------------- class ButtonClass { public: ButtonClass(String Text, int X1,int Y1, int …

Member Avatar for luckycharms3657
0
524
Member Avatar for mikki2

hi i am trying to "divide" the following code...so that it has a header file and the main file. i tried to seperate the it but when i do it says "nothing to do at all" or "nothing happened at all"(one of them) ere is the original code. can you …

Member Avatar for mikki2
0
318
Member Avatar for jaden403

I have two text files that I am trying to compare (test.txt and removewords.txt. If a word from removetext.txt is found in test.txt it should be excluded from the output; otherwise it should be displayed. Here is my code: [code] while ( inClientFile >> word ) { while ( inIgnoreFile …

Member Avatar for jetru
0
158
Member Avatar for waseem3000

<<mod edit: threads merged>> I need to write a recursion function recursiveMinimum that takes an integer array and the array size as arguments and returns the element with the smallest value in the array. The function should stop processing and return control to the caller if it receives a one-element …

Member Avatar for Lerner
0
266
Member Avatar for gampalu

In c++ how do I count the number of strings for the first line of a stream?

Member Avatar for Dave Sinkula
0
409
Member Avatar for hay_man

Hi guys, hope you can help me here. I have to write a program which does a complete shuffle of an array. For example, it would replace the array {11,22,33,44,55,66,77,88} with the array {11,55,22,66,33,77,44,88} or 12 23 34 45 56 67 78 89 90 with 12 56 23 67 34 …

Member Avatar for tech2me
0
197
Member Avatar for molayos

No header file to do https in "C" Anybody knows good C based utility (not C++) that allows me to do post xml documetns via https to the server Need desperate help

Member Avatar for Salem
0
109
Member Avatar for gampalu

Hi, In C++ how do I get information from a configuration file and put it in variables. A file like this one: [CODE] # # The number of inputs for each epoch # Default value if omitted: 60 # InputNumber 60 # # The maximum epochs allowed in the network …

Member Avatar for gampalu
0
216
Member Avatar for l0g0rrhea

Hello, I am trying to teach myself C++ and am currently studying file I/O. What I am trying to do is this (and I am sure you have heard this before): open a text file and output each word with the number of occurrences. For example, if the file contains …

Member Avatar for iamthwee
0
216

The End.