49,761 Topics
| |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
Hi, I need to get the output of a program called with the system() function. How would I do this? | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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. … | |
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 : … | |
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 … | |
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 … |
The End.