I would like to know how to turn a C source code into a windows graphical application. I´m using Devcpp, but VB could also do....
If you have any links to good tutorials or if you don't mind giving it a try, so i could examine the structure..
Code:
#include <stdio.h>
int main()
{
int user_input = 1;
int loop_count = -1;//starts with -1 because the exit input (final input) is ignored in the count
float sum = -1;
printf("\nThe program calculates the average of scores you enter.\n");
printf("End with a negative integer.\n");
printf("\n");
do
{
printf("Enter score (3-10): ");
sum += user_input;//used to determine the sum for the average
loop_count++;
}
while(scanf("%d", &user_input)>=0);
printf("\nYou entered %d scores.\n", loop_count);
printf("Average score: %.2f\n", sum/loop_count);
return 0;
}