NO

Author Topic: Can not run this program  (Read 2097 times)

twh_twh

  • Guest
Can not run this program
« on: May 22, 2012, 05:11:15 PM »
system:win7 64bit
pelles c for windows 7.00

#include <stdio.h>
int main(void)
{
   unsigned width;
    unsigned precision;
   int number = 256;
   double weight = 242.5;

   printf("What field width?\n");
   scanf("%d",&width);
   printf("The number is:%*d:\n",width,number);
   printf("Now enter a width and a precision:\n");
    scanf("%d %d",&width,&precision);
   printf("Weight = %*.*f\n",width,precision,weight);
   return 0;
}

Offline Stefan Pendl

  • Global Moderator
  • Member
  • *****
  • Posts: 582
    • Homepage
Re: Can not run this program
« Reply #1 on: May 22, 2012, 05:33:13 PM »
What type of project did you start from?

Could you attach the project as a zip archive?
---
Stefan

Proud member of the UltraDefrag Development Team