create object


 
Thread Tools Search this Thread
Top Forums Programming create object
# 1  
Old 10-07-2005
create object

can we create an parametrize object
to a class with the help of new operator

if yes then how
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Programming

How to initialize an object with another object of different class?

How to initialize an object of class say "A", with an object of type say "B". The following code give the error message "error: conversion from âAâ to non-scalar type âBâ requested" #include <iostream> using namespace std; class B; class A{ public: A() { cout <<"\nA()" << endl; } ... (1 Reply)
Discussion started by: techmonk
1 Replies

2. Red Hat

shared object

Hi, I would like to create a shared object ( .so). This shared object 1. uses the functions from a library. 2. Also it should be able to use the global variable in an app To achieve this what should I do ? 1) To use the functions in the library should I give the -ld option while... (1 Reply)
Discussion started by: rvan
1 Replies

3. Programming

sizeof(object) in C++

Hi, I have defined the class and call the sizeof(object to class) to get the size. # include <iostream> # include <iomanip> using namespace std; class sample { private: int i; float j; char k; public: sample() { } (2 Replies)
Discussion started by: ramkrix
2 Replies

4. Programming

Can I create a shared object by using an static lib?

for example, I have a static lib name liba.a it offers some interface such a1();a2(); but i do not have the source code of liba.a; If i would like to create a shared object, and offer the similar interface of a1 and a2; Is there a way to fulfill such requirement? thanks. (7 Replies)
Discussion started by: flost
7 Replies

5. Programming

object creation

Hi, I was asked this question in interview.can you people please help me out in this. class A { int i; a() { i=10; cout << i; } } int main() { A a(); // what will be the program output } Thanks, Harika (3 Replies)
Discussion started by: harikamamidala
3 Replies

6. UNIX for Dummies Questions & Answers

Object reference not set to an instance of an object

I am new to PHP and UNIX. I am using Apache to do my testing on a Windows Vista machine. I am getting this error when I am trying to connect to a web service. I did a search and did not see any posts that pertain to this. Here is my function: <?php function TRECSend($a, $b, $c, $d,... (0 Replies)
Discussion started by: EddiRae
0 Replies

7. Shell Programming and Scripting

find string object

I have strings like "$AEUT_BIN/aeutut02.ksh $IFS_MACHINE $AEFA_CONTROL $MVS_CONTROL" I am looking for a way to find out how to obtain aeutut02.ksh from the above mentioned string in unix shell script. (1 Reply)
Discussion started by: phoenixV007
1 Replies

8. Programming

getting "mi_cmd_var_create: unable to create variable object" error msg

Hi, i am working in C in Fedora Eclipse 3.3.0 with gdb debugger. I am geting segmentation fault with an error message "mi_cmd_var_create: unable to create variable object" on debugging the program. What should I do to solve this problem? rgds, Dona_m (14 Replies)
Discussion started by: dona_m
14 Replies

9. Programming

determining the object files...

hello, is there a utility to determine which object files are used to create a binary executable file?let me explain, please: for ex. there are three files: a.o b.o c.o and these files are used to create a binary called: prg namely, a.o b.o c.o -> prg so, how can i determine these three... (1 Reply)
Discussion started by: xyzt
1 Replies

10. Programming

mozilla object

hi this i tried for getting url form mozilla window. and also for getting mozilla object file. is there any plz tell the way. thanking u. ramesh (7 Replies)
Discussion started by: ramesh.jella
7 Replies
Login or Register to Ask a Question
ost::Pointer< T >(3)					     Library Functions Manual					      ost::Pointer< T >(3)

NAME
ost::Pointer< T > - Used to create and manage referece counted pointers. SYNOPSIS
#include <pointer.h> Public Member Functions Pointer (T *ptr=NULL) Pointer (const Pointer< T > &ref) virtual ~Pointer () Pointer & operator= (const Pointer< T > &ref) T & operator* () const T * getObject () const T * operator-> () const bool operator! () const int operator++ () const int operator-- () const Protected Member Functions void ptrDetach (void) Protected Attributes unsigned * ptrCount T * ptrObject Detailed Description template<class T>class ost::Pointer< T > Used to create and manage referece counted pointers. Author: David Sugar dyfet@gnutelephony.org reference counted pointer template. Constructor &; Destructor Documentation template<class T> ost::Pointer< T >::Pointer (T *ptr = NULL) [inline], [explicit] References ost::Pointer< T >::ptrCount. template<class T> ost::Pointer< T >::Pointer (const Pointer< T > &ref) [inline] References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject. template<class T> virtual ost::Pointer< T >::~Pointer () [inline], [virtual] References ost::Pointer< T >::ptrDetach(). Member Function Documentation template<class T> T* ost::Pointer< T >::getObject (void) const [inline] References ost::Pointer< T >::ptrObject. template<class T> bool ost::Pointer< T >::operator! (void) const [inline] References ost::Pointer< T >::ptrCount. template<class T> T& ost::Pointer< T >::operator* () const [inline] References ost::Pointer< T >::ptrObject. template<class T> int ost::Pointer< T >::operator++ (void) const [inline] template<class T> int ost::Pointer< T >::operator-- (void) const [inline] References ost::Pointer< T >::ptrCount. template<class T> T* ost::Pointer< T >::operator-> () const [inline] References ost::Pointer< T >::ptrObject. template<class T> Pointer& ost::Pointer< T >::operator= (const Pointer< T > &ref) [inline] References ost::Pointer< T >::ptrCount, ost::Pointer< T >::ptrDetach(), and ost::Pointer< T >::ptrObject. template<class T> void ost::Pointer< T >::ptrDetach (void) [inline], [protected] References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject. Referenced by ost::Pointer< T >::operator=(), and ost::Pointer< T >::~Pointer(). Member Data Documentation template<class T> unsigned* ost::Pointer< T >::ptrCount [protected] Referenced by ost::Pointer< T >::operator!(), ost::Pointer< T >::operator--(), ost::Pointer< T >::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T >::ptrDetach(). template<class T> T* ost::Pointer< T >::ptrObject [protected] Referenced by ost::Pointer< T >::getObject(), ost::Pointer< T >::operator*(), ost::Pointer< T >::operator->(), ost::Pointer< T >::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T >::ptrDetach(). Author Generated automatically by Doxygen for GNU CommonC++ from the source code. GNU CommonC++ Sat Jun 23 2012 ost::Pointer< T >(3)