49,761 Topics

Member Avatar for
Member Avatar for fallen_prisoner

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?

Member Avatar for asmail2020
0
173
Member Avatar for David_Omid

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 …

Member Avatar for David_Omid
0
96
Member Avatar for arsnic

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 …

Member Avatar for arsnic
0
221
Member Avatar for JwhateverJ

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 …

0
101
Member Avatar for sahil1991

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 …

Member Avatar for sahil1991
0
103
Member Avatar for jjacob201

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 …

0
44
Member Avatar for Fbody

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 /* …

Member Avatar for Fbody
0
90
Member Avatar for agaba

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 …

Member Avatar for agaba
0
102
Member Avatar for alex55

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 …

Member Avatar for alex55
0
301
Member Avatar for mitrious

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 …

0
56
Member Avatar for Tashgrl

Please guys, I have a problem here with a code to send data to a printer. Can you help out.

Member Avatar for Ancient Dragon
0
46
Member Avatar for fisch

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 …

Member Avatar for ashish.maske
0
1K
Member Avatar for keskor

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 …

Member Avatar for csurfer
0
807
Member Avatar for Urv73

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 …

Member Avatar for csurfer
0
127
Member Avatar for Lares007

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 …

Member Avatar for Nick Evan
0
128
Member Avatar for timb89

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 …

0
95
Member Avatar for eri24

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 …

Member Avatar for eme21
0
168
Member Avatar for Suzie999

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 …

Member Avatar for Suzie999
0
89
Member Avatar for The physicist

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 …

Member Avatar for The physicist
0
515
Member Avatar for seb00007

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

Member Avatar for myk45
0
97
Member Avatar for burcin erek

[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) …

Member Avatar for burcin erek
0
113
Member Avatar for drummer123

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 …

Member Avatar for Schol-R-LEA
0
125
Member Avatar for Metsuba

[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 …

Member Avatar for Metsuba
0
73
Member Avatar for NV43

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 …

Member Avatar for NV43
0
144
Member Avatar for Ana_Developer

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 …

Member Avatar for Ana_Developer
0
221
Member Avatar for Talguy

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

Member Avatar for Ancient Dragon
0
538
Member Avatar for chamnab
Member Avatar for alex55
0
150
Member Avatar for Nicko_FaTe_

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 …

Member Avatar for Schol-R-LEA
0
216
Member Avatar for tKc

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 …

Member Avatar for tKc
0
83
Member Avatar for themaestro

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 …

Member Avatar for Akill10
0
49

The End.