49,761 Topics

Member Avatar for
Member Avatar for Alice86

Hi all, I now using Visual C++ (Visual Studio 2005) for my project. i face some problem in set the maximum length for my edit control(text box). i have 3 edit control in the same dialog. i want set the maximum length for each edit control = 5. following are …

0
44
Member Avatar for wannabeengr

imtrying to do a math calculation that involves multiple math operation ex((a+b)*(sin(a)/sin(b)) something like this but whenever i execute the code its giving me 3 answers this is the code hoping you could help me it very urgent though thanks!! [CODE]#include <iostream.h> #include <math.h> #include <string.h> int nVar = 0; …

0
65
Member Avatar for sirus23

hello guys!I would like to give a little help for a problem which stops me from my project. take a look plz...<br> [CODE] void traverseDir( string dirname ){ string str; DIR *pDIR; struct dirent *entry; pDIR=opendir(dirname.c_str()); while((entry = readdir(pDIR)) != NULL ){ if( isDir( dirname.c_str() ) ) { if( strcmp(entry->d_name, …

Member Avatar for sirus23
0
96
Member Avatar for Nika01

Helllo,,please,help me,to write programm add balance,delete balance in search tree, TreeNode *AddBalance (Type x,TreeNode *root,int *grow) {int incr; *grow = 0; if (!root) {root=(TreeNode*) GetPlace(); if (root) {root->left=root->right=0; root->value=x; root->balance=0; *grow=1; } return root; } if (x<=root->value) {root->left=AddBalance(x,root->left,&incr); if (incr) {switch(root->balance) {case 0:root->balance=-1;*grow=1;break; case 1:root->balance=0;break; case -1: switch(root->left->balance) {case -1:root=Rebuild_L1(root);break; …

Member Avatar for Clinton Portis
0
154
Member Avatar for Mclovin1234

Hey i was trying to do a coin simulate that tells you how many heads / tails it appears and that every time heads pops up you gain $2.00 (win) and whenever tails pops up (lose) you lose $1.00. My program does not print the winnings i do not know …

Member Avatar for jonsca
0
91
Member Avatar for rohank23

Hi , I am trying to insert data into a CLOB column, but I get error of missing comma because my CLOB data value has lot's of comma and other special characters which might need to be escaped. Is there a easier way to do this, without writing code to …

Member Avatar for rohank23
0
109
Member Avatar for dotnabox

Or at least I [I]think [/I]that's the issue. Essentially, I am in the process of overloading operators and allowing users to enter data directly into the class objects. I was able to do the first one so I followed the same pattern and I get a segmentation fault when I …

Member Avatar for dotnabox
0
261
Member Avatar for Skeen

I've been having some thought, like, if I run a program, and I'm exporting a pointer to a variable "a" to a file, and I reads that information with another program, wouldn't the second program be able to modify "a" in the first program using that pointer? - Like the …

Member Avatar for Frederick2
0
90
Member Avatar for ab00120

Hi there, I am currently attempting to enhance an old program to use Windows Forms in C++. From what Ive read it would be preferable to use Visual Basic or C#; however in its current state, combined with my lack of experience in C#/VB this would be a real struggle …

Member Avatar for Ancient Dragon
0
3K
Member Avatar for NinjaLink

I need help with the programming segments below, so I can study for them...I showed my effort on trying to do them. However, I don't believe they are right. If someone can assist me with this, I will definitely appreciate it. [B]1. Determine if a word is a palindrome or …

Member Avatar for NinjaLink
0
176
Member Avatar for Ponomous

Hi, So i have written my code to solve the quadratic equation and it works. The thing I need to do is to read values for 3 variables from an input .txt file until the end of the file and output the answers for each set of variables. The variables …

Member Avatar for Fbody
0
205
Member Avatar for skarocks47

What is the coding to loop the program after a key press at the end of the program?

Member Avatar for tkud
0
87
Member Avatar for techick

The program is suppose to read from a text and count each letter of the alphabet and the counter_other counts everything else except whitespace. I'm having trouble putting this together, especially the switch. We have not gone over strings yet in class so I don't think I'm suppose to use …

Member Avatar for Ancient Dragon
0
91
Member Avatar for newbie_to_c

I have to read the maximum value from the text file that is comma separated. I tried to do several things, but I am not sure what I am missing. I would appreciate if any of you help me out. The text file is created by another program. Here is …

Member Avatar for newbie_to_c
0
159
Member Avatar for fraandres

getting a error saying the variable 'bonus' is being used without being initialized can anyone how do a initialized .... i just cant find a way [CODE] #include<iostream> #include<iomanip> using namespace std; #include<string> int main() { const double priceticket= 5.00; double numtick, percentage, total,revenue,balance,bonus; string charityname; cout<<"How many tickets were …

Member Avatar for Dave Sinkula
0
409
Member Avatar for potatosoftware

How do you measure the performance of your C++ perf-critical code ? Are you relying on automatic profilers or do you resort, for particular reasons, to compile time methods ? If today, profiling is still an issue to you, then I would announce to you the availablity of easy profiler …

Member Avatar for jbennet
-1
88
Member Avatar for gottlieb78

Hi I´m doing homework and it ask for the strcpy function by using pointers. This is my code but I always get some runtime error, don´t know why. [CODE]#include <iostream> using namespace std; void strcpy2(const char* source, char* destination); int main() { char* source = "Hello world"; char* destination; strcpy2(source, …

Member Avatar for Frederick2
0
428
Member Avatar for pavan146
Member Avatar for kingstrider

hey guys can sumone please help me by telling wat exactly is the syntax for a do while loop....for example if v want to to ask the user integers again and again till a condition is satisfied...plz help...thank u this is wat i have ritten but the loop never continues …

Member Avatar for loneal
0
82
Member Avatar for Towely

I'm trying to make a function that adds the digits of a number together and finds the sum of them. For example, for the number 9211, I want to add 9 + 2 + 1 + 1 and output the sum. Here's my function, I can't figure out where I …

Member Avatar for kri_prasad2000
0
182
Member Avatar for rajpal_jatin

Hello, Our existing code sends text file to printer successfully. However now we need to send RTF file (containing some text and boxes) instead of text files through C++ coding. When we are using the existing C++ code then we are getting the unwanted data within the curly braces{} at …

Member Avatar for abhi_elementx
0
98
Member Avatar for meme 9

hello every body >>> can you help me pl..pl..??? how i do this project in c++ ? About twelve million notebook computers were sold during the year 2000. Table gives the market share for the four largest vendors. write a program that displays the number of computer sold by each …

Member Avatar for abhi_elementx
-3
138
Member Avatar for Skeen

So I'm working on this OpenGL 3D Graph program, and like, I ran into some trouble, since I wanted it to support fullscreen, so I made the following; [CODE] int main(int argc, char *argv[]) { ... // Some stuff glutSpecialFunc(SpecKey); ... // More stuff } [/CODE] Which is calling the …

Member Avatar for Skeen
0
1K
Member Avatar for UKmason

I cant figure out how to make a function that correctly solves the max height of a parabola I know height = distance * tan(angle) - (gravity * distance^2) /2 *( speed * cos(angle))^2 I try to put this in and I get like 1.2 trillion I think im doing …

Member Avatar for Skeen
0
287
Member Avatar for rino699

The screen clean very fast cant see it move... how can make it looks btr? [CODE] int i,j,k,a; char logo[9][59]; for(a=0;a<59;a++) { logo[0][a]=262; logo[8][a]=262;} for(a=0;a<59;a++) { logo[1][a]=' '; logo[7][a]=' ';} strcpy(logo[2]," @@@@@ @ @@@@ @@@@ @@@@ @@@@ @@@@@ @@@@@ @ @ "); strcpy(logo[3]," @ @ @ @ @ @ @ …

Member Avatar for Skeen
0
98
Member Avatar for narendra.shah

hey frnds here...... i need some help..... i need a project in database or networking...... in c++/.net/java please help.....any effort will be highly obliged.....

Member Avatar for ithelp
-2
93
Member Avatar for dylank

Hi, there are several threads on this issue, but none seem to give me a good answer. My current code is this (This program plots points on a graph) : [CODE] //Put line equasion into arrays. #include <iostream> using namespace std; double getData(int counter, double m, double b) { int …

Member Avatar for invisal
0
1K
Member Avatar for Niner710

Hi, I have a simple question on trying to set shared ptr to NULL. I get an error(binary '=': no operator found which takes a right hand operand of type 'int') when I do this... [code] typedef std::tr1::shared_ptr<A> A_smrt; A_smrt = NULL; [/code] Why is this wrong?

Member Avatar for abhi_elementx
0
104
Member Avatar for BenJammin89

This program is suppose to display MPG's (total), and the combined MPG of all the total MPG's you input. [code] // Exercise 4. 12: ex04_12.cpp #include <iostream> using namespace std; int main() { double mpg; double gallons; double combinedMpg = 1; double total; while ( mpg != -1 ) { …

Member Avatar for BenJammin89
0
129
Member Avatar for qwertymk

this is what I made for a = operator: [code] matrix matrix::operator= (double a[]) { for (int i = 0; i < rows * clms; i++){ //std::cout << i<< "=" <<a[i] << " "; *(x +i) = a[i]; //std::cout << i<< "=" <<x[i] << " "; } return *this; } …

Member Avatar for qwertymk
0
121

The End.