QueryCAT Logo
Search 5,000,000+ questions and answers.

Frequently Asked Questions

What if I like C++'s printf?

Python IAQ: Infrequently Answered Questions
It's not a bad idea to define a printf in Python. You could argue that printf("%d = %s", num, result) is more natural than print "%d = %s" % (num, result), because the parens are in a more familiar place (and you get to omit the %). Furthermore, it's oh-so-easy: Even in a one-liner like this, there are a few subtleties. First, I had to decide whether to add the comma at the end or not.

How do I do formatted I/O like printf and scanf in C/C++?

Java Programmer's FAQ
The java.text package introduced with Java 1.1 supports formatted I/O. See also the answer to questions 6.11, 6.12. I have spent more debugging time finding case (upper vs lower) typos than everything else put together and squared! Do not forget that your remark must be phrased in the form of a question to win on FAQ Jeopardy.

Why can't I bind \C-s and \C-q any more?

Z-Shell Frequently-Asked Questions
The control-s and control-q keys now do flow control by default, unless you have turned this off with stty -ixon or redefined the keys which control it with stty start or stty stop. (This is done by the system, not zsh; the shell simply respects these settings.) In other words, \C-s stops all output to the terminal, while \C-q resumes it. There is an option NO_FLOW_CONTROL to stop zsh from allowing flow control and hence restoring the use of the keys: put setopt noflowcontrol in your .

How could you let someone like C. S. Lewis get hold of those letters?

Satan's FAQ [Archive] - Freethought Forum
Screwtape was just Lewis' mouthpiece for his various beefs with Christians he disagreed with. Great name for a demon, but he wasn't one of mine. I did like his little dinner speech at the end, but the rest of the book was warmed-over Christian apologist claptrap. It's difficult in my position to find anyone other than sycophantic groupies to date, and I tired of those long ago. I am still incredibly busy, despite the potential for outsourcing I discussed above.

What is an "S" or a "C" corporation?

Frequently Asked Questions
S" and "C" in this instance refer to federal tax laws that are applicable to a particular corporation. The Secretary of State does not have information that shows whether a corporation is an "S" or a "C". Questions about the meaning of these designations and the differences in the two types of corporations should be addressed to the Internal Revenue Service, www.irs.ustreas.gov, or to an accountant or attorney.

What is the difference between a "C" and "S" Corporation?

First Stop Business Center - Frequently Asked Questions
S corporations are companies (typically with 75 or fewer shareholders) allowed by the Internal Revenue Service (IRS) to have the benefits of incorporation, but function as if they were partnerships. An eligible domestic corporation can avoid double taxation (once to the shareholders and again to the corporation) by electing to be treated as an S corporation. An S corporation generally is exempt from federal income tax.

Where do I file a "C" or "S" Corporation?

First Stop Business Center - Frequently Asked Questions
C and S corporations are filed with the IRS. The state of Georgia does not keep a record of this information. For more information on C and S Corporations, please contact the IRS at 1-800-829-1040 or visit their website at www.irs.gov.

Why does errno contain ENOTTY after a call to printf?

Infrequently Asked Questions in comp.lang.c
My program's prompts and intermediate output don't always show up on the screen, especially when I pipe the output through another program. Have you turned your monitor on? If not, try hitting the ''PrtSc'' key, which will re-enable the electron guns.

What would a minimal C program look like using cairo?

Frequently Asked Questions
Create a file called hello.c containing #include <cairo.h> int main (int argc, char *argv[]) { cairo_surface_t *surface; cairo_t *cr; surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 240, 80); cr = cairo_create (surface); cairo_select_font_face (cr, "serif", CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD); cairo_set_font_size (cr, 32.0); cairo_set_source_rgb (cr, 0.0, 0.0, 1.0); cairo_move_to (cr, 10.0, 50.

What is C#?

Andy Mc's .NET Framework FAQ
C# is a new language designed by Microsoft to work with the .NET framework. In their "Introduction to C#" whitepaper, Microsoft describe C# as follows: C# is a simple, modern, object oriented, and type-safe programming language derived from C and C++. C# (pronounced "C sharp") is firmly planted in the C and C++ family tree of languages, and will immediately be familiar to C and C++ programmers. C# aims to combine the high productivity of Visual Basic and the raw power of C++.

Whenever I turn on C-SPAN, it doesn't look like anyone is there? Why?

Frequently Asked Questions
Visitors to the House Gallery or Viewers of C-SPAN are often surprised to see that a majority of Members of the House are not present during debate, speeches or other business conducted on the floor. There are several reasons that this situation exists. While Representatives are required to be on the floor of the U.S.

Ali Parvaresh asks: How can I document VB.NET source codes like what you do for C#?

Visual Basic Frequently Asked Questions
This is another feature scheduled for Visual Basic .NET 2005 (ref http://panopticoncentral.net/archive/2003/11/08/239.aspx). In the meantime, however, there are a number of third-party tools which add this capability to VB.NET 2002/2003. One popular (and free) alternative is the VBCommenter PowerToy. Sadly, the VB team failed to consult me while they were designing the language, so I can't comment on why they decided not to support operator overloading in VB.

Is there a printf format for binary?

Miscellaneous
No, on both counts, although there are various preprocessor tricks you can try (see the links below). You can convert base-2 string representations to integers with strtol. If you need to print numbers out in base 2, see the example code in question 20.10.

What if I do not like the product(s) I purchased?

M&M Lighting - Frequently Asked Questions
In this instance, you may return the item(s) for a refund (less original shipping costs) credited to your credit card account. You may also exchange your product(s) for another item, plus shipping charges. Please refer to the Return Policy section for your return/exchange.

How does C++'s string differ from C's?

Tech Talk about C++ and C Issues / Comeau C++ and C FAQ
Which string do I use if I want a const string? Just like there are some differences between char [?] and char *, there are also differences between them and C++'s std::string class. In short, with a C-like string you often need to worry about: Etc. With std::string, you usually don't need to worry about those things. Therefore, often std::string makes things: Easier to teach Consider this comparison: // The "C way": #include <cstring> // <string.

R-E-S-P-E-C-T: What to ask from artists?

Tattoo FAQ - BME Encyclopedia
It has been brought to my attention that some tattooists have an attitude problem when it comes to potential customers. Tattooists (and piercers!) need to realize that not every person who walks in has to look like a grunged-out leather-wearing biker, or a raven-haired cleopatra-eyed septum-pierced zombie. People from all walks of life may be interested in bodyart.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact