As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to learn about streams in C++. I have done some googling and searching on Amazon and have not had any success in finding a book/web resource on this topic. Any suggestions would be much appreciated! I have found some information on sites like cplusplus and forums, but I'm still still unclear about a number of issues. I would really like a clear, comprehensive resource.
One thing that I would like to do is get input for my programs from external files.
Thank you for any suggestions.
Standard C++ IOStreams and locales by Langer and Kreft is dedicated to streams (and locales, which streams use extensively), but it sounds like you want a general overview as you'd find in a general reference or introductory book.
I don't know of a book that deals with streams as its major subject. I'm sure you can find a lot of resources on the Internet, but judging their quality may be difficult. The following two books have rather good coverage of streams and might be work looking into. Of course they cover a lot more than just streams.
The C++ Programming Language by Bjarne Stroustrup
The C++ Standard Library: A Tutorial and Reference by Nicholai Josuttis
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am looking for a good book/article/reference on multithreaded programming in C++. I found few older threads where there are some recommendations. However, most of them are in Java. Does anyone know of anything strictly in C++?
Thanks in advance.
There's a book by manning called: C++ Concurrency in Action which looks very promising.
It should be available next month and it has a lot of C++ threading from how to create threads to advanced concurrency topic such as lock free collections (in C++!).
A nice video tutorial up to date with C++11 here MSDN. It's not for beginners and will only be helpful with a recent compiler.
An oldie but a goodie: O'Reilly's "Pthreads Programming" book. Examples are in C, which will work fine in a C++ program. If you're really looking for an OO approach, however, this probably won't cut it. I'd imagine there are more recent references but I found this to be a well written book when I read it years ago.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
i need to start refine my memory so i like to practice a bit
do you know good site like : http://www.blackbeltfactory.com for java?
Here are some that looked promising on a quick perusal (and I'm adding to my own reading queue):
Wikibooks entry on Design Patterns in C++
Similar question answered responses on CodeGuru
C++ FAQ section on some design patterns
C++ headers from Head First Design Patterns to inspect
Have fun! (Sorry - don't know of any with a quiz for free - although the HFDP book likely has chapter-based ones)
Those links are a "must have" in your bookmarks:
Cplusplus Reference
C++ Reference
Cprogramming
Cplus About
IBM XL C/C++ V7.0
More C++ Idioms.
Another thousand usefull links can be found by googling. One of them will fit your taste.
You already got quite a few references so far, I just want to add this one, Data & Object Factory at http://www.dofactory.com/Patterns/Patterns.aspx.
I would say you can use java exercises....just write it in c++, its the same...
Grab http://www.amazon.com/Design-Patterns-Elements-Reusable-Object-Oriented/dp/0201633612/ref=sr_1_1?ie=UTF8&qid=1299852356&sr=8-1
from The "Gang of Four":
Erich Gamma, Richard Helm, Ralph Johnson, John Vlissides
For reference and you'll be set up :)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am just a starter at using threads in my code. I use Boost threads usually.
But I don't think I have mastered this field yet.
I am looking for learning material specifically for advanced parallel programming. Could anybody suggest something.
There's an early access edition of C++ Concurrency in Action available at http://www.manning.com/williams/ He's very knowledgeable on the subject and AFAIK he's the author of boost threads and has also just released a version of std::thread conforming to the new c++0x standard.
I'm also reading Concurrent Programming on Windows by Joe Duffy which is a pretty good read so far: http://www.bluebytesoftware.com/books/winconc/winconc_book_resources.html
Update:
Also, see this link https://stackoverflow.com/questions/415994/boost-thread-tutorials/3951227#3951227
I think you should continue using Boosts threads, they will be usable on different OS's.
I haven't read any good books on multithreading, but you could take a pick (and preview) some at Google Books.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I am looking for quick reference guide(s) for both OO and C++. I have a few technical interviews coming up and I just want a quick reference that gives the basic overview of the fundamentals. (Nothing too in depth, as I've learned it all once before)
Have a look at this C++ tutorial online.
There is also Bruce Eckel's Thinking In C++ freely available book.
C++ FAQ Lite is searchable and Herb Sutter's Guru Of The Week series feature many tricky puzzles.
Steve Yegge at google has a couple of excellent summaries of interview questions here and here.
Here's a site that's dedicated to Object Oriented Programming in C++. It provides quick coverage of the basic concepts.
For pure OO info, you might want to review the basic terminology (not C++ related) on Wikipedia's Object-oriented design page.
Stroustrup's FAQ is a good jumping off point to refresh some things. For a terminology refresher it's hard to beat the OO Wiki page.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Does anyone know of free C++ assessment tests?
I would like to practice my C++ skils before interviews. Brainbench used to have it for free; now they want $49.99 and I think it's rip off..
Most of those "C++ questions" and pay-for-view packets are a ripoff and often a scam.
If you are interviewing at a big company, explicitly Google their name and c++ interview questions. Enough people post the interview questions online, and these companies are way too lazy to actually change this question set. Examples include Google, Bloomberg, and others.
If you want to ace interviews that ask about c++ corner cases, consider the c++ faq or the C++ faq lite (http://www.parashift.com/c++-faq-lite/). It's not questions, but it's the most valuable C++ resource IMHO.
And if you don't use C++ on a day to day basis, try to write some code and compile. I was humbled after too many years of Java to see how much of the syntax is no longer natural to me.
You might want to try My CPP Quiz as that has a set of very comprehensive C++ questions. If you can get through those easily you could consider yourself having a satisfactory understanding of basic C++.
http://www.mycppquiz.com
There is plenty of algorithmic problems to solve at SPOJ. Some of them are straightforward, well known algorithms implementations (see also The Problems classifier) some are harder. The online judge service will check your code's correctness online.