void Back() for(i=1;i<=n;i++) cin>>a[i]; 'display vector a[i] a[i] is a vector with 10elements while(k>0) 'while k is greater than 0 { do 'do loop {succ(x,k,as); 'call succ function if(as) 'if as call function valid valid(x,k,ev); } while(as && !ev); 'while condition if(as) 'if as if(k==p) afis(x,k); 'if k==p then call afis() else 'else {k=k+1; x[k]=0; } else k=k-1;

How can I translate this code from c in vb.net?

I tried that:

Sub Back() For i As Integer = 1 To n Console.WriteLine("a(i)") Next k = 1 x(k) = 0 While k > 0 { do {succ(x,k,as); If (as) Then valid(x, k, ev) End If }Loop Do Until (as And Not ev) End While If (ad Then if(k=p) afis(x,k) ElseIf {k=k+1 x(k) = 0 } End If Else : k = k - 1 End If End Sub

I wait your response and hope I gave all the details!

I'm beginner in learning vb.net.

This post has been edited by **dlastral**: 26 October 2009 - 01:08 AM