Estou fazendo um programa de calculadora simples e quando vou rodar o programa ele mostra um pop up dizendo:
" Unable to start program (C:\User\Paloma\Desktop\visauls2010p\calc\Debug\calc.exe)
O sistema não pode encontrar o arquivo especificado."
Esse é o codigo da calculadora que eu fiz:
//
#include <stdio.h>
#include <conio.h>
float n1,n2,resp;
char op;
void main (){
printf("Digite n1");
scanf("%f",&n1);
printf("Digite operador(+,-,*,/)");
op= getche();
printf("Digite n2");
scanf("%f,&n2");
if(op=='+')
{
resp=n1+n2;
printf("%f+%f=%f",n1,n2,resp);
}
else if (op=='-')
{
resp=n1-n2;
printf("%f-%f=%f",n1,n2,resp);
1>------ Build started: Project: calc, Configuration: Debug Win32 ------
1> call.cpp
1>c:\users\paloma\desktop\visaul s2010p\calc\calc\call.cpp(11): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(304) : see declaration of 'scanf'
1>c:\users\paloma\desktop\visaul s2010p\calc\calc\call.cpp(17): warning C4996: 'getche': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _getche. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\conio.h(129) : see declaration of 'getche'
1>c:\users\paloma\desktop\visaul s2010p\calc\calc\call.cpp(22): warning C4996: 'scanf': This function or variable may be unsafe. Consider using scanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files\microsoft visual studio 10.0\vc\include\stdio.h(304) : see declaration of 'scanf'
1>c:\users\paloma\desktop\visaul s2010p\calc\calc\call.cpp(62): error C3861: 'prinft': identifier not found
1>c:\users\paloma\desktop\visaul s2010p\calc\calc\call.cpp(66): error C2181: illegal else without matching if
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
//
Quando rodo outro codigos prontos, ai o problema não aparece. preciso de ajuda! Obrigada.