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
std::valarray< _Tp >(3cxx)												std::valarray< _Tp >(3cxx)

NAME
std::valarray< _Tp > - SYNOPSIS
Public Types typedef _Tp value_type Public Member Functions valarray () valarray (size_t) valarray (const _Tp &, size_t) valarray (const _Tp *__restrict__, size_t) valarray (const valarray &) valarray (const slice_array< _Tp > &) valarray (const gslice_array< _Tp > &) valarray (const mask_array< _Tp > &) valarray (const indirect_array< _Tp > &) valarray (initializer_list< _Tp >) template<class _Dom > valarray (const _Expr< _Dom, _Tp > &__e) template<typename _Tp> valarray (const _Tp *__restrict__ __p, size_t __n) _Expr< _ValFunClos< _ValArray, _Tp >, _Tp > apply (_Tp func(_Tp)) const " _Expr< _RefFunClos< _ValArray, _Tp >, _Tp > apply (_Tp func(const _Tp &)) const " valarray< _Tp > cshift (int) const _Tp max () const _Tp min () const _UnaryOp< __logical_not >::_Rt operator! () const valarray< _Tp > & operator%= (const _Tp &) valarray< _Tp > & operator%= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator%= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator&= (const _Tp &) valarray< _Tp > & operator&= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator&= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator*= (const _Tp &) valarray< _Tp > & operator*= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator*= (const _Expr< _Dom, _Tp > &) _UnaryOp< __unary_plus >::_Rt operator+ () const valarray< _Tp > & operator+= (const _Tp &) valarray< _Tp > & operator+= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator+= (const _Expr< _Dom, _Tp > &) _UnaryOp< __negate >::_Rt operator- () const valarray< _Tp > & operator-= (const _Tp &) valarray< _Tp > & operator-= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator-= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator/= (const _Tp &) valarray< _Tp > & operator/= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator/= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator<<= (const _Tp &) valarray< _Tp > & operator<<= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator<<= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator= (const valarray< _Tp > &) valarray< _Tp > & operator= (const _Tp &) valarray< _Tp > & operator= (const slice_array< _Tp > &) valarray< _Tp > & operator= (const gslice_array< _Tp > &) valarray< _Tp > & operator= (const mask_array< _Tp > &) valarray< _Tp > & operator= (const indirect_array< _Tp > &) valarray & operator= (initializer_list< _Tp >) template<class _Dom > valarray< _Tp > & operator= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator>>= (const _Tp &) valarray< _Tp > & operator>>= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator>>= (const _Expr< _Dom, _Tp > &) _Tp & operator[] (size_t) const _Tp & operator[] (size_t) const _Expr< _SClos< _ValArray, _Tp > , _Tp > operator[] (slice) const " slice_array< _Tp > operator[] (slice) _Expr< _GClos< _ValArray, _Tp > , _Tp > operator[] (const gslice &) const " gslice_array< _Tp > operator[] (const gslice &) valarray< _Tp > operator[] (const valarray< bool > &) const mask_array< _Tp > operator[] (const valarray< bool > &) _Expr< _IClos< _ValArray, _Tp > , _Tp > operator[] (const valarray< size_t > &) const " indirect_array< _Tp > operator[] (const valarray< size_t > &) valarray< _Tp > & operator^= (const _Tp &) valarray< _Tp > & operator^= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator^= (const _Expr< _Dom, _Tp > &) valarray< _Tp > & operator|= (const _Tp &) valarray< _Tp > & operator|= (const valarray< _Tp > &) template<class _Dom > valarray< _Tp > & operator|= (const _Expr< _Dom, _Tp > &) _UnaryOp< __bitwise_not >::_Rt operator~ () const void resize (size_t __size, _Tp __c=_Tp()) valarray< _Tp > shift (int) const size_t size () const _Tp sum () const Friends class _Array< _Tp > Detailed Description template<class _Tp>class std::valarray< _Tp > Smart array designed to support numeric processing. A valarray is an array that provides constraints intended to allow for effective optimization of numeric array processing by reducing the aliasing that can result from pointer representations. It represents a one-dimensional array from which different multidimensional subsets can be accessed and modified. Parameters: Tp Type of object in the array. Definition at line 116 of file valarray. Constructor &; Destructor Documentation template<class _Tp> std::valarray< _Tp >::valarray (const _Tp *__restrict__, size_t) Construct an array initialized to the first n elements of t. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Nov 27 2012 std::valarray< _Tp >(3cxx)