Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c++ > #12644

Re: Simple argument question

From jt@toerring.de (Jens Thoms Toerring)
Newsgroups comp.lang.c++
Subject Re: Simple argument question
Date 2011-12-18 22:14 +0000
Organization Freie Universitaet Berlin
Message-ID <9l76ttFm6gU2@mid.uni-berlin.de> (permalink)
References <CB114269.B5F7%bint@ign.com> <8ddcc541-8997-4a44-8f25-a2eaa49a74bd@l29g2000yqf.googlegroups.com>

Show all headers | View raw


Krice <paulkp@mbnet.fi> wrote:
> On 17 joulu, 02:46, Bint <b...@ign.com> wrote:
> > And then call the function with points as the argument?  It doesn't compile

> Let's rewrite this to C++:

> 1. Create a point class or struct with x, y, z variables
> 2. Use std::vector to store them if you don't know the size of the
> array
> 3. Pass vector's reference to a function processing the array

Fine as long as the function receiving the array of points isn't
some external function from a library written in C that can't be
simply made to work with C++ classes and vectors...

                               Regards, Jens
-- 
  \   Jens Thoms Toerring  ___      jt@toerring.de
   \__________________________      http://toerring.de

Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Simple argument question Bint <bint@ign.com> - 2011-12-16 18:46 -0600
  Re: Simple argument question "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-17 01:13 +0000
    Re: Simple argument question Bint <bint@ign.com> - 2011-12-17 12:06 -0600
      Re: Simple argument question "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-17 18:45 +0000
        Re: Simple argument question "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-17 23:16 +0000
          Re: Simple argument question jt@toerring.de (Jens Thoms Toerring) - 2011-12-18 22:07 +0000
            Re: Simple argument question "Paul" <pchrist<nospam>or@yahoo.co.uk> - 2011-12-18 22:34 +0000
  Re: Simple argument question 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-17 00:13 -0800
    Re: Simple argument question Juha Nieminen <nospam@thanks.invalid> - 2011-12-17 08:16 +0000
      Re: Simple argument question 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-17 00:51 -0800
        Re: Simple argument question Juha Nieminen <nospam@thanks.invalid> - 2011-12-17 10:23 +0000
  Re: Simple argument question Goran <goran.pusic@gmail.com> - 2011-12-17 23:08 -0800
    Re: Simple argument question Heck <heckja_in@ordertostymieharvestersverizon.net> - 2012-01-05 09:59 -0500
  Re: Simple argument question Krice <paulkp@mbnet.fi> - 2011-12-18 00:46 -0800
    Re: Simple argument question jt@toerring.de (Jens Thoms Toerring) - 2011-12-18 22:14 +0000
      Re: Simple argument question Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-19 12:01 +0000
        Re: Simple argument question Tobias Müller <troplin@bluewin.ch> - 2011-12-19 17:17 +0000
          Re: Simple argument question Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-20 00:33 +0000
  Re: Simple argument question Jorgen Grahn <grahn+nntp@snipabacken.se> - 2011-12-18 17:03 +0000
    Re: Simple argument question 88888 Dihedral <dihedral88888@googlemail.com> - 2011-12-18 10:04 -0800

csiph-web