49,761 Topics

Member Avatar for
Member Avatar for noorinlalani

Hi, I have developed an application in Borland C++ 5.02 (Not builder). I need to now use Borland C++ Builder 6. But I am unable to open .ide project file (created in Borland C++ 5.02) in Borland C++ Builder 6. Can anyone please suggest how can I open .ide file …

0
46
Member Avatar for all blacks

Read line by line from data2.txt, compare with data1.txt lines, if match , remove , else append to a new file (result.txt) . mathces are exact string matches, both are text files. And i also need to make the directory of the file to be user input, so this program …

Member Avatar for ivailosp
0
203
Member Avatar for socrates25

For my assignment i need to turn a Hilbert Curve with recursion into a Moore Curve using recursion. We are using GLUT to draw the lines to the screen. I can see the pattern i need to use with the recursion but im not sure if i need to change …

0
77
Member Avatar for danieldan

Hellp all! Hoping to make new friends here: Anyways, I am new to C++ and to programming. I just started reading the book "Problem Solving with C++, 7th ed." by Walter Savitch. I am already having problems. One of the programs I am trying to figure out (not in the …

Member Avatar for Wiki_Tiki
0
215
Member Avatar for robertmacedonia

Hi, it's me again with another question. Here is the thing. I have a small game - a picture is shown and you should type the name of the person that's on the picture. Then you have a "check" button which when clicked checks if the answer is correct or …

Member Avatar for Wiki_Tiki
0
200
Member Avatar for peyman_k

Hi All, I need a library in C++ for compressing audio from PCM format (obtained using waveIn* API) to AGC or MP3. I am using windows Vista as platform and to me compression speed is of great importance, i mean if two library is doing the same thing but one …

0
49
Member Avatar for xxjinseruxx

Hey, basically im trying to create a Kill/Death ratio program where the user types x number of kills and y number of deaths and this creates an answer for ratio " :1" for example " how many kills ? 3388 " "How many deaths? 1237" "Your ratio is 12.129:1" the …

Member Avatar for xxjinseruxx
0
995
Member Avatar for TheBeast32

Hi, I need to get the output of a program called with the system() function. How would I do this?

Member Avatar for TheBeast32
0
370
Member Avatar for Jennifer84

I have 2 Forms like this. What I do with the codes below is to press a button on Form1. When doing this, button1 on Form5 will activates. This works perfect. I use this code: Inside Form5: [code] public: System::Void PressThisButton() { button1_Click(this, EventArgs::Empty); } [/code] Inside Form1: [code] #include …

0
52
Member Avatar for RandV80

This may be a simple answer, but after self teaching myself on vectors for a few hours of I haven't been able to find the answer. I'm using class objects in a vector, and trying to complete the delete functionality according to a class variable. [code=c++] #Identify BUFFER 8 class …

Member Avatar for RandV80
0
86
Member Avatar for fmwyso

Hey, I am currently reading "Accelerated C++" (Page 100, not far) and I'm starting to get a bit confused... In console application mode for VC++ (MSVC), the code in the book works fine and everything is fine and dandy. The code looks the same as the book and it's not …

Member Avatar for Wiki_Tiki
0
127
Member Avatar for samatGE

I am trying to load a combo box up ....using .AddString and when i walk thru the debugger it seems to be working just fine....but there is nothing showing up in the dropdown CCombobox...can someone please help....thanks

Member Avatar for Ancient Dragon
0
91
Member Avatar for gangsta gama

Im sorry if my game code is long, but, the save feature wont work. Their are no errors, but when I load the game and buy weapons the stats are correct, but when I save and load It the stats are not there. Can you please help me? Yes I …

Member Avatar for dwks
0
213
Member Avatar for gispe

hi! ive compiled a program that gives me this error: (88) : error C2296: '%' : illegal, left operand has type 'float' (94) : error C2296: '%' : illegal, left operand has type 'float' (100) : error C2296: '%' : illegal, left operand has type 'float' thing is that i …

Member Avatar for gispe
0
224
Member Avatar for kinger29

I am trying to create a 2d array in my program that can hold CStrings. I need to be able to add my CString to any row and column in the array(not just at the end) and I need it to be able to grow in size. Does anyone know …

Member Avatar for Lerner
0
166
Member Avatar for sunny1304

hi guys, this is my first post here. may be my question sound very silly and stupid to you....apology for that. can anyone plz provide me the above algorithm : 1. c++ algorithm for finding the i th smallest element from a binary heap . 2. c++ algorithm to find …

Member Avatar for VernonDozier
0
109
Member Avatar for bleh1318

Hi All, I'm having a weird problem. I'm trying to do division like this: [CODE]vector = timeStamp / 12800.0;[/CODE] where vector is a double and timeStamp is an int. The answer that I get is a double, however it's only to 2 places of precision. For instance 28521602 / 12800 …

Member Avatar for VernonDozier
0
142
Member Avatar for shAq

I am writing a 3D graphics program to read and display *.stl files. These are stereo lithography files generated by 3DMax. Any idea how to do that? This file format consists of data as in following format: ********************************************* solid Object01 facet normal -9.999635e-001 -7.604078e-008 -8.545205e-003 outer loop vertex 1.033284e+001 2.616666e+002 …

Member Avatar for saud3001
0
360
Member Avatar for coveredinflies

Hi :) I am fairly new to programming and am trying to error check the user input. I stumbled upon the 'isalpha' etc functions and so my plan is to loop through the array checking everything is a number or (the one) decimal point. However I am using getline for …

