OMGlolWIN | OWNAGE=80%
dim age as integer
Private Sub cmdcalc_Click()
age = txtage.text
if (age > 100) then
txtans.text = "wow, your age is over 100"
else if(age < 100) then
txtans.text ="Your age under 100"
end if
End Sub
Private Sub Form_Load()
Form1.Show
For i = 1 To 10
Print i
Next i
End Sub
# include <iostream.h>
# include <stdlib.h>
int main()
{
int playercardv1 = 0;
int totalplayerv = 0;
int compcardv1 = rand() %11;
int compcardv2 = rand() %10;
int hit = 1;
int compv = compcardv1 + compcardv2;
while (hit == 1)
{
cout<<"welcome to BlackJack"<<endl;
playercardv1 = rand() %10;
cout<<"Player gets "<<playercardv1<<endl;
totalplayerv += playercardv1;
cout<<"You have: "<< totalplayerv<<endl<<"Do you want to hit?(1 for yes, 2 for no)"<<endl;
cin>>hit;
cin.get();
if (hit == 2)
{
cout<<"Players total:"<<totalplayerv<<endl;
cout<<"Computer gets:"<<compv<<endl;
if(totalplayerv > 21)
{
cout<<"You lose"<<endl;
cin.get();
return 0;
}
///higher card check
if (compv > totalplayerv)
{
cout<<"You lose!"<<endl;
cin.get();
return 0;
}
else
{
cout<<"You win!"<<endl;
cin.get();
return 0;
}
}
//player says 1
if(totalplayerv > 21)
{
cout<<"You lose"<<endl;
cin.get();
return 0;
}
}
}
//end of code
<?
echo 'Pretty good Tutorial. Good explained, but still blad and pothetic';
define(pothetic, "Means not very good");
echo '<br>';
echo 'I voted Five';
echo '&nbps;';
?>
~Nino