Hi gunnerfunner and dhayden,
It's very kind of you to spend your precious time to help me out, and to fix and comment on the code in detail. Thank you very much!
I started from the scratch. The reason for me to adopt this tutorial is because it has both videos and book. The tutor illustrated each step on the videos, which are easier for me to access. I've realised the tutorial, which I'm learning, doesn't seem very desireable, as dhayden commented here and another forumite commented on another thread of mine.
In order not to mix up my previous questions(Q1, Q2) which have been sovled, I start the new question number from Q3...
Q3: Do you think "C++ Primer Plus" is a good book for beginners? I want a better book after I finish learning this tutorial.
The tutor commented on his video that "C++ Primer" is regarded as the Holy Bible of C++, but it is too difficult to access for a beginner. I searched from the Internet, and found some people recommended "C++ Primer Plus". I knew it is a well-known book.
Q4: Line 3, Post 2 by gunneerfunner:
//using namespace std;//AVOID |
Do you mean I should use "std::cout/cin" all the time?
In page 43, C++Primer Plus (Edition 6), the author wrote the following code. I mean he used "using namespace std;".
#include <iostream>
int main()
{
using namespace std;
cout<< " Come up, C++ me some time." ;
cout << endl;
cout<<"You won't regret it."<<endl;
} |
Q5: Line 11, Post 2 by gunneerfunner:
book* head=NULL;//leave space b/w operator symbols and text throughout (easier to read) |
What does "b/w" mean?
Could any of you answer again?
Many thanks!