49,761 Topics
| |
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 … | |
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; … | |
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, … | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
What is the coding to loop the program after a key press at the end of the program? | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
plz tl me how to find length of integer array | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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]," @ @ @ @ @ @ @ … | |
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..... | |
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 … | |
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? | |
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 ) { … | |
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; } … |
The End.