Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-30-2005, 05:30 PM   #1
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Computer programmers, help me

40 C:\Documents and Settings\william\Desktop\ECE370\ass5\main.cpp no matching function for call to `strlen(std::string&)'

wtf is this?

I have #include <string.h>
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:44 PM   #2
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
show the previous lines ? the one using strlen() ?
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:44 PM   #3
Baker Rd
Confirmed User
 
Join Date: Nov 2005
Posts: 647
"no matching function"

answers your question, no?
__________________
money talks and bullshit walks.
Baker Rd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:45 PM   #4
Pete-KT
Workin With The Devil
 
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
your calling a function that you have declared
Pete-KT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:48 PM   #5
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
I have this

struct stats{
string name;
int cost;
};

stats blah[2];

how can i find the length of blah[0].name ?
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:50 PM   #6
Pete-KT
Workin With The Devil
 
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
where are you declaring blah?
Pete-KT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:51 PM   #7
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
that is irrelevant. consider it in main.
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 05:58 PM   #8
Pete-KT
Workin With The Devil
 
Industry Role:
Join Date: Oct 2004
Location: West Bloomfield, MI
Posts: 51,532
whats on line 40?
Pete-KT is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 06:05 PM   #9
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
just part of a conditional statement. I just need to know the function to get the length of a string.
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 06:12 PM   #10
Baker Rd
Confirmed User
 
Join Date: Nov 2005
Posts: 647
its probably string.length or string.len (ie: length(string))
__________________
money talks and bullshit walks.

Last edited by Baker Rd; 11-30-2005 at 06:15 PM..
Baker Rd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 06:28 PM   #11
Brujah
Beer Money Baron
 
Brujah's Avatar
 
Industry Role:
Join Date: Jan 2001
Location: brujah / gmail
Posts: 22,157
I think it's just being used incorrectly. Maybe this will help.
http://www.programmingforums.org/for...ad.php?p=43453
__________________
Brujah is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-30-2005, 06:53 PM   #12
wedouglas
So Fucking Banned
 
Join Date: Aug 2004
Location: Dearborn, MI
Posts: 5,921
Thanks i found it. I saw it written online as length() and thought i used it like length(blah[0].name)

when it is actually supposed to be blah[0].name.length()

thanks for looking.
wedouglas is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.