C++ compile problems
C++ compile problems
- Subject: C++ compile problems
- From: Geoff Leyland <email@hidden>
- Date: Fri, 25 Jun 2004 17:34:54 +1200
Shouldn't your right parenthesis ")" at the end of
string word[]={"Arizona","walk","government","C++","beach");
be a right brace "}"?
Cheers,
Geoff
On 25/06/2004, at 4:49 PM, email@hidden wrote:
even when I do a g++ compile in terminal, i get the same errors as in
Xcode. But the errors seem to be incongruent with C++ programming
style. Look at my code followed by the errors. Any suggestions would
be monumental!!! I have a C++ programming class and if I can get the
C++ compiler to work I would be in heaven.
int main () {
string word[]={"Arizona","walk","government","C++","beach");
int wordsize = sizeof(word)/sizeof(string), i;
for (int j=0;j<wordsize;j++)
cout<<word[j]<<" ";
cout << endln;
//now pass each word to numberVowels
for (i=0;i<wordsize;i++)
{
cout<<word[i]<<": ",,numberVowels(word[i])<<"
vowels"<<endl;
firstLast(word[i]);
}
return 0;
}
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.