Im having trouble locating the error on this code all help is appricated thank you
this is the code im working with
#include "camera.h"
using namespace std;
char ending[]="].jpg";
/* Execute the command using this shell program. */
void get_real_time(v oid) //FUNCTION PROTOTYPE: get_real_time()
void get_real_time (void)<-ERROR //FUNCTION: get_real_time:( )
{
struct timeval tv;
time_t curtime;
gettimeofday(&t v, NULL);
curtime=tv.tv_s ec;
strftime(getbuf fer,30,"[%Y-%m-%d][%H-%M-%S-",localtime(&cu rtime));
milliseconds=tv .tv_usec;
sprintf(millise condsstr, "%d", milliseconds);
// convert milliseconds integer to char
}
this is the error im getting
getcamera.cpp:8 : error: expected init-declarator before "void"
getcamera.cpp:8 : error: expected `,' or `;' before "void"
this is the code im working with
#include "camera.h"
using namespace std;
char ending[]="].jpg";
/* Execute the command using this shell program. */
void get_real_time(v oid) //FUNCTION PROTOTYPE: get_real_time()
void get_real_time (void)<-ERROR //FUNCTION: get_real_time:( )
{
struct timeval tv;
time_t curtime;
gettimeofday(&t v, NULL);
curtime=tv.tv_s ec;
strftime(getbuf fer,30,"[%Y-%m-%d][%H-%M-%S-",localtime(&cu rtime));
milliseconds=tv .tv_usec;
sprintf(millise condsstr, "%d", milliseconds);
// convert milliseconds integer to char
}
this is the error im getting
getcamera.cpp:8 : error: expected init-declarator before "void"
getcamera.cpp:8 : error: expected `,' or `;' before "void"
Comment