Member Avatar for CoolGamer48
0
4K
Member Avatar for Nemoticchigga

I am attempting to use a queue. I am doing it just like an example i read. I am doing a vs2005 form applicaiton. [CODE]#pragma once #include <queue> public ref class DataSource { public: DataSource(void); void DSInitilize(void); char* getNextElement(void); System::Void setNextElement(char* value); private: queue<char> MessageQueue; };[/CODE] It is not finding …

Member Avatar for ArkM
0
133
Member Avatar for Pikachumanson

Ok here is what I got so far. When you type add, it asks what object would you like to add When you type list, it lists those objects When you type exit, you leave the program What I would like to do is create a search function where I …

Member Avatar for Pikachumanson
0
256
Member Avatar for sahmedsa

int a = 10; int* b = &a; int c = 4; int* d = &c; (*d)++; d = b; *d = c - *b; cout << a << " " << c; Output 5 -5 I am having difficulties understanding pointers, like I know that *something means the value …

Member Avatar for sahmedsa
0
260
Member Avatar for Wiki_Tiki

Hi again, It's me, the C++ fatal n00b :( I was wondering about something. I just completed a program in Visual C++ 2008, and I need some way of the user installing it with Windows Installer. (I need a setup file that's able to install into program files, add desktop …

Member Avatar for Wiki_Tiki
0
91
Member Avatar for manzoor

How do you compile this whole project in Visual C++ Express Edition ? The link is below ? [url]http://www.codeproject.com/KB/cpp/loggerservice.aspx[/url] Will simply creating a new project and inserting all the files and then clicking Build Solution help ? I don't want you to do this for me. I want to learn …

Member Avatar for manzoor
0
111
Member Avatar for kneel

There are two general comments about pointers 1. Pointers increase the efficiency of our programs 2. Pointers degrade reliability of C++ programs due to security issues Give your views on these comments

Member Avatar for oliver_mk
0
64
Member Avatar for Lukezzz

I have declared a 2D vector that look like this. Now I need to have a 3D vector but dont know how you declare a 3D vector. As seen I have put 500 as a value for 1D. Then I push_back the 2D and I also will push_back the 3:rd …

Member Avatar for Nick Evan
0
2K
Member Avatar for OmniX

I would like to make a "changable" array. Meaning: - Not initializing the size. - Add arrays to the array. - Remove arrays from the array. I expect the array size to be 9million or something similar. Was not sure the best plan of attack after googling and reading books. …

Member Avatar for OmniX
0
499
Member Avatar for greyghost86

Need a little help here on the frist part of this program. I have no finished the rest of code but i am trying to test out and run what i have so far. but i keep getting this error from the last brace of the code: `syntax error : …

Member Avatar for Salem
0
180
Member Avatar for gispe

hi ppl! im here again :S with another problem, which, is more a question about if what im doing is ok. the thing is i have to do a problem that counts the total of letters sent, the total of packages sent, total of letters and packages sent on the …

Member Avatar for VernonDozier
0
145
Member Avatar for TheBeast32

Hi, I have been trying to make a dialog, but I keep getting an error. I'm using Dev-C++ 4.9.9.2, and I get this error "[Resource error] syntax error". Here's my code for the dialog: [Code] IDD_CONNECT DIALOG DISCARDABLE 0, 0, 300, 250 STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU …

Member Avatar for TheBeast32
0
124

The End.