ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

سلام به هر کسیکه ++C بلده می خوام هر کسی که میتونه اینو حل

 
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming
View previous topic :: View next topic  
Author Message
masi
مهمون يكي دو روزه


Joined: 03 Jun 2005
Posts: 1

PostPosted: Sun Jun 05, 2005 12:38 pm    Post subject: سلام به هر کسیکه ++C بلده می خوام هر کسی که میتونه اینو حل Reply with quote

// Chapter 6 of C++ How to Program
// complex.cpp
#include <iostream>

using std::cout;
using std::endl;

#include "complex.h"

int main()
{
   Complex b( 1, 7 ), c( 9, 2 );

   b.printComplex();
   cout << " + ";
   c.printComplex();
   cout << " = ";
   b.addition( c );
   b.printComplex();

   cout << '\n';
   b.setComplexNumber( 10, 1 );   
   c.setComplexNumber( 11, 5 );
   b.printComplex();
   cout << " - ";
   c.printComplex();
   cout << " = ";
   b.subtraction( c );
   b.printComplex();
   cout << endl;

   return 0;

} // end main


/**************************************************************************
 * (C) Copyright 1992-2003 by Deitel & Associates, Inc. and Prentice      *
 * Hall. All Rights Reserved.                                             *
 *                                                                        *
 * DISCLAIMER: The authors and publisher of this book have used their     *
 * best efforts in preparing the book. These efforts include the          *
 * development, research, and testing of the theories and programs        *
 * to determine their effectiveness. The authors and publisher make       *
 * no warranty of any kind, expressed or implied, with regard to these    *
 * programs or to the documentation contained in these books. The authors *
 * and publisher shall not be liable in any event for incidental or       *
 * consequential damages in connection with, or arising out of, the       *
 * furnishing, performance, or use of these programs.                     *
 *************************************************************************/
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Wed Jun 08, 2005 8:00 am    Post subject: Reply with quote

راستش منكه C++ فعلا بلد نيستم ...
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Sat Jun 11, 2005 1:03 pm    Post subject: Reply with quote

دوست من
اين برنامه اي كه اينجا paste كردي .
فايل coplex.h رو نداره .
توابعي مثل :
c.printComplex();

مربوط به هدر complerx.h استاندارد خود C++ نيست .
توي اين مثال يه هدرفايل complex قبلا ساخته شده كه source كدش رو بايد بر داري بياري ...
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Tue Aug 16, 2005 5:18 pm    Post subject: Reply with quote

پست جديد رو با موضوع جديد باز كن . پستت رو پاك كردم .
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> C/C++ Programming All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum