for start c# is better,I think.its easier,etc..but for getting a job and creating games,c++ is absolutely the best...:) I'm learning c# atm,if I know it on a pr0 level then I'll learn c++ aswell.
greetings,vorosmihaly
greetings,vorosmihaly
well the basic commands are everywhere nearly the same.Quote:
Hello guys
so im learning c++, but i think i dont go anywhere with it..
What you guys think that is better for the future(getting a job, making games etc)?
Well, he asked for one:Quote:
Both. Poly is never worse than Mono.
Quote:
What you guys think that is better for the future(getting a job, making games etc)?
Sorry, but this kinda proves you don't know what you are talking about.Quote:
C++; or just learn all of the coding of Microsoft languages, they are really similar, just C++ is the most advance in my opinion. C# is good as well, I love C#.
I am talking about 2008 versions in general, and I know they are different, I am saying that they have similarities, and very similar looks. And you can easily convert a lot of VB .NET codes to C# in the 2008 edition.Quote:
Sorry, but this kinda proves you don't know what you are talking about.
Try to compare C# to Visual Basic (old versions, VB6 for example), it's totally different!
If you mean .Net languages, it's still wrong, VB.Net and C# are nothing alike.
Also, Microsoft languages is a very general topic, Foxpro is a Microsoft programming language too.
01 Public Class Form1 02 03 Private Sub btnCalculateBill_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCalculateBill.Click 04 05 'Declare Variables 06 07 Dim bgnOdo As String = Me.txtBeginOdometer.Text 08 Dim endOdo As String = Me.txtEndOdometer.Text 09 Dim numDayRent As String = Me.txtNumDayRent.Text 10 Dim numOfMiles As Decimal = 0 11 Const mileChrgB As Decimal = 0.12 '$0.12 for business 12 Const mileChrgP As Decimal = 0.1 '$0.10 for personal 13 Const rentalChrgB As Decimal = 15.0 '$15.00 for business 14 Const rentalChrgP As Decimal = 12.5 '$12.50 for personal 15 Dim totMileChrg As Decimal = 0 16 Dim totRentalChrg As Decimal = 0 17 Dim totDue As Decimal = 0 18 19 numOfMiles = endOdo - bgnOdo 20 21 Do While Me.radPersonal.Checked = True 22 Me.radBusiness.Checked = True 23 Me.radPersonal.Checked = False 24 Loop 25 26 27 If Me.radBusiness.Checked Then 'Business Customer 28 totMileChrg = mileChrgB * numOfMiles 29 totRentalChrg = numDayRent * rentalChrgB 30 totDue = totMileChrg + totRentalChrg 31 End If 32 33 If Me.radPersonal.Checked Then 'Personal Customer 34 totMileChrg = mileChrgP * numOfMiles 35 totRentalChrg = numDayRent * rentalChrgP 36 totDue = totMileChrg + totRentalChrg 37 End If 38 39 Me.lblAmtOfMiles.Text = Format(numOfMiles, "General Number") 40 Me.lblAmtOfMileChrg.Text = Format(totMileChrg, "Currency") 41 Me.lblAmtDayUseChrg.Text = Format(totRentalChrg, "Currency") 42 Me.lblTotDueDisplay.Text = Format(totDue, "Currency") 43 44 End Sub
Ofc this is easy, but it's not a difficult function.Quote:
I am talking about 2008 versions in general, and I know they are different, I am saying that they have similarities, and very similar looks. And you can easily convert a lot of VB .NET codes to C# in the 2008 edition.
Play around with that, see if its hard for you to convert it to C#.Code:01 Public Class Form1 02 03 Private Sub btnCalculateBill_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnCalculateBill.Click 04 05 'Declare Variables 06 07 Dim bgnOdo As String = Me.txtBeginOdometer.Text 08 Dim endOdo As String = Me.txtEndOdometer.Text 09 Dim numDayRent As String = Me.txtNumDayRent.Text 10 Dim numOfMiles As Decimal = 0 11 Const mileChrgB As Decimal = 0.12 '$0.12 for business 12 Const mileChrgP As Decimal = 0.1 '$0.10 for personal 13 Const rentalChrgB As Decimal = 15.0 '$15.00 for business 14 Const rentalChrgP As Decimal = 12.5 '$12.50 for personal 15 Dim totMileChrg As Decimal = 0 16 Dim totRentalChrg As Decimal = 0 17 Dim totDue As Decimal = 0 18 19 numOfMiles = endOdo - bgnOdo 20 21 Do While Me.radPersonal.Checked = True 22 Me.radBusiness.Checked = True 23 Me.radPersonal.Checked = False 24 Loop 25 26 27 If Me.radBusiness.Checked Then 'Business Customer 28 totMileChrg = mileChrgB * numOfMiles 29 totRentalChrg = numDayRent * rentalChrgB 30 totDue = totMileChrg + totRentalChrg 31 End If 32 33 If Me.radPersonal.Checked Then 'Personal Customer 34 totMileChrg = mileChrgP * numOfMiles 35 totRentalChrg = numDayRent * rentalChrgP 36 totDue = totMileChrg + totRentalChrg 37 End If 38 39 Me.lblAmtOfMiles.Text = Format(numOfMiles, "General Number") 40 Me.lblAmtOfMileChrg.Text = Format(totMileChrg, "Currency") 41 Me.lblAmtDayUseChrg.Text = Format(totRentalChrg, "Currency") 42 Me.lblTotDueDisplay.Text = Format(totDue, "Currency") 43 44 End Sub