9 More Discussions You Might Find Interesting
1. Programming
Hello All,
I am a learner in C++. I was testing my inheritance knowledge with following piece of code.
#include <iostream>
using namespace std;
class base
{
public :
void display()
{
cout << "In base display()" << endl;
}
void display(int k)
{... (2 Replies)
Discussion started by: anand.shah
2 Replies
2. Programming
I have the two class definition as follows.
class A { public: int a; };
class B : virtual public A{ };
The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Discussion started by: techmonk
2 Replies
3. Red Hat
Hi All,
We have got a USB HDD with important data in it. The data has been copied to the disk(formatted ext3) via a LINUX system.
The data was supposed to be copied to a second LINUX machine. Surprisingly, it doesn't show up any valid partitions in the new box.
dmesg:
usb1-3:... (2 Replies)
Discussion started by: Bikash Mishra
2 Replies
4. UNIX for Advanced & Expert Users
Hi all!
I am trying to register a device in an existing device class, but I am
having trouble getting the pointer to an existing class.
I can create a class in a module, get the pointer to it and then use
it to register the device with:
*cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies
5. Solaris
i have a laptop with windows 7 installed . this laptop is dhcp enabled and it's details are as follows :
IPv4 Address. . . . . . . . . . . : 10.1.5.54
Subnet Mask . . . . . . . . . . . : 255.255.255.192
Default Gateway . . . . . . . . . : 10.1.5.1
i installed solaris 10 on vmware on... (5 Replies)
Discussion started by: rehantayyab82
5 Replies
6. Programming
Hi,
I believe the next code is wrong:
class Egg {
Egg e;
int i;
Egg(int ii=0) : i(ii) {}
};
because you would end up with an endless definition (memory allocation) of Egg objects, thus int i.
Ok, so God Eckel proposes for a singleton:
class Egg {
static Egg e;
int... (5 Replies)
Discussion started by: xavipoes
5 Replies
7. Programming
Hi, i have a question about C++. Is it possible to declare a class with a member ot the same class? For example, a linked list or i want to convert this C code to C++ class (Elemento)
typedef struct elemento
{
char name;
char value;
List<struct elemento> ltElementos;
... (7 Replies)
Discussion started by: pogdorica
7 Replies
8. Solaris
Hi
I had installed Sun Solaris 10 on my dell vostro 1400.Problem is iam unable to mount the usb drives as there was no detections at all.And also iam unable to find my network interface or iam not able to install the network card.
If try to type ifconfig -a
It is showing only loop back... (4 Replies)
Discussion started by: testerindia25
4 Replies
9. UNIX for Dummies Questions & Answers
I am new to program development on Linux.
I wonder what computer languages are easy to grasp to create man - machine interactive interface software, which can accept inputs (parameters) from usrers, and present (display) the calculation results to users.
Before, I have heared about Perl,... (10 Replies)
Discussion started by: cy163
10 Replies