General C++ Programming - November 2008 (Page 8)

Explain in a line or two
 
Why are ! and % used in c++
[2 replies] Last: thanks BAZZY.thank u very much (by ankitsikka)
by ArunVN
How to handle a destructor failure
 
How can I handle a failure in the destructor.? A failure in the constructor can be handled by throwing an exception, where as throwing an exception in the des...
[9 replies] Last: MS isn't exactly known for its standard compliance. And since the "new... (by exception)
While Statements Question
 
Hello, I am writing a C++ program that displays a multiple choice question, and then asks the user for the answer. I am posting this because I have a couple qu...
[3 replies] Last: Hi hope this helps as I think this is what you're trying to do.... ... (by Pat Nevin)
Tring to use a function read a sentence
 
and cout << it backwards but divided by each words... Example Hi how are you? would become iH woh era ?uoy Here is where i am so far... It s in french......
[3 replies] Last: There is already an STL algorithm for reversing the elements of a cont... (by seymore15074)
by rocket
error: no match for 'operator='
 
Hi! I've written a class called CEquation for mathematically handling polynomials. I've overloaded the assignment operator because I need deep copying of...
[12 replies] Last: @exception PS: I edited my last post above. @melkiy The progra... (by satm2008)
by Retro
Dev C++ #pragma region
 
Can anyone tell me if there is any feature in Dev C++ similar to the #pragma region and #pragma endregion tags in Visual Studio..? Something to collapse block...
[2 replies] Last: Thanks... .... (by Retro)
by preeve
Copying the contents of two files to a third file
 
I wasn't sure whether to put this here or in beginners, bascially I am studying some c++ as part of one of my university modules. Unfortunately the lecturer doe...
[2 replies] Last: Thanks very much, the comments have made it much easier to understand ... (by preeve)
Read Flat File (This is different I assure you!)
 
So before I decided to post this I searched the forum to see if it was addressed yet so please atleast give this issue a chance. I am able to read in a flat ...
[2 replies] Last: Thank you for your suggestions, I will attempt the find() and strrok f... (by VIDandadda)
date problem
 
i got this weekday = (day+ 2*mth + 3*(mth+1)/5 + year + year/4 - year/100 + year/400 + 1) % 7; but the whole thing will only work out when day,mth and yea...
[4 replies] Last: haha ya...thank for your help (by satekazumi)
How to Extend a Class in C++
 
Hi I've got a Class Employee and im trying to create a subclass called TempEmployee, in writing in Eclipse, so I created a new class with a seperate .h and .c...
[2 replies] Last: Thanks (by Pat Nevin)
fstream tokens into a vector
 
Hi, Im trying to write a simple class who's main reads in information about employees from data file called emp.dat. In the data file emp.dat employee info i...
[2 replies] Last: Thanks that helped alot cheers... (by Pat Nevin)
Adding elements to already existing gui
 
I'm using microsoft visual c++ to update an application built by some coworkers paired with external programmers. However, it is not possible for me to reach th...
[no replies]
declaring a vector to hold an abstract class
 
In my program I have an abstract base class (ABC) and two classes that derive from it. However I get compile errors if the datatype of my vector is the ABC (Th...
[13 replies] Last: vector is C++'s equivalent of a C array. When the vector needs to res... (by jsmith)
need to know how to replace input with *****
 
i am using borland turbo c++, i am trying to write a program that would ask the user to enter a 4 digit pin number. when the user inputs their pin, i would like...
[1 reply] : If you can include <conio.h>, then you may do getch() in the cycle (by melkiy)
by Dmed
Creating a Window using <windows.h>
 
I have 2 questions: 1) I'm trying to create a window from source code, but I tried to make a simple function like: #include <iostream> using namespac...
[3 replies] Last: Dmed, here you can find a skeleton for a WinAPI application http://p... (by melkiy)
string to integer coversion
 
while working with following code error is being displayed. // #include <iostream> #include <string> #include <cstdlib> using namespace std; int main...
[2 replies] Last: Native integral types in C++ have a finite maximum value so the answer... (by jsmith)
by sahin
about phonebook appl. and person class
 
hi can you help with this code first this is person class : #ifndef H_Person 20081106 #define H_Person 20081106 class Person { public: ...
[no replies]
String to Int or double
 
hi does anyone know how to cast a C++ string into an int and a double thanks
[3 replies] Last: #include <boost/lexical_cast.hpp> string str = "3.14"; try { ... (by jsmith)
backtrack algorithm
 
hi all.. i need help in solving a backtrack algorithm using c++ . the program asks the user for a number , and the output will be all the sums of the number...
[8 replies] Last: Well, I don't do peoples' homework assignments for them. Anyway, I co... (by jsmith)
rc.exe anyone??
 
Hi I am new to programming and am studying Software Engineering. I am having a problem debugging a small program. I am reciving an error messege which says Er...
[4 replies] Last: No im using Kaspersky I was wondering if VS had installed correctly, I... (by Mr Nibbles)
November 2008 Pages: 1... 67891011
  Archived months: [oct2008] [dec2008]

This is an archived page. To post a new message, go to the current page.