Posts by Inácio Mattos • 1 point
2 posts
-
0
votes3
answers178
viewsA: Program in C : A certain doubt
A different and more efficient solution for your program would be: void main(){ int a, b, c, MAIOR, INTER, MENOR; scanf("%d %d %d", &a, &b, &c); if(a>b){ MAIOR = a; INTER = a; MENOR =…
-
0
votes2
answers1160
viewsA: How to know if a process is running in windows using c# or . bat?
In C#, just use the Diagnostics library of the windows itself. using System.Diagnostics; Process[] processo = Process.GetProcessesByName("nomeDoProcesso"); if (processo.Length > 0)…