1 Replies - 603 Views - Last Post: 11 December 2012 - 07:29 AM Rate Topic: -----

#1 shakya1990  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 30-November 12

XCode Issue

Posted 11 December 2012 - 05:49 AM

Hey all, I'm wondering if you guys could assist me with this particular part of coding project.
I'm nearly finished and I wasn't able to fix this last part.

Here are the errors I get:

-Semantic Issue: Array has incomplete element type 'void'
-Parse Issue: Expected unqualified-id
-Semantic Issue: Declaration of reference variable 'listSize' requires an initializer
-Parse Issue: Expected ';' after top level declarator

All these errors are for line 1.

This is the code:
void addEntry(const AddressEntry& anEntry, AddressEntry list[], int& listSize)
{
	strcpy(list[listSize].email, anEntry.email);
	strcpy(list[listSize].name, anEntry.name);
	listSize++;
}


Thank you

Is This A Good Question/Topic? 0
  • +

Replies To: XCode Issue

#2 jimblumberg  Icon User is online

  • member icon


Reputation: 4096
  • View blog
  • Posts: 12,675
  • Joined: 25-December 09

Re: XCode Issue

Posted 11 December 2012 - 07:29 AM

You need to show more code. How are your variables defined in your calling function. How is your structure/class defined. A small complete program that illustrates your problem would be beneficial.

Jim
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1