49,761 Topics
| |
hi i am new to programming and have had problems installing C++ on vista. Is it possible to get C++ working on vista or will I need to switch back to XP or ubuntu? Does Bloodshed work on vista? | |
This is a section of code: [CODE] this->SquareImage1->Visible = false; this->SquareImage2->Visible = false; this->SquareImage3->Visible = false; this->SquareImage4->Visible = false; this->SquareImage5->Visible = false; this->SquareImage6->Visible = false; this->SquareImage7->Visible = false; this->SquareImage8->Visible = false; this->SquareImage9->Visible = false; this->SquareImage10->Visible = false; this->SquareImage11->Visible = false; this->SquareImage12->Visible = false; this->SquareImage13->Visible = false; this->SquareImage14->Visible = false; this->SquareImage15->Visible … | |
Hey guys (and girls) I'm not new to C++ but it has been a while since I've used it. I'm having an issue that I can't seem to place my finger on. I have the two bits of code below. The first comes out fine, or as I expect the … | |
Is there a way to add months and their respective days in my + operator?[code]Date operator + (Date const& dt, Month const& m) { jdn_type months_to_add = m.month_; jdn_type days_to_add; gregorian_type g = dt.gregorian(); long d = std::get<1>(g); if(d == 1){ days_to_add = 31*m.month_; } else if(d == 2){ days_to_add … | |
hi, i know structures are basically used for holding data members whereas classes can hold both functions and data members. but contrary to the definition of structures can they also hold functions?? i read that they can but there wasn't any explanation about it. hopefully,some of few can come up … | |
I would like to create a c++ program that captures images from a ccd every few seconds and saves them to a folder. This will later be used as part of an image tracking package for an autoguided telescope. I have no clue where to start. If anyone has experience … | |
I have a couple of template classes "Stats<T>" and "Numerical<T>" within a "Statistics" namespace. The Numerical<T> class inherits publicly from Stats<T>. They are defined as below.[CODE] namespace Statistics { //declare Statistics namespace template <typename T> class Stats { protected: vector<T> dataSet; //contains the actual data set to be analyzed /* … | |
This is my Code #include<iostream> using namespace std; struct BankAccount { int accountNum; double accountBal; double rate; }; int main() { const int ACCOUNT = 5; BankAccount info[ACCOUNT]; int sub; double balTotal = 0; double balAverage; int accountNumber; bool isFound = false; for(sub =0; sub<ACCOUNT ; ++sub) { cout<<"Enter Account … | |
i need to write a program that takes this style of input Enter customer name: Kristopher Ann#Nugent and seperates the name to look like this Customer name: Nugent, Kristopher Ann so far i have decided to separate the name into 3 separate character strings but i can only get two … | |
I'm studyign the Accelerated C++ book and I have the MS visual studio 2008 here ... and I also have Ivor Horton's Beginning Visual C++ 2008 ... I was wondering if, after I finish reading Accelerated C++, it's a good idea to use the Ivor Horton's book ... anyone used … | |
Please guys, I have a problem here with a code to send data to a printer. Can you help out. | |
Hello, it is necessary to create a callback function to handle the messages of an windows dialog box. The DialogBox() Function call requires a function pointer to this callback function. If I don't use classes my sample code works fine but when I try to encapsulate my code in classes … | |
Hello guys we've been given this project at skul to create a chess game using c++ , so what i have in mind now is as follows: i need to create different classes ,lyk i need a king,queen,horse and the other classes bt i don't know which one will be … | |
Hi!! I wanna convert a given amount of seconds into hours, minutes and seconds. I wanna use modulus to get the result I'm looking for. I KNOW that's it's easy but I'm stuck. How ever I turn it around I can't get it to work. Example... the time is 7500 … | |
Hi, I am currently working on an android application that requires interfacing with c/c++ libraries.So when i deploy my app on the device i get the message the application hellondk(the application name) has been forcefully closed. So when i go back and look at my code i see the in … | |
I need to balance a binary tree which is in an array. [CODE]void balance(int lower, int upper) { int middle = (lower + upper)/2; cout << a[middle] << endl; if (middle!=lower) balance(lower, middle-1); if (middle!=upper) balance(middle+1, upper); }[/CODE] I've created the shell of the function just to get the idea … | |
i'm new to c++, but am taking a intro to computer science class. we have to write a 2 player game. Game Rules: There are three stacks (A, B and C) of sticks on the table. Each stack is initialized with a random number of sticks between 3 and 10 … | |
Hi. I need to check a folder for the existance of a specific file extension. I've been successful checking for a full filename including extension, but Its just any instance of a filetype I'm after. My question is, Is there an existing method in a library anyone knows about that … | |
Hi - I'm trying to get the filename and path of a file I'm opening with the OpenFileDialog in Visual C++. I can open and display the contents of the file OK, but I'm having problems accessing the filename and path, I guess they're stored in a structure somewhere? Code … | |
hi I need a program in C++ that returns the number by only integers; for exmaple if you input a numbre X= 43756, the program will show: 6 5 7 3 4 and it will also show the number: 4 3 7 5 6. Please someone help me | |
[CODE]#include <cstdlib> #include <iostream> #include <conio.h> using namespace std; void x(); void x(char); void x(char,int); void x(char,int,char); void x(int); void x(char); int main(int argc, char *argv[]) { x(); x('B'); x('E',30); x('B',30,'E'); x(10); x('V'); getch(); } void x() { for(int j=0;j<50;j++) cout << '*'; cout << endl; } void x(char xx) … | |
This is Homework related. I've been struggling in this C++ class for some time now and my teacher basically hands us the book and says learn it and will not help or assist... and sometimes i can manage to get something that runs but this one takes the cake... i'm … | |
[CODE]using namespace std; #include <iostream> #include <fstream> #include <string> #include <cstring> int main() { ifstream InStream; string InFile; string InToken; cout << "Please enter the filename: " << endl; cin >> InFile; InStream.open( InFile.c_str(), ios::in ); if (InStream.fail()) { cerr << "Unable to open '" << InFile << "' for … | |
I'm having a few issues with my code and trying to figure out the last problems with it. It would be a great help if someone could look this over and guide me in the right direction. This program is basically supposed to take the entered date, and tell you … | |
I am using hash_map<string, Word *> dict to store my Word objects. Each Word is a class that inherits from my Node class. The value in the label variable in the Word class is read from a text file. Once I start adding the objects to the dict structure, I … | |
Does anyone know of an web based programming utility where I can program C++ in a web page and have it compile on my remote server. I run an LAMP server | |
WHO know the best C++ Compiler for window 7 64 bit ?? thx for reply | |
I am trying to make a text based game for a university assignment, this is an extension of a game i coded previously, with a fhew improvements, i originally had it where you choose two potions, you mix them together, and give it to the princess, i now have to … | |
I have to write a program that reads a text file that contains +/- values and characters and outputs any invalid characters (anything that is not an +/- integer) and also at the end i have to have it print out the total number of how many invalid characters there … | |
I'm doing a program on a quiz using DEV C++ and i want to set a countdown timer for it. As the user is doing the quiz, he's able to see the timer and once the timer reaches 0, the quiz automatically stops. Is is possible to do this? Thanks … |
The End.