Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 25 of 91
Search took 0.03 seconds.
Search: Posts Made By: phztfte1
Forum: BOOK: Professional C++, 2nd Edition June 4th, 2016, 03:54 PM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Marc,

Thank you for all your help. I off to learn MFC and master the basics of C++.
Forum: BOOK: Professional C++, 2nd Edition June 4th, 2016, 11:27 AM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Would MFC programming help in that I want to create a form to enter data and store that data into a database?
Forum: BOOK: Professional C++, 2nd Edition June 3rd, 2016, 10:58 AM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Say my data members were an int and a double. When writing to a text file, are ithe int and double converted to text?
Forum: ASP.NET 4.5.1 General Discussion May 22nd, 2016, 05:23 PM
Replies: 4
Views: 4,201
Posted By phztfte1
Invalid Script Resource Request

Sorry, Emma but I do not remember the fix. My present code contains sensitive information such as a password.

The website is up and running at http://www.kenairiverhale.com. I haven't updated it...
Forum: BOOK: Professional C++, 2nd Edition May 19th, 2016, 11:20 PM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Marc,

I did not use quoted because when I read the documentation it was for Visual Studio 2015 and new to C++14. There is a red squiggly line under quoted even though the header file <iomanip> was...
Forum: BOOK: Professional C++, 2nd Edition May 19th, 2016, 12:30 AM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Hi Marc,

I revised the output() method as you suggested and added an input() method. The input() method does not work but at least, it is a start.
1. The input() method does not read the bool...
Forum: BOOK: Professional C++, 2nd Edition May 15th, 2016, 04:43 PM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Sorry Marc, but I was not able to put the pieces together. I need to see an explicit example.
I modified the void output() method to write to a file. It is shown in the code as boldfaced.
Now, how...
Forum: BOOK: Professional C++, 2nd Edition May 14th, 2016, 11:49 PM
Replies: 12
Views: 5,399
Posted By phztfte1
Chapter 15 Demystifying C++ I/O

Marc,

Storing a class object in a container is temporary, and all data is lost when the program terminates. How do you store a class object data in a file and read that data afterwards? Say, the...
Forum: BOOK: Professional C++, 2nd Edition April 30th, 2016, 10:40 PM
Replies: 8
Views: 828
Posted By phztfte1
Chapter 8, page 224

Thank you Marc,

I separated the class definition into a header file, and the implementation of the methods into a cpp file. Then, I made a cpp file for int main(). It worked.

Now I know that when...
Forum: BOOK: Professional C++, 2nd Edition April 30th, 2016, 10:34 PM
Replies: 4
Views: 714
Posted By phztfte1
Chapter 9, page 299, dynamic_cast

Marc,

Thank you very much. Your answer explains why the Base reference to an instance of Derived works and why a Base reference to an instance of Base, will throw an exception.

Again, thank you...
Forum: BOOK: Professional C++, 2nd Edition April 27th, 2016, 10:38 AM
Replies: 8
Views: 828
Posted By phztfte1
Chapter 8, page 224

Marc,

I added the constructor as suggested to the file:

// Super class

