48,985 Topics

Member Avatar for
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
240
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
139
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
159
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
164
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
213
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
257
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
173
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
165
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
587
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
124
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
219
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
132
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
517
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
305
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
167
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
198
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
310
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
154
Member Avatar for hopeolicious

can someone help me to get my program to sort i have the logic but this is my first time doing a sort program and i cant get it to work can some tell me what i'm doing wrong [CODE]#include <iostream> #include <iomanip> using namespace std; void sort(); const int …

Member Avatar for Gnome_101
0
120
Member Avatar for F50

This seems like a simple task but the microsoft visual c++ 6.0 compiler is giving me a problem with this. Its complaining about the lines where i try to use a passed array such as "fin[i]=0". Its giving this error for the following code. "error C2109: subscript requires array or …

Member Avatar for Tight_Coder_Ex
0
177
Member Avatar for xfruan

How can i create a directory in c++ other than writing [CODE]system ("md directory");[/CODE]

Member Avatar for Tight_Coder_Ex
0
220
Member Avatar for xfruan

Hello, i'm a novice who have some ideas of the basic concepts and some advanced topics like templates and exception handling. I now want to improve my programming skills. I would very appreciate if anyone could recommend some good books to me. :)

Member Avatar for xfruan
0
176
Member Avatar for hopeolicious

Can someone help me to output each array element [CODE]#include <iostream.h> void array(); const int LIMIT = 50; float MYARRAY[LIMIT]; float value = 0; int x; void main() { for(x=0;x<LIMIT;x++) { while(value < 999) { cout << "\n\nPlease enter a number: "; cin >> MYARRAY[x]; value = value + MYARRAY[x]; …

Member Avatar for Acidburn
0
128
Member Avatar for shock1

Given the integer variables x , y , and z , write a fragment of code that assigns the smallest of x , y , and z to another integer variable named min . Assume that all the variables have already been declared and that x , y , and …

Member Avatar for Acidburn
0
90
Member Avatar for Iamhere

cout<<"how many slots are there?: "<<endl; cin>>s ; cout<<"Please enter\t" <<n<<" " "size of each slot"<<endl; j=k; for(int counter1=0; counter1<krfd; counter1++) { cin>>job_size[k]; }

Member Avatar for Narue
0
101
Member Avatar for Iamhere

cout<<"how many slots are there?: "<<endl; cin>>s ; cout<<"Please enter\t" <<n<<" " "size of each slot"<<endl; s=k; for(int counter1=0; counter1<krfd; counter1++) { cin>>slot_size[k];//this suppose to print out #size of each slot where there is s # of slots and how would I name each slot according to the number of …

Member Avatar for Narue
0
97
Member Avatar for hopeolicious

Can someone help me to output the numbers in the array that are user inputted and sort them in ascending order please this is the code i've come up with so far it .... prompts the user no less then 50 elements and a value no more than 999 it …

Member Avatar for Narue
0
106
Member Avatar for trevs234

im a beginner game game programer with C++ but i dont understand how to use a game engine so if someone could help me by giving tips or website with free info on this topic that would be great.

Member Avatar for Narue
0
103
Member Avatar for Chadmo

Aloha, I am trying to add some basic error checking to my program. I have it only accepting the correct numbers (Positive) but when a 'char' is entered, it displays my message infinately. Any ideas? cout << "For DEBUG information press 1, to omit, press 0:"; cin >> DEBUG; if …

Member Avatar for Narue
0
104

The End.