Hello Experts,
I was wondering (I'm absolutely new to OOP) if virtual functions are limited in their capability in a sense? Consider the following scenario.
#include <iostream>
using namespace std;
class base
{
public:
virtual int add (int a, int b) {
cout << "Result = " << a + b << endl;
return a + b;
}
};...
User Profile
Collapse
-
Limitation of virtual functions?
-
How to determine the GNU version from a compiled library?
Hi Experts,
How can we determine from a shared object library, whether it was compiled with GCC version 3.2.3 or 4.1?
To put this in a generic way, how to determine which gcc version was used to compile a particular shared object library?
I have tried using the strings and nm commands on the lib to grep for something useful. But not sure what to look for. I'm on the Linux platform.
Thanks,... -
Thanks for the reply. That helps clear some of the confusion. But I guess it will take me some time to get used to this ambiguity in C. Verilog is strictly governed by the IEEE LRM. The behavior is never undefined.
But yes, the whole purpose of an HDL (like Verilog) and a general purpose software programming language (like C) is different.
cheers!!
--Nagesh -
Difference between char array and a null terminated string?
Hi experts,
I'm from a Verilog HDL background and trying to learn C. There are a lot of similarities between Verilog and C but the concept of char arrays and strings has me confused. I'd appreciate any help or pointers here.
This is the code, nothing fancy, just basic experiments around char array and string,
#include <stdio.h>
#include <string.h>
int main() {
...
No activity results to display
Show More
Leave a comment: