نمایش نتایج 1 تا 4 از 4

نام تاپیک: class

  1. #1

    class

    create a class called complex for performing arithmetic with complex numbers
    write a program to test your class
    complex numbers have the form
    realpart + imaginarypart *i where i is radical -1
    use double variables to represent the private data of the class. provide a constructor that enables an object of this class to be initializers when it is declared
    the constructor should contion default values in case no initializers are provided.provide public member functions for each of the following: a) Adding two complex numbers :the real parts are added together and the imaginary parts are added together
    b) subtracting two complex numbers: the real part of the right operand is subtracted from the real part of the left operand , and the imaginary part of the right operand is subtracted form the imaginary part of the left operand
    c) printing complex numbers in the from (a,b) , where a is the real part and b is the imaginary part

  2. #2
    کاربر دائمی آواتار اَرژنگ
    تاریخ عضویت
    آبان 1384
    محل زندگی
    arjang8000@gmail.com
    پست
    2,736


    1_Change youe topic header
    2_Change the language you ask questions here, only farsi questions allowed here
    3_Change you script, you can use http://fingilish.com to type in farsi script using english keyboard
    4_Send your post to proper sub forum. I cant even tell what language this is suppose to be in (Java, C,...?)
    if you have any difficulties message me
    آخرین ویرایش به وسیله اَرژنگ : چهارشنبه 05 بهمن 1384 در 17:33 عصر

  3. #3

    complex

    من متن بالا را به زبان فارسی می نویسم .
    کلاسی به نام complex ایجاد کنید و یک برنامه برای آزمایش کلاستان برای اینکه عمل محاسبه مجموعه اعداد را انجام دهد ، بنویسید.
    مجموعه اعداد از realpart + imaginarypart *i where i is radical -1
    از متغیر double استفاده کنید وداده های خصوصی کلاس را نمایش دهید . یک constructor
    ( سازنده ) آماده کنید که توانایی داشته باشد یک object از کلاس را مقداردهی ( initializers ) نمایید در زمانیکه آنها اعلان می شوند.
    constructor باید default values را در مرحله ای که اعلان نشده آماده کند.
    عضوهای عمومی تابع را برای هر یک از موارد زیر آماده کنید :
    1) دو عضو complex (مجموعه ) ا ضافه کنید .real part به یکدیگر اضافه می شود و
    imaginary part به یکدیگر .
    2)دو عضو مجموعه را کم کنید :
    real part راست دستورالعمل ( right operand) از real part چپ دستورالعمل ( left operand ) می کاهد و imaginary part راست دستورالعمل ازimaginary part چپ دستورالعمل کاهش میدهد
    3) مجموعه اعضا از (a,b) که real part ,a و imaginary part ,b باشد.



    ممنون می شم پاسخ سوال من را بدهید .

  4. #4

    زبان برنامه نویسی

    زبان برنامه نویسی ++c

تاپیک های مشابه

  1. control class,entity class,boundary class
    نوشته شده توسط ali643 در بخش تحلیل و طراحی نرم افزار
    پاسخ: 12
    آخرین پست: یک شنبه 25 فروردین 1392, 15:22 عصر
  2. مشکل با کلاس(class)در Dll
    نوشته شده توسط mskm100 در بخش برنامه نویسی در Delphi
    پاسخ: 1
    آخرین پست: سه شنبه 18 دی 1386, 03:05 صبح
  3. اشکالی اساسی در مورد نوشتن یک class
    نوشته شده توسط daneshjo IT در بخش برنامه نویسی با زبان C و ++C
    پاسخ: 8
    آخرین پست: دوشنبه 21 خرداد 1386, 13:56 عصر
  4. Class
    نوشته شده توسط سعید112 در بخش VB.NET
    پاسخ: 2
    آخرین پست: چهارشنبه 08 آذر 1385, 12:00 عصر
  5. class
    نوشته شده توسط mehdi1357 در بخش برنامه نویسی در 6 VB
    پاسخ: 0
    آخرین پست: شنبه 11 شهریور 1385, 14:00 عصر

قوانین ایجاد تاپیک در تالار

  • شما نمی توانید تاپیک جدید ایجاد کنید
  • شما نمی توانید به تاپیک ها پاسخ دهید
  • شما نمی توانید ضمیمه ارسال کنید
  • شما نمی توانید پاسخ هایتان را ویرایش کنید
  •