-1
I am trying to convert a code from C++ to C and doubts have arisen. The code starts like this:
#include<bits/stdc++.h>
using namespace std;
void function(int x, int y, int z, char &teste, int *total)
I thought of removing the #include, the namespace std
and put only:
#include <limits.h>
#include <stdio.h>
Is that correct? It gives an error because of the &test. For what I should replace??
I’ve changed all the cout
and cin
. Further in the code, the compiler gives an error in a for
, and says
for loop initial declarations are only allowed in C99 mode.
Why does he not accept the is normally? This occurs, for example, in these lines:
for (int i=1; i<n; i++)
senha[i][i] = 0;