Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
1 Commented Post
0 Endorsements
Ranked #55.0K
~26.9K People Reached
Favorite Forums
Favorite Tags
c++ x 3

1 Posted Topic

Member Avatar for Phaelax

[code=c] int string::getsize() { int n_itr=strlen(this->arr); n_itr*=sizeof(char); return n_itr; } [/code] Here string is my own class, it has only one data member that is ch* arr;. and the getsize() returns the size of dynamic character array allocated through arr in bytes. hope this helps

Member Avatar for Diego.Corso
0
27K

The End.