Hi
I am a noob to win32 programming. Frankly it is driving me nuts
The books I have come across show you to make drawing apps which is what I don't want now .
How would create in win32 the following:
void main()
{
int j;
char ans;
float num,ndx=0;
float count[15],mean,kk,std;
do
{
scanf(" Enter number\n", num);
printf(" "number=%f\n",num);'
count[ndx]=num;
++ndx
}while( ans=='y');
for(j=1<=ndx;++j)
{
kk+=count[ndx];
}
printf(" mean=%f",mean);
The idea is I wanted printed to the main window.
Replies
The code you posted there won't work anyway, you don't have a closing brace.
Also you never actually calculate the mean...
++ndx needs a semicolon at the end of it...
and as MoP stated, you never have your closing bracket.
http://msdn.microsoft.com/en-us/library/ms633559%28VS.85%29.aspx
Here is an example of it's implementation including steps showing how to create a window...
http://www.relisoft.com/Win32/winnie.html
More info on Microsofts website here...
http://msdn.microsoft.com/en-us/windows/ee633449.aspx