C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 11-22-2009, 05:53 AM   #1
Registered User
 
Join Date: Aug 2005
Posts: 133
Exclamation [solved]what is wrong with this function?

EDIT: NVM PROBLEM SOLVED......



(forgot namespace std)
/facepalm
Code:
#include <vector>

bool is_equal( const int*ia, int ia_size, const vector<int> &ivec )
{
//function does nothing yet
return false;
}
compile error:
Quote:
1>Compiling...
1>is_equal.cpp
1>c:\users\rodrigo\documents\visual studio 2008\projects\primer1\primer1\is_equal.cpp(5) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\rodrigo\documents\visual studio 2008\projects\primer1\primer1\is_equal.cpp(5) : error C2143: syntax error : missing ',' before '<'
I bet you see the problem already? whats wrong ;]

thanks for the help

(i believe i copied this function signature directly from a book, by the letter...i dont see whats wrong )
(and if it matters, the other source file i have does compile with this function 'declared' in it)

Last edited by rodrigorules; 11-22-2009 at 06:01 AM.
rodrigorules is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
In over my head Shelnutt2 C Programming 1 07-08-2008 06:54 PM
Game Pointer Trouble? Drahcir C Programming 8 02-04-2006 02:53 AM
airport Log program using 3D linked List : problem reading from file gemini_shooter C Programming 3 03-04-2005 02:46 PM
structure vs class sana C++ Programming 13 12-02-2002 07:18 AM
Contest Results - May 27, 2002 ygfperson A Brief History of Cprogramming.com 18 06-18-2002 01:27 PM


All times are GMT -6. The time now is 07:57 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22