Есть некоторая ошибка сборки, которую я не получаю. Сначала он попросил поставить scanf_s вместо зсапЕ, а затем снова построить ошибкиЯ не могу найти ошибку сборки в visual studio?
#include<stdio.h>
void main()
{
float d,u,a,t;
printf("\nEnter the accelaration(m/sec sq): ");
scanf_s("%f",&a);
printf("Enter the time(s): ");
scanf_s("%f",&t);
printf("Enter the initial velocity: ");
scanf_s("%f",&u);
d=a*t+(u*t*t)/2;
printf("The distance covered is %f mtrs ",d);
}
/* 1>------ Build started: Project: small progarm, Configuration: Debug Win32 ------
1>Build started 14-Jul-15 12:01:32 PM.
1>InitializeBuildStatus:
1> Touching "Debug\small progarm.unsuccessfulbuild".
1>ClCompile:
1> small practice programs.cpp
1>ManifestResourceCompile:
1> All outputs are up-to-date.
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.49
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
*/
и .... Какая ошибка? –
Попробуйте имя файла без пробелов. – leppie
Кстати, 'd = u * t + 0.5 * a * t * t'. Тщательно проверяйте перед тем, как сжечь на себе чип системы спутникового управления! – Bathsheba