#include "std_lib_facilities.h"
  int main() {
  cout << "Please enter the name of the person you want to write to\n";
  string first_name;
  cin >> first_name;
  cout << "Dear " << first_name << ",\n\n";
  cout << "How are you doing, " << first_name << "?\n";
  }
   
  I ran the above C++ code today on Visual C++ and it looks a whole lot like 
the code below with the loop for an array


Paul Herring <[EMAIL PROTECTED]> wrote:          On 1/29/07, 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
  
I'd like to know which part of it you think looks like C++ (or C.) 


      "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:
> >int[] num = {5, 4, 7, 8, 9};
> >int total = 0;
> >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? 
> 





-- 
PJH

#706281 +(1868)- [X]
TriPod11: bush ain't THAT bad...he kinda knows what he's doin
idaredbeet08: Please, Monica Lewenski had more President in her than George 
Bush ever will.   

         

 
---------------------------------
 Get your own web address.
 Have a HUGE year through Yahoo! Small Business.

Reply via email to