Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

A few C++ questions

Name: Anonymous 2006-06-17 4:08

I learned in a different language, so I need to ask these.

1) Arrays
If you pass an array as a method parameter, do you pass pointers to data (so any changes made to the array in the method affect the array without having to return any values) or actual data?

2) Arrays & methods again
When declaring a method you want to recieve an array as a parameter for, do you need to declare Method(int array[##]) or just Method(int array)?

3) Strings
There are no string-variables in C++, only arrays of characters?  Again, I learned in a different language.

Name: Anonymous 2006-06-17 14:23 (sage)

>>3
<iostream.h> is a deprecated header. Best include both <iostream> and <string>, suck up the namespace ugliness and learn to grin.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List