class Super
{
public:
Super(int i);
Forum: BOOK: Professional C++, 2nd Edition April 27th, 2016, 01:53 AM
Replies: 4
Views: 714
Posted By phztfte1
Chapter 9, page 299, dynamic_cast

Marc,

Here is how I interpret what you are saying:
br as a base reference to an instance of Derived

class Base
{
public:
Base() {};
virtual ~Base() {}
Forum: BOOK: Professional C++, 2nd Edition April 26th, 2016, 11:42 AM
Replies: 4
Views: 714
Posted By phztfte1
Chapter 9, page 299, dynamic_cast

What is erroneous about the statement:

Derived& dr = dynamic_cast<Derived&>(br);


"br" is the base reference object that is being downcast to a derived reference object "dr". What is illegal?
Forum: BOOK: Professional C++, 2nd Edition April 21st, 2016, 11:59 PM
Replies: 8
Views: 828
Posted By phztfte1
Chapter 8, page 224

Marc,

Thank you for clarifying what the text is saying.

I went through my code several time and did not find the error.

// Super class

class Super
{
Forum: BOOK: Professional C++, 2nd Edition April 21st, 2016, 11:26 PM
Replies: 9
Views: 723
Posted By phztfte1
Chapter 7 Friends, page 196

Marc,

I found the solution. I added the preprocessor directives for each header file although it is only required for the SpreadsheetCell.h file.

#ifndef _XXXXXX_XXX_H_
#define...
Forum: BOOK: Professional C++, 2nd Edition April 21st, 2016, 03:07 AM
Replies: 8
Views: 828
Posted By phztfte1
Chapter 8, page 224

Marc,

Thank you for finding my error and for the explanation that I actually had a default constructor because of the default value. However, I still do not understand what is going on.

Your...
Forum: BOOK: Professional C++, 2nd Edition April 21st, 2016, 12:20 AM
Replies: 9
Views: 723
Posted By phztfte1
Marc, There was a beginning C++ book I read that...

Marc,

There was a beginning C++ book I read that said you could download the code or you could type in the code. If you type in the code, you will learn more because of the errors you will make. ...
Forum: BOOK: Professional C++, 2nd Edition April 20th, 2016, 11:35 PM
Replies: 2
Views: 515
Posted By phztfte1
Thank you for the response.

Thank you for the response.
Forum: BOOK: Professional C++, 2nd Edition April 20th, 2016, 11:30 PM
Replies: 2
Views: 559
Posted By phztfte1
Chapter 8 page 233, class SpreadsheetCell

Thank you for the explanation.
Forum: BOOK: Professional C++, 2nd Edition April 20th, 2016, 09:42 AM
Replies: 2
Views: 515
Posted By phztfte1
Chapter 8 page 234

What is the advantage of providing an explicit default constructor to set the data value of the StringSpreadsheetCell to "#NOVALUE" as opposed to using the compiler generated default constructor...
Forum: BOOK: Professional C++, 2nd Edition April 19th, 2016, 10:10 AM
Replies: 2
Views: 559
Posted By phztfte1
Chapter 8 page 233, class SpreadsheetCell

The code for the SpreadsheetCell is as follows:

// SpreadsheetCell.cpp

#include <string>

class SpreadsheetCell
{
public:
SpreadsheetCell(); // default constructor
Forum: BOOK: Professional C++, 2nd Edition April 18th, 2016, 11:46 PM
Replies: 8
Views: 828
Posted By phztfte1
Chapter 8, page 224

The third paragraph on page 224 states the following:
"The following code shows a version of Super that lacks a default constructor. The associated code version of Sub must explicitly tell the...
Forum: BOOK: Professional C++, 2nd Edition April 18th, 2016, 11:15 PM
Replies: 9
Views: 723
Posted By phztfte1
Chapter 7 Friends, page 196

Marc,

When the statement #include "Spreadsheet.h" is added, a red squiggly line appears under #include with the error message: "Error: #include file "f:\professional c++\...\SpreadSheet.h" includes...
Forum: BOOK: Professional C++, 2nd Edition April 17th, 2016, 07:53 PM
Replies: 9
Views: 723
Posted By phztfte1
Chapter 7 Friends, page 196

Marc,

It appears that I made the typo when posting the code. The error message I get now is as follows:

1> SpreadSheet.cpp
1>f:\professional c++\chapter...
Forum: BOOK: Professional C++, 2nd Edition April 17th, 2016, 07:17 PM
Replies: 2
Views: 656
Posted By phztfte1
Chapter 7 SpreadSheet Error

Marc,

Thank you for finding my error. I missed the instruction of page 185 to also initialize the reference member in the copy construction.
Showing results 1 to 25 of 91

 


All times are GMT -4. The time now is 02:20 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.