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

Frequently Asked Questions

Is C++ a superset of C? Can I use a C++ compiler to compile C code?

Infrequently Asked Questions in comp.lang.c
C++ is a superset of something, we're not sure what. You can use a C++ compiler to compile C code, but the results may surprise you.

Can I use LessTif with C++ ?

LessTif Frequently Asked Questions
You sure can. There really are two ways. You can use it directly, or through one of the C++ wrappers for Motif. Much of this is discussed in the Motif FAQ which can be found at Ken Lee's website at http://www.rahul.net/~kenton Using LessTif directly with C++ prompts the question on how to use class member functions as callbacks.

Can I use typedefs in C#?

Andy Mc's C# FAQ for C++ programmers
No, C# has no direct equivalent of the C++ typedef. C# does allow an alias to be specified via the using keyword: using IntList = System.Collections.Generic.List<int>; but the alias only applies in the file in which it is declared. A workaround in some cases is to use inheritance: public class IntList : List<int> { }

Can I use exceptions in C#?

Andy Mc's C# FAQ for C++ programmers
Yes, in fact exceptions are the recommended error-handling mechanism in C# (and in .NET in general). Most of the .NET framework classes use exceptions to signal errors.

Can I Use A "C" Cell Rechargeable With My Seiko Cleancut?

Frequently Asked Questions (FAQ)
No, you should not use a rechargeable battery with your Seiko Cleancut and here's why. The speed of any DC motor is directly related to the voltage of the power supply; the higher the voltage the faster the motor turns. By their nature rechargeable batteries do not have as high a voltage as alkaline batteries. For instance a fresh alkaline "C" cell, which is a 1.5 volt battery, will test out as high as 1.6 volts right out of the package.

Q 2c-02: Can I use DCE from C++?

DCE Frequently Asked Questions
Yes. First of all, since you can call C functions from C++ you can access all the DCE services from a C++ program. But that will not give you the benefits of C++. There are several packages that provide a C++ interface to DCE. They different quite a bit in style and approach, so you'll need to consider them carefully in light of your own needs and preferences. Objtran was produced by Citibank, and is available by anonymous ftp at ftp://wilma.cs.brown.edu/pub/Objtran.tar.

c. How do I use explosives?

Commandos FAQ
You need to place the explosives into a cabinet which is located somewhere in the middle of the bridge, between some barrels. Examine the cabinet and drag the explosives in there.

Can I use C and Fortran programs with MATLAB?

MATLAB Frequently Asked Questions
MATLAB's MEX-file facility allows user to use C and Fortran subroutines as MATLAB m-files. It is also possible to use MATLAB as a computational engine for C/Fortran subroutines.

How to use extern in C/C++?

FAQ on C/C++/Unix by Roseanne Zhang, Java Programmer Certifi...
When you declare something as extern, that tells the compiler, don't worry about it, it is defined somewhere else, let linker to take care of it. Here is a simple example. //main.cpp #include <iostream> using namespace std; int main(){ extern int x; extern int foo(int y); cout << x << endl; cout << foo(10) << endl; return 0; } //x.cpp int x=5; int foo(int y){ y += x; return y; }

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++.

c. What film should I use in my Holga?

Holga FAQ
This is a very subjective question. Different people like different things so there's no right or wrong answer. Since this question is asked QUITE frequently, I will link to the most recent occasion on which it was asked and answered by a number of people.

How can I use TESS to see all of the binding sites for a particular factor, e.g., c-Jun?

FAQS
Beside searching for binding sites in DNA sequence, TESS also let's you query TRANSFAC directly. These capabilities are accessible through the Query Transfac and Query Matrices links at the top of every page. You may want to preview which factors match c-Jun. Do this by selecting 'Accession Numbers' from the popup menu in the Results section. To select a few factor entries of interest, select 'Accession Number' in the 'Search in this field' popup menu and enter, for example, T00131|T00133.

Q#6.2: How do I set up ORCA/C so that I can use it with GNO?

news.answers/apple2/GNO-faq
A#6.2: === See the CAVEAT in Q#6.1 === There are a few aspects to this, so it has been split into various questions in this section of the FAQ. You should read each of those questions when so directed, below. The following instructions assume that you have already installed your ORCA languages; various files and directories will be moved from their original locations. If you haven't already done so, change the auxtype of (original_orca_directory)/shell/Editor to hex DC00 (see Q#14.1).

Can I use FastCGI with C/C++?

Csoft.net - Frequently Asked Questions
Yes. This is the method we recommend to our customers who require high-performance web applications. A minimal FastCGI program in C would look like: #include "fcgi_stdio.h" #include <stdlib.h> int main(int argc, char *argv) { int count = 0; while (FCGI_Accept() >= 0) { printf("Content-type: text/html\r\n\r\n" "Request: %d on host %s", count++, getenv("SERVER_NAME")); } return (0); }

How to use mixed c and c++ code?

FAQ on C/C++/Unix by Roseanne Zhang, Java Programmer Certifi...
Change the file extention to cpp first; compile it under g++ or other c++ compiler; fix all the possible compiling errors, mostly, type checking errors, since c++ check type more strictly. If you are lucky, maybe none. Dealing with individual c-functions, you can use the following compiling directives to make your header file be used by both c and c++. #ifdef __cplusplus extern "C" { #endif // list all your c functions here #ifdef __cplusplus } #endif You are in c++ now.

Should I use both the Serum-C and C-Strength?

PCA SKIN: Frequently Asked Questions
Yes, these two companion products were formulated to work synergistically. This will give you the best possible results in the shortest period of time.

What standard types does C# use?

Andy Mc's C# FAQ for C++ programmers
C# supports a very similar range of basic types to C++, including int, long, float, double, char, string, arrays, structs and classes. However, don't assume too much. The names may be familiar, but many of the details are different. For example, a long is 64 bits in C#, whereas in C++ the size of a long depends on the platform (typically 32 bits on a 32-bit platform, 64 bits on a 64-bit platform). Also classes and structs are almost the same in C++ - this is not true for C#.

How do I port some C++ to use the Mozilla control?

Frequently Asked Questions
That depends on the classes you are using. In general it requires replacing references to the Internet Explorer CLSID with the Mozilla one. MFC & ATL provide classes for using the IE control, you may have to make duplicate these classes, making your implementation reference the Mozilla CLSID.

Why does water flow off the roof when I use my A/C?

FAQ
The water is condensation and it is a common problem. Most folks take this into account when leveling so that the rear/back side is the lowest point so that the water will flow off the back, out of the living areas. Some have even gone so far as to make little gutters out of PVC pipe to direct the flow into buckets.
More Questions >>

© Copyright 2007-2012 QueryCAT
About • Webmasters • Contact