Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
hello ,

first of all sorry for my bad English.

i have been programming on C++ for some time, then moved to VB.net 2012.
Every thing went ok so fare but i had a problem with Stacks.

how can i use this c++ code

C++
while(!stack.empty()){
 //other codes 
} 


on VB.net
Posted
Comments
Sergey Alexandrovich Kryukov 23-Sep-14 12:52pm    
Use? Do you mean write it in VB.NET? Did you just try? :-)
—SA
A.ALMUSBAHI 23-Sep-14 13:09pm    
yes how to write it in VB.NET .
i have tried it ,the error stopped for now but still have some coding to fully test the code :)
Sergey Alexandrovich Kryukov 23-Sep-14 13:43pm    
As I understand, you have an answer now.
Good luck.
—SA
A.ALMUSBAHI 23-Sep-14 14:58pm    
thanks ,
and i am sorry for lack in information about my problem.

greatest regards
Sergey Alexandrovich Kryukov 23-Sep-14 15:08pm    
No problem at all; this wasn't actually any abuse. Just please try to be as accurate and precise as possible next time.

Good luck, call again.
—SA

1 solution

How about something like while stack.Count > 0 ?
 
Share this answer
 
Comments
A.ALMUSBAHI 23-Sep-14 12:47pm    
thanks man that worked :)
Sergey Alexandrovich Kryukov 23-Sep-14 12:52pm    
5 ;-)
—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900