Re[3]: Передать массив из функции
От: gear nuke  
Дата: 01.07.10 02:29
Оценка: :)
Здравствуйте, art_kuz, Вы писали:

_>супер си-шный вариант


Думаешь, такое будет быстрее?
typedef std::array<long, 200> myarray;

myarray myfunc(long*  b)
{
  myarray a;
  for (int i=0;i<200;i++)
    a[i]=b[i];
  return a;
}
People who are more than casually interested in computers should have at least some idea of what the underlying hardware is like. Otherwise the programs they write will be pretty weird (c) D.Knuth
 
Подождите ...
Wait...
Пока на собственное сообщение не было ответов, его можно удалить.