is there away for a function to return a struct?

  • From: "redawkin" < >
  • To:
  • Subject: is there away for a function to return a struct?
  • Date: Tue, 26 Feb 2013 19:24:55 -0500


Code:


car CargoTrain::makeNewCar(){
    car * newC = new car;
    newC -> sending =  -50;
    newC -> destination = setDestination(newC);
    newC -> prev = NULL;
    newC -> next = NULL;
    return newC;
}









is there away for a function to return a struct?

redawkin 02/27/2013

<Possible follow-up(s)>

Re: is there away for a function to return a struct?

paulf 02/27/2013

Project Features

About this Project

CND was started in November 2009, is owned by Leonid Lenyashin, and has 130 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close