Posts by pedr0ni • 74 points
2 posts
-
2
votes1
answer930
viewsA: How to end this program with EOF?
After reading the first line (two integers) you use the EOF within a while to read the n entries: int entrada; while(scanf("%d", &entrada) != EOF) { // ... }…
-
3
votes1
answer644
viewsA: How to pass a parameter through the URL using Httpget in ASP.NET CORE?
Try using the Route attribute: [HttpGet("/Home/Index/{idLeilao}")] public IActionResult Index(int idLeilao) { ConsultaCarrosModel obj = new ConsultaCarrosModel(); ViewBag.ListaMarcas =…