How can i Fix this code im having problem with the fopen freopenon C++ Visual Studio theres an error that i need to use fopen_s
#include
#include
#include
using namespace std;
int ConteoNumbYLetras(char* str, int& palabras, int&letras)// la function del pointer que returna el numbero depalabras y letras//
{
palabras = 0;
unsigned int i = 0;
letras = 0;
while (str[i] == ‘ ‘)
i++;
for (; str[i]; i++)
{
if (((str[i] >= ‘a’) && (str[i] <= ‘z’)) ||((str[i] >= ‘A’) && (str[i] <= ‘Z’)))
palabras++;
if (str[i] == ‘ ‘)
{
letras++;
while (1)
if (str[i] == ‘ ‘)
i++;
else
{
i–;
break;
}
}
}
palabras = palabras + 1;
return (palabras);
}
float promedio(float palabras, float letras) // la funcion queda el promedio//
{
float a = (double)(letras /
PayPal Gateway not configured
PayPal Gateway not configured