Skip to main content
0 online
orbitz May 29, 2003

Your book will explain this concept very easily. And like I said, Thinking In C++ is free online. You aren't declaring your parameters to your function as a pointer. Try reading what I said again,...

ok4now ok4nowOG 2002

although it's an old book, it looks like a good reference. unfortunately, he's referencing a style of c++ that i am not learning. regarding pointers and functions, he references "int*" and "int&" which i haven't been taught. the handling is much different than the functions my professor is looking for. thanks anyway.



btw, if anyone else wants the book, you can get it here: planet pdf

ok4now ok4nowOG 2002

although this is a different method, it made me look at the error message in a different way. it appears the function prototype was wrong. it needed to be: PopulateArray(int *, int), not (int, int). Because we have been learning about "*p" and "*r" and not "int*", i wasn't seeing the need to change to prototype. now with my newfound powers...

Welcome Back to eZabel

It's been a while. Here's what's new.

eZabel Lore

A complete history of our community — stats, Hall of Fame, legendary threads, and more.

View the Lore →

Everything Preserved

All 225,969 pieces of content from 2000–2014 are here — forums, messages, journals, photos, polls, and events.

💎

Gems

Spot something you love — a legendary comment, a classic thread, a great photo? Log in and click the diamond icon to mark it as a Gem. Add a note about why it's special. The best stuff surfaces on the Gems page.