49,761 Topics
| |
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 … | |
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:) | |
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 … | |
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, … | |
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 … | |
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 … | |
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. … | |
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 … | |
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 | |
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 … | |
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 | |
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 … | |
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 . | |
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 … | |
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", … | |
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, … | |
Hi, I was reading something that said goto was bad. Why is it a bad practice to use it? | |
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]; … | |
I just want to know the logic of how to create bouncing ball application using MFC . | |
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! | |
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 … | |
[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 … | |
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?? | |
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 … | |
[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 … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … |
The End.