cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
using .length()
using .length()
Feb 18, 2009 at 9:35pm UTC
vexstorm
(31)
i have this for my code
1
2
3
4
5
6
7
8
string str;
int
len; str = ReadStr(); len = str.length();
return
len;
I am getting an error saying no function definition allowed there... any ideas??
Feb 18, 2009 at 10:08pm UTC
Scipio
(446)
Post your whole code. It sounds like you're declaring a function inside another function, check or you dont have the datatypes in front of functioncalls.
Feb 19, 2009 at 9:15am UTC
awasteoflife
(73)
One problem you might have (as I had it) is that you have missed a
}
bracket or added too many.
Topic archived. No new replies allowed.