Results 1 to 10 of 10

Thread: Visual Basic Class No2

  1. #1
    noorsultan's Avatar
    noorsultan is offline Junior Member
    Last Online
    15th July 2008 @ 05:15 PM
    Join Date
    01 Jul 2008
    Posts
    5
    Threads
    5
    Credits
    1,097
    Thanked
    0

    Thumbs up Visual Basic Class No2

    Visual Basic Main Khush Ban Kar Daikhoo....
    Attached Images Attached Images  

  2. #2
    umairqureshi_6 is offline Senior Member+
    Last Online
    6th September 2016 @ 08:24 AM
    Join Date
    20 Nov 2007
    Location
    karachIiIIi
    Age
    35
    Posts
    676
    Threads
    27
    Credits
    960
    Thanked
    6

    Default

    main ne install karlya hia

    [IMG]http://i238.***********.com/albums/ff224/umairqureshi_6/qbr.jpg[/IMG]

  3. #3
    Rashid Jan's Avatar
    Rashid Jan is offline Advance Member
    Last Online
    25th December 2022 @ 04:34 AM
    Join Date
    20 Jul 2008
    Location
    ur Dreams
    Age
    35
    Gender
    Male
    Posts
    3,889
    Threads
    49
    Credits
    85
    Thanked
    70

    Default

    mere paas nahe he software Visual Basic ka plz mujhe send karein plz

  4. #4
    zeshan_abasi's Avatar
    zeshan_abasi is offline Senior Member+
    Last Online
    23rd February 2014 @ 12:30 PM
    Join Date
    12 Jan 2008
    Age
    34
    Posts
    318
    Threads
    13
    Credits
    945
    Thanked
    8

    Default

    Thank u Sir jee Thank u very much for starting this cource its very important for successful life

  5. #5
    Join Date
    29 Oct 2008
    Posts
    114
    Threads
    3
    Credits
    0
    Thanked
    0

    Default

    How to use the switch Statement.


    switch (expression)
    {
    case valueOne: statement; //I prefer the first one
    break;
    case valueTwo: statement;
    break;
    ....
    case valueN: statement;
    break;
    default: statement;
    }
    or

    switch (expression)
    {
    case constant1: statementList1;
    case constant2: statmentList2;
    :
    :
    case constantN: statementListN;
    default: statementList;
    }
    The switch statement evaluates the expression and then looks for its value among the case constants. If the value if found among the constants listed, then the statements in that statementList are executed. Otherwise if there is a default (which is optional), then the program breaks to that statementList. Note that the expression must evaluate to an integer type and that the constants must be integer constants.
    This may sound a little confusing but just bare with me and check out this code, it will all start to make sense (I hope).








    #include <iostream.h>

    int main()
    {
    int n;
    cout <<"Enter any number, but nothing past 10: ";
    cin >> n;
    switch(n)
    {
    case 10:
    cout << "10 must be your favorite #" << endl;
    break;
    case 9:
    cout << "9 must be your favorite #" << endl;
    break;
    case 8:
    cout << "8 must be your favorite #" << endl;
    break;
    case 7:
    cout << "7 must be your favorite #" << endl;
    break;
    case 6:
    cout << "6 must be your favorite #" << endl;
    break;
    case 5:
    cout << "5 must be your favorite #" << endl;
    break;
    case 4:
    cout << "4 must be your favorite #" << endl;
    break;
    case 3:
    cout << "3 must be your favorite #" << endl;
    break;
    case 2:
    cout << "2 must be your favorite #" << endl;
    break;
    case 1:
    cout << "1 must be your favorite #" << endl;
    break;
    case 0:
    cout << "0 must be your favorite #" << endl;
    break;
    default:
    cout << "Error: you didn't follow directions! << endl;
    }
    return 0;
    }

  6. #6
    babar swati is offline Junior Member
    Last Online
    12th March 2012 @ 12:48 AM
    Join Date
    19 May 2011
    Age
    36
    Gender
    Male
    Posts
    24
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    thanx alot

  7. #7
    ikram62's Avatar
    ikram62 is offline Anti-spam
    Last Online
    27th February 2024 @ 03:55 PM
    Join Date
    14 Feb 2010
    Location
    Mardan
    Age
    49
    Gender
    Male
    Posts
    9,234
    Threads
    1149
    Credits
    6,059
    Thanked
    801

    Default

    Very good sharing it is.
    I like it.

  8. #8
    uzmasiddiqui is offline Senior Member+
    Last Online
    12th March 2014 @ 12:32 AM
    Join Date
    11 Apr 2013
    Location
    karachi
    Gender
    Female
    Posts
    43
    Threads
    0
    Credits
    0
    Thanked
    0

    Default

    mushkil ha

  9. #9
    Amjadshoro is offline Senior Member+
    Last Online
    21st July 2018 @ 10:44 AM
    Join Date
    20 Aug 2016
    Gender
    Male
    Posts
    36
    Threads
    2
    Credits
    326
    Thanked
    0

    Default

    kia me visual basic 5 use kar sakta hun mere pas visual basic 6 nahin he, visual basic 5 istmal karne se koi problem he to plz batain

  10. #10
    Amjadshoro is offline Senior Member+
    Last Online
    21st July 2018 @ 10:44 AM
    Join Date
    20 Aug 2016
    Gender
    Male
    Posts
    36
    Threads
    2
    Credits
    326
    Thanked
    0

    Default

    sir please mujhe visual basic class 3 post karein mein visual basic me new member hun or ap to jante hein he vb me boht pehle hi post ho choki hein shayad 2009 ki post hein mujhe vb class 3 nahin mil rahi he so sir please help me

Similar Threads

  1. Replies: 11
    Last Post: 6th May 2022, 06:16 PM
  2. Visual Basic Class First
    By Thinkme1st in forum Visual Basic
    Replies: 261
    Last Post: 29th January 2017, 09:26 PM
  3. Visual Basic Class 10
    By Thinkme1st in forum Visual Basic
    Replies: 137
    Last Post: 1st October 2016, 06:54 AM
  4. Visual Basic Class 8
    By Thinkme1st in forum Visual Basic
    Replies: 80
    Last Post: 1st October 2016, 06:53 AM
  5. Visual Basic Class 2
    By Thinkme1st in forum Visual Basic
    Replies: 119
    Last Post: 31st August 2016, 12:34 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
  •