09-13-2015, 07:08 PM
|
#14
|
Sir Krisk
Join Date: Dec 2007
Location: Vic, Australia
Posts: 930
|
Re: [University - C++ Programming] Filling an Array with RNG & Display Contents
Alright I've got it all to work. The line that I was having trouble with was really simple (I knew I was over thinking it) and I actually had the answer a long time ago, just VS said there was an error (when there wasn't) and all I needed to do was re-build the solution. Hopefully VS co-operates with me next time :P thanks all for your help, once again it's much appreciated. If you guys want some credits for the time you spent explaining things to me, just post in this thread or PM me and I'll happily give you some.
Quote:
Originally Posted by llyair
|
Appreciate the link man, cleared up some confusion I had. Definitely helped.
Quote:
Originally Posted by FoJaR
also i'm not sure what your teacher's policy on
Code:
using namespace std
is but generally it is not the best idea
|
I have no idea why this is a bad idea (please enlighten me on why, curious to know) but that's just what the teacher supplied us with. I dunno if he did it for us c++ newbies or if he actually writes his code like that.
Quote:
Originally Posted by FoJaR
btw: the first instance of Display() is a prototype, the second is the call from main, and the third is the actual declaration.
|
This was a major help, especially when I read over the link that llyair provided, I'm pretty sure a few things clicked.
__________________
|
|
|