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


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

Re: how to call a function from another cpp

From Ian Collins <ian-news@hotmail.com>
Newsgroups comp.lang.c++
Subject Re: how to call a function from another cpp
Date 2012-02-21 22:30 +1300
Message-ID <9qh6i0Fro7U1@mid.individual.net> (permalink)
References <8bbd9a12-7ecf-487e-b424-be863dc56078@9g2000yqo.googlegroups.com>

Show all headers | View raw


On 02/21/12 10:29 PM, ahso wrote:
> Hi
> how to execute a function from another *.cpp? Also how to declare that
> function in both cpp files?

Declare it in a header and include the header in both.

-- 
Ian Collins

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


Thread

how to call a function from another cpp ahso <ahso47@yahoo.com> - 2012-02-21 01:29 -0800
  Re: how to call a function from another cpp Ian Collins <ian-news@hotmail.com> - 2012-02-21 22:30 +1300
  Re: how to call a function from another cpp Nick Keighley <nick_keighley_nospam@hotmail.com> - 2012-02-21 01:58 -0800

csiph-web