49,761 Topics
| |
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 | |
| 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
| 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 … |
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 … | |
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 … | |
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; } | |
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 … | |
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 … | |
hi, any1 knows is there any website giving free open source SIP softphone with video in C++ format? Rgds, | |
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 … | |
I am having trouble trying to merge 2 strings into 1. Is this possible if so how is it done? | |
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 | |
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 … | |
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 … | |
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 … | |
[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 … | |
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 … | |
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 … | |
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. … | |
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 … | |
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) … | |
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 … | |
how do you write exponents in c++ i though it was "exp (#)" afterthe variable am i right? | |
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; … | |
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. | |
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 … |
The End.