HELP ON ERRORS

PROBLEM:D:database.cpp(152) : error C2601: 'linearSearch' : local function definitions are illegal
D:database.cpp(166) : error C2958: the left parenthesis '(' found at 'D:database.cpp(163)' was not matched correctly
D:database.cpp(214) : fatal error C1004: unexpected end of file found


WHAT DOES THERSE ERRORS MEAN IF I HAVE SOMETHING LIKE
void linearSearch()
{//THIS IS THE ERROR
or
for(int t=0; t<20; t++);
{
if(strcmp(records[t].address3,key);==0
printcountry(t);
identical=identical+1;
}THIS IS THE ERROR

Comments

  • [blue]The error is actually in the function above it. It has mismatched braches[/blue]

    : PROBLEM:D:database.cpp(152) : error C2601: 'linearSearch' : local function definitions are illegal
    : D:database.cpp(166) : error C2958: the left parenthesis '(' found at 'D:database.cpp(163)' was not matched correctly
    : D:database.cpp(214) : fatal error C1004: unexpected end of file found
    :
    :
    : WHAT DOES THERSE ERRORS MEAN IF I HAVE SOMETHING LIKE
    : void linearSearch()
    : {//THIS IS THE ERROR
    : or
    : for(int t=0; t<20; t++);
    : {
    : if(strcmp(records[t].address3,key);==0
    : printcountry(t);
    : identical=identical+1;
    : }THIS IS THE ERROR
    :

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion