|
-
August 24th, 2004, 09:54 AM
#1
newbie String question
I am having a problem passing a string ref into a class function....
in Header file.....
#include <string>
class Process
{
public:
Process();
virtual ~Process();
int Process::GetBuno(const string& buno);
};
in Main file
#include "stdafx.h"
#include "Process.h"
int Process::GetBuno(const string& buno)
{
// some code
return buno;
}
When compiled... I get ..
(19) : error C2143: syntax error : missing ',' before '&'
(19) : error C2059: syntax error : '&'
Thoughts?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|