This note describes some key aspects of what C++ is and of how C++ has developed over the years. The spective is that of an experienced C++ user looking at C++ as a practical tool. No attempts are made to compare C++ to other languages, though I have
tried to answer some questions that I have often heard asked by Lisp programmers.
This document is designed to aid anyone considering whether to write an
emulator for an arcade game machine. It will attempt to answer frequently
asked questions, give a step by step tutorial, and provide the resources
necessary for a capable programmer to begin work on an emulator for an
arcade game.
本文從英文C–FAQ (2004 年7 月3 日修訂版) 翻譯而來。本文的中文版權為
朱群英和孫云所有。本文的內容可以自由用于個人目的,但是不可以未經許可出
版發行。英文版權為Steve Summit 所有,詳情見下面的英文版權說明。
The English version of this FAQ list is Copyright 1990-2004 by Steve Summit.
Content from the book 《C Programming FAQs: Frequently asked Questions》is
made available here by permission of the author and the publisher as a service to
the community. It is intended to complement the use of the published text and is
protected by international copyright laws. The on-line content may be accessed
freely for personal use but may not be republished without permission.
For solving the following problem:
"There is No Free Lunch"
Time Limit: 1 Second Memory Limit: 32768 KB
One day, CYJJ found an interesting piece of commercial from newspaper: the Cyber-restaurant was offering a kind of "Lunch Special" which was said that one could "buy one get two for free". That is, if you buy one of the dishes on their menu, denoted by di with price pi , you may get the two neighboring dishes di-1 and di+1 for free! If you pick up d1, then you may get d2 and the last one dn for free, and if you choose the last one dn, you may get dn-1 and d1 for free.
However, after investigation CYJJ realized that there was no free lunch at all. The price pi of the i-th dish was actually calculated by adding up twice the cost ci of the dish and half of the costs of the two "free" dishes. Now given all the prices on the menu, you are asked to help CYJJ find the cost of each of the dishes.
A "code-what"? Unless you have spent some time working in the area of reverse engineering, chances are you have not heard of the term "codecave" before. If you have heard of it, you might not have read a clear definition of it or quite understand what it is or why it is useful. I have even asked seasoned assembly programmers about the term before and most of them had not heard of it. If it is new to you, do not worry, you are not the only one. It is a term that is scarcely used and is only useful in a reverse engineering context. Furthermore, is it "codecave" or "code cave"? I am not quite sure, but I will try my best to refer to it consistently as a "codecave". A space may sneak in there from time to time
mkdosfs - Make DOS file system utilty.
I wrote this, partially to complement the dosfsck utility written by Werner
Almesberger (who graciously gave me some pointers when I asked for some
advice about writing this code), and also to avoid me having to boot DOS
just to create data partitions (I use Linux to back up DOS :-) ).
XTHIDE is a GUI that allows the user to hide a text message in an image file.
The user will be asked for a key that will be used to both encode and decode the text into an image.
The key can be of length from 2 to 900 characters.
The encryption pattern for a key hell is not a subset of the encryption pattern for hello .
See help. Created with version 7.01.
Airline Reservations System
A small airline has just purchased a computer for its new automated reservation system.
You have been asked to develop the new system called ARSystem. You are to write an
application to assign seats on each flight of the airline s only plane (capacity: 24 seats.)
Your application should display the following alternatives: Please type 1 for FirstClass
and Please type 2 for Economy. If the user types 1, your application should assign a seat
in the first-class section (seats 1-8). If the user types 2, your application should assign
a seat in the economy section (seats 9-24). Your application should then display a boarding
pass indicating the person s seat number and whether it is in the first-class or economy
As a general rule, PhD students and their supervisors tend to focus
primarily, or even exclusively, on the content of the research that will
go into the doctoral thesis. Other issues are often taken for granted:
how to organize your work, give a presentation, work in a team, cope
with your supervisor, and how to effectively manage your time.When
asked, former PhD students usually claim that the general experience
of being a graduate student, which includes learning how to solve
complex problems and work well with others, was of greater value to
their careers than the actual topic of their thesis.