49,761 Topics

Member Avatar for
Member Avatar for cbsamuels

I want to get the x y coordinate of the cursor on an image. CursorPos is included in the help files but not how to use it. Borland C++ Builder5. Can anyone help me? Thanks Chuck

Member Avatar for 1o0oBhP
0
96
Member Avatar for j.kelly

I'm pretty new to C++ and I'm having a problem with a Uni coursework. I have two classes A & B which need to be able to call each others functions so they each hold a pointer to the other. I had the problem that they #included each other so …

Member Avatar for 1o0oBhP
1
102
Member Avatar for Asif_NSU

I want to make a program that will start off by opening a text file(blank). The user will put an expression in the file and as he hits the enter(enters a newline character) the result will be shown in the next line of the same open file. Itz almost like …

Member Avatar for Narue
1
256
Member Avatar for ok555

Ok, im new to c++ and i looked around and couldn't find anything on it.. I have a global char such as the one below, i made a loop to go through and basically "grab" each name in the names list and then display it to me.. but instead of …

Member Avatar for ok555
1
161
Member Avatar for jayrads

I'm writing a c++ program for a class I'm taking. I'm having a problem getting the string variable into the void print_results function. Basically, at the beginning of the main function, I ask the user for their name. I can use the name variable in the main function and it …

Member Avatar for jayrads
1
201
Member Avatar for Tetsu

Hi this is tetsu here I need a little help regarding input and output. I am trying to write a program to read information from a text file as long as there is names and numbers next to them (test score numbers). For each name read, a sequence of test …

Member Avatar for Tetsu
0
188
Member Avatar for j.kelly

Can somebody please tell me where I should put an enumeration which will be used by several classes. [code]enum Direction { UP = 1, DOWN = 2, NONE = 3 };[/code] All of the classes have their own .h and .cpp files and at the moment I have the enumeration …

Member Avatar for j.kelly
0
82
Member Avatar for evilsilver

ok i am a new programmer and am running in windows xp and 98 and am using the borland c++ builder 3, I am trying to make a window that will simply ask the user to input a string (called pathname) and store it to another file for use in …

Member Avatar for Tight_Coder_Ex
0
219
Member Avatar for dal4488

I'm have a really hard time with this program and am totally lost. I'm trying to write a program that reads a set of integers and then finds the sum of the even and odd integers. So far this is all I have come up with, but I'm sure it's …

Member Avatar for dal4488
0
170
Member Avatar for arikeri

consider this [CODE] vector<int> :: iterator it; int i; vector<int> A; for (i=0; i<5; i++){ A.push_back(i); } for(it = A.begin(); it != A.end(); it++){ cout<<*it; }[/CODE] vector<int> :: iterator it; int i; vector<int> A; for (i=0; i<5; i++){ A.push_back(i); } for(it = A.begin(); it != A.end(); it++){ cout<<*it; }

Member Avatar for Narue
0
73
Member Avatar for arikeri

Hi, I want to declare a function, which takes input of a set of integers and returns a set of set of integers , I tried this but, it ain't correct , plz tell how I should do what I want [CODE]#include<iostream> #include<set> #include<string> using namespace std; int Q; int …

Member Avatar for Dave Sinkula
0
227
Member Avatar for riturajraina

Please help.I am in a desperate condition. I am getting the error message "segment _TEXT exceeds 64 k" when i am linking my program in borland turboc3 3.0 compiler. Can anyone suggest a remedy for this. I have tried reducing some lines of text from my program but to no …

Member Avatar for Narue
0
245
Member Avatar for geoff_2005

hi, any1 knows is there any website giving free open source SIP softphone with video in C++ format? Rgds,

Member Avatar for geoff_2005
0
142
Member Avatar for Raven11

I'm creating a registration C++ form and everything is working except one thing (at this point anyways). [code]private: System::Void Register_Click(System::Object * sender, System::EventArgs * e) { Username = UsertxtBox->Text; Password = PasstxtBox->Text; if ( Username == "" || Password == "" ) { ErrorTxtBox->Text = "Error in Registration."; } else …

Member Avatar for Raven11
0
160
Member Avatar for jonnie83

I am having trouble trying to merge 2 strings into 1. Is this possible if so how is it done?

Member Avatar for Dave Sinkula
0
166
Member Avatar for hopeolicious

