Webhosting in Pakistan
Results 1 to 10 of 10

Thread: c++ lerning must see

  1. #1
    ali48684 is offline Member
    Last Online
    4th July 2019 @ 08:38 PM
    Join Date
    10 Mar 2012
    Location
    multan
    Age
    27
    Gender
    Male
    Posts
    256
    Threads
    60
    Thanked
    11

    Default c++ lerning must see

    Webhosting in Pakistan
    dost c++ code ko kis softwere may likhtay hy aur is ko save kis format may kartay hy

  2. #2
    ali48684 is offline Member
    Last Online
    4th July 2019 @ 08:38 PM
    Join Date
    10 Mar 2012
    Location
    multan
    Age
    27
    Gender
    Male
    Posts
    256
    Threads
    60
    Credits
    0
    Thanked
    11

    Default c++

    koi to bata day kia it dunya pay koi expert nai hy

  3. #3
    ali48684 is offline Member
    Last Online
    4th July 2019 @ 08:38 PM
    Join Date
    10 Mar 2012
    Location
    multan
    Age
    27
    Gender
    Male
    Posts
    256
    Threads
    60
    Credits
    0
    Thanked
    11

    Default

    jis tara ye culcolater ki coding hy is ko kis format may save karna hh


    #include <iostream>
    using namespace std;

    int main()
    {
    double num;
    double num2;
    char choice;
    for (;{
    do {
    cout << "Calculator\n";
    cout << "Choose one of the following options:\n";
    cout << "1 - Addition\n";
    cout << "2 - Subtraction\n";
    cout << "3 - Multiplication\n";
    cout << "4 - Division\n";
    cin>>choice;
    } while (choice < '1' || choice > '7' && choice != 'q');
    if (choice == 'q') break;
    switch (choice){
    case '1':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to add\n";
    cin>>num2;
    cout<< "Result is " << num+num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    case '2':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to substract\n";
    cin>>num2;
    cout<<"Result is " << num-num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    case '3':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to multiply\n";
    cin>>num2;
    cout<<"Result is " << num*num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    case '4':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to devise\n";
    cin>>num2;
    cout<<"Result is " << num/num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    default:
    cout<<"Choose other option\n";
    }
    }
    return 0;
    }

  4. #4
    Salluhassan's Avatar
    Salluhassan is offline Advance Member
    Last Online
    10th November 2018 @ 07:45 PM
    Join Date
    02 Aug 2010
    Location
    Lahore
    Gender
    Male
    Posts
    2,241
    Threads
    29
    Credits
    108
    Thanked
    217

    Default

    ap 2 threads bana chukay ho issi same problem kay liyay

  5. #5
    HASEEB610's Avatar
    HASEEB610 is offline Senior Member+
    Last Online
    16th September 2015 @ 12:07 AM
    Join Date
    16 Dec 2011
    Location
    KARACHI
    Gender
    Male
    Posts
    617
    Threads
    42
    Credits
    575
    Thanked
    35

    Default

    Quote ali48684 said: View Post
    jis tara ye culcolater ki coding hy is ko kis format may save karna hh


    #include <iostream>
    using namespace std;

    int main()
    {
    double num;
    double num2;
    char choice;
    for (;{
    do {
    cout << "Calculator\n";
    cout << "Choose one of the following options:\n";
    cout << "1 - Addition\n";
    cout << "2 - Subtraction\n";
    cout << "3 - Multiplication\n";
    cout << "4 - Division\n";
    cin>>choice;
    } while (choice < '1' || choice > '7' && choice != 'q');
    if (choice == 'q') break;
    switch (choice){
    case '1':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to add\n";
    cin>>num2;
    cout<< "Result is " << num+num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    case '2':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to substract\n";
    cin>>num2;
    cout<<"Result is " << num-num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    case '3':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to multiply\n";
    cin>>num2;
    cout<<"Result is " << num*num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    case '4':
    cout << "Choose number\n";
    cin>>num;
    cout << "Other number to devise\n";
    cin>>num2;
    cout<<"Result is " << num/num2;
    cout<<"\n";
    cout<<"\n";
    cout<<"\n";
    break;
    default:
    cout<<"Choose other option\n";
    }
    }
    return 0;
    }
    is ko .cpp k naam se save kar do or aap k pichle thread me b btaya hai k kese chalate hen c ++ ki files ko Braye meherbani aik maslay k liye aik thread bnaya karen. Jazak allah.
    [IMG]http://i1302.***********.com/albums/ag135/Haseeb_Ur_Rehman/cooltext9167469701_zpsb72aca51.gif[/IMG]

  6. #6
    ali48684 is offline Member
    Last Online
    4th July 2019 @ 08:38 PM
    Join Date
    10 Mar 2012
    Location
    multan
    Age
    27
    Gender
    Male
    Posts
    256
    Threads
    60
    Credits
    0
    Thanked
    11

    Default

    lekin ye play kis tara ho ga plz help me

  7. #7
    HASEEB610's Avatar
    HASEEB610 is offline Senior Member+
    Last Online
    16th September 2015 @ 12:07 AM
    Join Date
    16 Dec 2011
    Location
    KARACHI
    Gender
    Male
    Posts
    617
    Threads
    42
    Credits
    575
    Thanked
    35

    Default

    Quote ali48684 said: View Post
    lekin ye play kis tara ho ga plz help me
    Aap k pichle thread pichle thread me aik bhai ne link diya hai turbo c complier ka wo download karen or us me bnaya karen programs to wo exe file b bna daiga jo k direct run hogi.

    Jazak allah

  8. #8
    The Genius's Avatar
    The Genius is offline Advance Member
    Last Online
    16th May 2019 @ 07:48 PM
    Join Date
    20 Feb 2011
    Gender
    Male
    Posts
    977
    Threads
    16
    Credits
    541
    Thanked
    85

    Default

    ----
    Last edited by The Genius; 6th February 2013 at 05:15 PM.

  9. #9
    ali48684 is offline Member
    Last Online
    4th July 2019 @ 08:38 PM
    Join Date
    10 Mar 2012
    Location
    multan
    Age
    27
    Gender
    Male
    Posts
    256
    Threads
    60
    Credits
    0
    Thanked
    11

    Default

    thanks

  10. #10
    ali48684 is offline Member
    Last Online
    4th July 2019 @ 08:38 PM
    Join Date
    10 Mar 2012
    Location
    multan
    Age
    27
    Gender
    Male
    Posts
    256
    Threads
    60
    Credits
    0
    Thanked
    11

    Default

    Webhosting in Pakistan
    lekin ye to 32bit par run nai ho raha hy koi to help karo

Similar Threads

  1. Replies: 522
    Last Post: 7th September 2019, 12:42 AM
  2. c++ lerning
    By ali48684 in forum Ask an Expert
    Replies: 12
    Last Post: 9th February 2013, 08:53 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •