Visual Basic Main Khush Ban Kar Daikhoo....
Visual Basic Main Khush Ban Kar Daikhoo....
main ne install karlya hia
[IMG]http://i238.***********.com/albums/ff224/umairqureshi_6/qbr.jpg[/IMG]
mere paas nahe he software Visual Basic ka plz mujhe send karein plz
Thank u Sir jee Thank u very much for starting this cource its very important for successful life
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;
}
thanx alot
Very good sharing it is.
I like it.
mushkil ha
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
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
Bookmarks