does anyone know the function that will take an array of text and cut it up into words and also cout different words; ex. I prompt the user to input some text and the i send that text to a function that couts each different word on a new line

Member Avatar for Acidburn
0
444
Member Avatar for evilsilver

ok i know how to use mciSendString, it is mciSendString("[play/stop] [path to file]",NULL,0,NULL); , (for audio is what i am using it for) but i don't understand what the NULL,0,NULL is for, can anyone help me? and another thing is there a way to make the file i play with …

Member Avatar for Dave Sinkula
0
214
Member Avatar for Tetsu

Hi this is my first post and I need help on my first program on making some shapes in c++ using for statement and using *. Its an simple for statement program but I got nothing. Im trying to making an acute triangle using *. I got the triangle down …

Member Avatar for Narue
0
259
Member Avatar for vegaseat

I am not shamelessly promoting this book, I just happen to like it and use it a lot! "Standard C++ Bible" by Stevens and Walnum, published by Hungry Minds. This 800 page plus book is loaded with samples and comes with a CD-ROM containing all the samples and a nifty …

Member Avatar for wbk
0
174
Member Avatar for Dani

[b]Recursion[/b] Recursive functions are, interestingly enough, functions which call themselves. Instead of performing calculations by calling other functions, they call themselves by passing in different parameters each time. This forms an almost loop-like effect, where each time a simpler calculation is performed by the function. This is repetitively done until …

Member Avatar for wbk
0
166
Member Avatar for fastcarz3

can anyone come up with a solution for this ? real quick for me? the factorial of a nonnegative integer n is written n! ("n factorial") and is defined as follows: n!=n*(n-1)*(n-2)*.....*1(for values of n greater than to 1) and n!=1 (for n=0 or n=1). For example, 5!=5*4*3*2*1, which is …

Member Avatar for Narue
0
615
Member Avatar for winbatch

Hi, If this should be directed to another group, please let me know... I've been working with templates for a few weeks and have been able to develop some nice code on solaris using the Forte C++ compiler (version 7). However, nothing related to templates seems to be compiling correctly …

Member Avatar for 1o0oBhP
0
125
Member Avatar for Raven11

Hello, I've worked on Console Apps. For a while and am moving to visual C++. I am working on a form right now and am stuck. What I want to do is if the user prushes a button, it will display the text contained by that button to a label. …

Member Avatar for Raven11
0
293
Member Avatar for notdumb

Hello, I am working on this tic tac toe program for my computer science class to develop a tic tac toe game that uses artifical intelegence for a computer player. Anyway, I have a few question, help with any or all. First, I am getting unresolved externals errors. I do …

Member Avatar for Dave Sinkula
0
136
Member Avatar for JayseR

I'm trying this new project, like this. Write a program which will use functions to compute the distance between 2 points on a plane given their coordinates. If one point is located at (x1,y1) and the other is located at (x2,y2) then the formula for computing the distance is sqrt(sqr(x2-x1) …

Member Avatar for JayseR
0
520
Member Avatar for Fasola

In all my classes never taught us how to us C++ I still don't know how to [I]put it to use[/I] My professors taught us how to write it, but now how to use it every program we wrote would excute some programming by inputing data or outputing data on …

Member Avatar for Fasola
0
308
Member Avatar for tyczj

how do you write exponents in c++ i though it was "exp (#)" afterthe variable am i right?

Member Avatar for Narue
0
169
Member Avatar for Nauro

I'm currently writing a program and I want it to read in data from a source and if needed change some or all of it and re-write it to the same source file. I have: where all the variables are ints in a struct called date. ifstream ifs("data.txt"); ifs>>date.hours; ifs>>date.minutes; …

Member Avatar for Narue
0
266
Member Avatar for dallin

I have random numbers such as 1 6 8 5 7 3 9 2 4 in a 1 dimensional array what for loop do I use to reorder the numbers from 1 through 9? thanks.

Member Avatar for Narue
0
314
Member Avatar for iorisendoh

i have a sample program,can someone help to find the error of this program or someone to correct this program coz i don't know what is the error of this program this is the sample program of mine [code] #include<windows.h> #include<string.h> #include<strstrea.h> #include"mydialog.h" void main() { LONG FAR PASCAL _export …

Member Avatar for Tight_Coder_Ex
0
155

The End.