by: Marcin Kalicinski |
last post by:
Hi,
Because public inheritance should be used to model is-a relationship, is it
evil from a design point of view to disallow some operations from base
class?
class Derived: public Base
{
/*...
|
by: vilhelm.sjoberg |
last post by:
Hello,
I am a resonably confident C programmer, but not very sure about the
dark corners of C++. Recently, I had G++ give me a strange error.
The program in question is in essence:
struct...
|
by: Mehta Shailendrakumar |
last post by:
Hi all,
Have alook at two different declarations below:
typedef unsigned char uc;
typedef void (*fptr) (void);
The first declaration has a left part which is a C keyword: "unsigned char"...
|
by: Brett Baisley |
last post by:
At school, we do all of our coding in emacs, but I am trying to get the
example apps working at home using Visual C++.net.
In the example, there are 4 .cpp files (canvas.cpp, main.cpp,...
|
by: cp |
last post by:
I'm not an excellent C-programmer so forgive possible, in-your-eyes, stupid
mistakes below.
struct book {
char name;
char genre;
int serial_number;
}
struct book * insert_book(char...
|
by: joshc |
last post by:
Hi,
I have an array defined in one file with an intializer as follows:
int arr = {0, 1, 2, 3};
I have a declaration of the array in another file as follows:
extern int arr;
|
by: Jess |
last post by:
Hello,
In the appendix of Accelerated C++, there is a declaration statement
const char * const * const * cp;
The author says the specifiers are "const char" and the declarator is
"* const *...
|
by: WaterWalk |
last post by:
I find friend declaration just very tricky. I tried the following
examples on both MingW(gcc 3.4.2) and VC++ 2005. The results are
surprising.
Example1:
namespace ns1
{
class Test
{
friend...
|
by: Raman |
last post by:
Hi All,
Is it valid:
struct test{
};
I mean, Can we have a struct containing no members? Is this a an
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|