--- Robert Ryan <[EMAIL PROTECTED]> wrote:
> i don't follow that at all, ....almost legal in
> Java..... what part of the code I wrote looks like
> Java
See below.
Ray
>
> "Joseph A. Marrero" <[EMAIL PROTECTED]> wrote:
> Robert, thats almost legal Java (cout, for
> loop condition),
> but certainly not C++.
>
> --- Robert Ryan <[EMAIL PROTECTED]> wrote:
>
> > i was using unix, or as I know it,
> > interactive.............I will try it in Visual
> C++
> > tomorrow.
> > is it true that unix is also called linux
> > why would it be not legal in C++
> >
> > "Victor A. Wagner Jr." <[EMAIL PROTECTED]> wrote:
> > At 10:07 2007-01-28, Robert Ryan wrote:
> > >how is a vector diff from an array:
I am not sure how you define an array in Java, but
this definitely is not how you do it in C++.
> > >int[] num = {5, 4, 7, 8, 9};
> > >int total = 0;
num.length is definitely Java and not C++. An array
in C++ does not know its own length.
> > >for(int i = 0; i = num.length; i++) {
> > > total += num[i];
> > >}
> > > cout << "The total is "<< total << endl;
> > >}
> >
> > I don't believe that is legal C++.
> > what compiler are you using?
> >
> > Victor A. Wagner Jr. http://rudbek.com
> > The five most dangerous words in the English
> language:
> > "There oughta be a law"
> _________________
> Joseph A. Marrero
> http://www.l33tprogrammer.com/
____________________________________________________________________________________
Sucker-punch spam with award-winning protection.
Try the free Yahoo! Mail Beta.
http://advision.webevents.yahoo.com/mailbeta/features_spam.html