class template conversion constructor

Discussion in 'C++' started by bluekite2000@gmail.com, Jul 5, 2005.

  1. Guest

    I have
    Vec<ComplexSingle> V(4);
    V=(2,1);
    Now I want
    Vec<int> V1(V);
    such that
    cout<<V<<V1<<end;
    prints
    2,1
    2,1
    2,1
    2,1

    2
    2
    2
    2

    Thanx
     
    , Jul 5, 2005
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. christopher diggins
    Replies:
    16
    Views:
    769
    Pete Becker
    May 4, 2005
  2. mrstephengross
    Replies:
    5
    Views:
    610
    Larry I Smith
    May 18, 2005
  3. ali
    Replies:
    4
    Views:
    586
    David Harmon
    Mar 5, 2007
  4. Generic Usenet Account
    Replies:
    10
    Views:
    2,281
  5. A L
    Replies:
    1
    Views:
    516
    Alf P. Steinbach /Usenet
    Aug 25, 2010
Loading...

Share This Page