00:00
00:00
Newgrounds Background Image Theme

GodsPurpose just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Programming Tutorial 2

Share Collapse

Author Comments

don't blam if you don't like programming. includes C++ and VB.

Log in / sign up to vote & review!

Well

This is much better then your last one, you got rid of those noobish colors, the text was very easy to read. Again it sucks that I don't use either.

I ask again for an AS2 tutorial.... perhaps it would earn you a bit more respect on newgrounds!

Thanks for submitting this and giving me something new to look at while I hang out!

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

......

Thank god you took out the music a little improvements made but still needs more explanationand definitions like what variables are...etc good try though

Good

Love Daddy -- you really are not that great at programming. I have seen many of your scripts in the programming forum, and they are the work of a beginner. I'm really glad that you are enthusiastic about programming, but you really should LEARN before labeling yourself as a guru and posting badly spelt tutorials that teach very little. As for aesthetics -- at the risk of a vague assumption, shouldn't programmers know that black on white is easiest on the eyes (think: Linux)?

Cinjection responds:

well i am new to C++ but i've been doing VB for a while. I never called myself a "guru programmer". But i know enough to teach beginers the basics. This tutorial is to mabey spark a intrest in programming not to confuse everyone if i start to post API codes and what not.

some improvement

The look and content of the flash is slightly better than the last one but still has considerable room for improvement. Don't forget that aesthetics are as important as the content.

Credits & Info

Views
4,403
Faves:
4
Votes
15
Score
2.76 / 5.00

Uploaded
Feb 12, 2005
2:11 PM EST