Discover the world's scientific knowledge

With 135+ million publication pages, 20+ million researchers and 1+ million questions, this is where everyone can access science

You can use AND, OR, NOT, "" and () to specify your search.

PublicationsAuthorsQuestions
Do you know how a variable can be defined at the beginning of a 64 bit block in C?
Question
  • Oct 2014
Hi all,
I intend to define a variable in C programming language that its address is dividable by 64. It means that this variable must be placed at the beginning of a 64-bit block. I wonder if you could tell me how the variable can be defined?
Thanks
… 
  • 317 Views
  • 19 Answers
Questions in Object oriented programming C++?
Question
  • Feb 2020
Dear all,
I have some questions in C++ which I could not get clear answers through internet. It would be very helpful if you could help with it.
Abstract class
1. How to instantiate a non-pure abstract class ( only one of the data members is made pure virtual) in the main(). In internet it is mentioned that, it is possible to create my own constructor to initialize the property members and to use the non-virtual methods. is it possible?.
2. Some say, that it is even possible to create a non-pure abstract class just my making the destructor as pure virtual, it is possible?
3. What is the actual useof pure virtual destructor in the program actually?
4. Is it possible to use the auto type as return value in case of abstract function?
5. why sometimes the constructor is made protected, is it liberately done to prevent direct instantiation? what are all the use cases of such practice?
6.If I call a virtual function in the derived class, it takes the default value of that function from base class always, how to override it? why it happens?
7. In multiple inheritance, why I make a class virtual to avoid multiple copies of a same base class, it does not work?
8. Interestingly, if I call the grandchildren class (in multiple inheritance)
class A(contains virtual members) : class B ( non virtual members)
class B : class C ( non virtual members)
class C: class D ( non virtual members)
if I access the class D object, using the class B/C type pointer, provided that the base class A member function made virtual, the members of the class D is accessed instead of class B. Can I understand that any base class member irrespective of what you use becomes virtual even if one of the base class instance of that member is made virtual?
Hope my questions were clear. Would be glad to provide an example code if required.
Thank you and I look forward to hearing from you.
… 
  • 557 Views
  • 7 Answers
How can I implement sparse bundle adjustment in C/C++?
Question
  • Nov 2013
I want to implement "Manolis I.A. Lourakis and Antonis A. Argyros" Sparse Bundle Adjustment in C++. Anyone Kindly guide to step by step by implementation.
… 
  • 227 Views
What is the role of static function and this pointer in C++?
Question
  • Feb 2015
Please some one explain me in detail about the static function and this pointer in C++?
… 
  • 9 Answers
Can anyone help with sending each value in a vector to a robot not only the last value in C++?
Question
  • Apr 2015
For C++ Experts
==============
I have two vectors vx and w saved in a text file with size of (3000)
- I have read those two text files and generate two vectors
- I will use each value in those two vectors to send a command to a robot using these commands
robot.setVel(*i);
robot.setRotVel(*j);
As shown in the Figure
However
=======
The Program use the last value only in the two vectors
Can any one help to send each value in the vectors to the robot.?
… 
  • 98 Views
  • 6 Answers
What is the efficient way of reading a huge text file (50GB file) and processing it in C++?
Question
  • Nov 2013
Reading line by line is taking too much time for the process to happen. I don't have enough RAM to load the entire file into RAM. So how can I read files as chunks or any other efficient way. Is there any linux header to make this process simpler?
… 
  • 6 Answers
Is there any short and specific method in writing programs?
Question
  • Jan 2013
Like adding loops or classifying as string program or class program and so on.
… 
  • 47 Views
  • 4 Answers
How can you print variables column wise for different constant value of independent variable in C program?
Question
  • Feb 2014
How to print variable column wise for different constant value of independent variable? I am printing the temperature as a function of different velocity. See the figure which shows the format. I want to print all these data into a single file generated by C program.
… 
  • 132 Views
  • 2 Answers
I am working on compressing a file. I would like to know how to compress a file using C programming?
Question
  • Dec 2013
My compression algorithm majorly depends on opening a file in 0 and 1's i.e Binary and applying a compression algorithm to it . Can anyone help me ?
… 
  • 10 Answers
How can I sort a huge file without using a large memory?
Question
  • Dec 2014
I need a C# code or algorithm for sorting a file that contain students records. I don't want use all memory for sorting this file and want to sort each record. Do you know similar code or algorithm?
… 
  • 17 Answers
1
2
3
4
5
10
App Store
Get it on Google Play
Company
About us
News
Careers
Support
Help Center
Business solutions
Advertising
Recruiting
© 2008-2023 ResearchGate GmbH. All rights reserved.
  • Terms
  • Privacy
  • Copyright
  • Imprint
Join for free
Log in