49,761 Topics

Member Avatar for
Member Avatar for Liszt

I have encountered a problem when using the backgroundworker. What I do is that I will have the oppurtunity to press the cancelbutton to stop the backgroundworker. The code that I am using below works without any problem as expected. The thing that happens is that an error message occurs …

Member Avatar for Liszt
0
597
Member Avatar for mypopope

Hello I'm new to computer programming. I just want to ask where to download a C++ installer and what compiler is good to use. thank you:)

Member Avatar for ArkM
0
138
Member Avatar for rkumaram

I have few question, If i have two private member array in my class how can I use [] operator for my use, something like following, [code] class foo { int iarray[10]; char carray[10] public: //constructors //copy cons nd assignment ans all }; [/code] So my first question is When …

Member Avatar for ArkM
0
145
Member Avatar for andrea_kay

I need desperately help with this homework assignment. And I'm starting from the beginning. It's a problem that makes us write a counting loop program, and I believe you use while and if else in this program. Here is the problem and the given outputs. I got started on it, …

Member Avatar for DevonMcC++
0
123
Member Avatar for JimD C++ Newb

Hello all!!! First off, I'd like to say THANK YOU for such a great site. I've learned a lot here in the last 2 months! I'm currently in a Data Structures class and our current assignment is: Read data from a .dat file (name, address, phone #) and store the …

Member Avatar for JimD C++ Newb
0
104
Member Avatar for Freaky_Chris

Hi, i'm havnig problem with calling CreateThread. The problem is that it gives me a conversion error from const void* to void* [CODE=Ccplusplus]DWORD dwThreadId; HANDLE myThread; myThread = CreateThread( NULL, 0, MyThreadFunction, "HELLO", 0, &dwThreadId); [/CODE] dwThreadId id is the problem, the function is supose to take a pointer to …

Member Avatar for Freaky_Chris
0
274
Member Avatar for afg_91320

im making a program that will let you play rock paper scissors with the computer. the code will be in function format with a switch statement for the menu. this is how it should look: welcome to rock paper scissors! select a choice 1. rock 2. paper 3. scissors 4. …

Member Avatar for kenji
0
346
Member Avatar for chern4ever

i would like to insert my data from txt file to array. but each line of my txt file contains more than one data. eg : "Data1","Data2","Data3","Data4" how do i sepreate each data to array[0][0],array[0][1],array[0][2] and array[0][3]?? i only know how to use getline function to take a whole line …

Member Avatar for VernonDozier
0
231
Member Avatar for unbeatable0

Just wanted to know... is there any variable in C++ that can hold larger numbers than [icode]unsigned long long int[/icode], or is it the largest variable? Thanks in advance :P

Member Avatar for dmanw100
0
127
Member Avatar for gregorynoob

okay...i've got another wired counting problem, this time it's about rectangles! gotta find the minimum number of lines to divide a rectangle into squares! i went for...ehh well a dumb idea of cutting the max square off, and cutting the little ones recursively, but... doesn't always work. you're given the …

Member Avatar for dmanw100
0
146
Member Avatar for Nemoticchigga

I want to delete a bitmap. How do I do this in c++. DestBitmap->Save("TempImage2.bmp"); . . . . . //later something like Delete("TempImage2.bmp"); is there a way to do this. thanks, nemo

Member Avatar for Liszt
0
126
Member Avatar for elizabeth.h1

hello all I am getting an failed assertion when using the _tcscat_s function. Expression : (L"String is not null terminated" && 0) file : _tcscat_s.inl line : 32 and the assertion does not fire always, and I try to figure out why but without any success how can i fix …

Member Avatar for Salem
0
215
Member Avatar for sharareh26zaman

hello dear friends I have written a simple file merger and the code has been shown as bellow but I get an error that I do not how to solve it please guide me .

Member Avatar for Salem
0
119
Member Avatar for uae_uae99

after i tried many times to solf this program i couldnt do it this is the sorce of my program and it is about sell and rent a care. my problem is when i run do progrm it works but when i try to see the car i want buy …

Member Avatar for sidatra79
0
152
Member Avatar for blackryu21

I need help to change certain values in an Array that I have to a character array. Here's the code [code] #include <iostream> using namespace std; int main() { char X; int nROWS = 4; int nCOLUMNS = 4; int anArray[4][4] = {{0,1,2,3}, {10,11,12,13}, {20,21,22,23}, {30,31,32,33}}; string headings[4] = {"LA", …

Member Avatar for Freaky_Chris
0
103
Member Avatar for cicigirl04

Here is my code. I have a warning that (127) : warning C4715: 'ComputeSum' : not all control paths return a value [code] #include <iostream> using namespace std; const int MAX = 10; // Function prototypes, i.e., declarations for the functions we have created void ReadInput (int A[], int number, …

Member Avatar for sidatra79
0
127
Member Avatar for TheBeast32

Hi, I was reading something that said goto was bad. Why is it a bad practice to use it?

Member Avatar for Narue
0
119
Member Avatar for cplusplusgeek

I want the following program to use lesser memory as much as possible. Any suggestions? [code] #include <iostream.h> #include <conio.h> void InputNum(void); void SearchNum(int); int numArray[10]; main() { int num; InputNum(); cout<<"\nEnter the number to be searched:"; cin>>num; SearchNum(num); getch(); } void InputNum(void) { for(short i=0;i<=9;i++) { cout<<"\nNumber "<<(i+1)<<":"; cin>>numArray[i]; …

Member Avatar for Freaky_Chris
0
118
Member Avatar for ashishchoure

I just want to know the logic of how to create bouncing ball application using MFC .

Member Avatar for Ancient Dragon
0
61
Member Avatar for jklcody

I use the google data api for .net,but when excute it ,it give me a message that "unable to connect to the remote server",so I want do it as the google data protocol to do it use c++. Everyone,who can give me an example to study or some hint? thanks!

0
30
Member Avatar for trick

Hi everyone. I am totally new in MySQL and I am wondering if you could guide me. I am to make a simple company database (name, salary, age, etc) using three programs: DevC++, Glade 2 and Xampp, wherein a user could add, serach, delete entries. I can't seem to find …

0
41
Member Avatar for AorA

[code]#include <iostream> #include <windows.h> using namespace std; void about(){ cout<<"Expence-List 14/10/2008:"<<endl <<"Brought to you by www.******.com"<<endl <<"Programmed by **********."<<endl; Sleep(4000); system("cls"); } int MenuOne(){ int MenuSelection=0; cout<<"What would you like to do?"<<endl <<"--------------------------------"<<endl <<"1. Create a new expence list."<<endl <<"2. Edit a previous expence list."<<endl <<"3. View a saved expence …

Member Avatar for AorA
0
184
Member Avatar for afromong

basically if i ask for an string i.e. i ask someone a question cout<< "is this correct yes or no?"; cin >> a; and then a number is input the program just goes crazy how do i solve this??

Member Avatar for stilllearning
0
87
Member Avatar for kenji

Hey guys I'm having a strange problem with my program and I'm not sure how to solve the problem. I have a function which takes an array clears multiple white spaces to make a sentence so [code=CPLUSPLUS] "abc def ghi" //becomes "abc def ghi" [/code] and it returns the length …

Member Avatar for stilllearning
0
74
Member Avatar for BINDERJ2

[code] #include <iostream> using namespace std; int main() { int speed, time, distance; // Get the speed. cout << "What is the speed of the vehicle in mph?\n"; cout << "(Enter a value greater than 0): "; cin >> speed; // Validate the input. while (speed < 0) { cout …

Member Avatar for stilllearning
0
178
Member Avatar for DemonGal711

Okay, I know what's wrong with my program but I don't know what to do to fix it. I have to take a program we previous made and make it a template class. Okay, sounds easy enough. I know all the writing it right cause it ran fine before, now …

Member Avatar for Alex Edwards
0
3K
Member Avatar for kittycat07us

Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. …

Member Avatar for Alex Edwards
0
413
Member Avatar for shopnobhumi

I need to write a program where it would ask the user to enter a positive even number,when entered if wrong then it would say value is illegal and will terminate the program. If it is even then program prints out the square of the number. I have just started …

Member Avatar for shopnobhumi
0
96
Member Avatar for tones1986

Hey all - i am working on a implementation of a binary tree. I have all of my code and it is from an previous project for the most part. except a few changes ... i have to use a driver program for this that creates a tree, deletes the …

0
62
Member Avatar for Razzar

Hello I have this code bellow i need some help with. im trying to make a number game but i have a problem that i cant solve, the loop i made dosent update the grid like it's supposed to do. when you first start it you will se 2 grids …

Member Avatar for skatamatic
0
123

The End.