return a pointer.

Thanks,
Tyler Littlefield
http://tysdomain.com

  ----- Original Message ----- 
  From: Jos Timanta Tarigan 
  To: [email protected] 
  Sent: Wednesday, January 07, 2009 4:14 PM
  Subject: [c-prog] function returning a 2D array?


  Hi, 

  Im trying to make a function that return a 2D array that size are dependent 
to the other parameter eg:

  Color[][] scan( width, height)

  so the method will return a Color[width][height] object. But i notice that 
this way is not working in C++. What is the best way to do this? Why cant i 
return a 2D array?

  Thanks in advance 



   

  __________ NOD32 3746 (20090107) Information __________

  This message was checked by NOD32 antivirus system.
  http://www.eset.com


[Non-text portions of this message have been removed]

Reply via email to