delorie.com/archives/browse.cgi | search |
From: | jshopREMOVE AT voicenet DOT com (John) |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Undefined reference to npos (std::string find functions)??? |
Message-ID: | <361b7853.6259786@netnews.voicenet.com> |
References: | <361931EA DOT 7C96A0D0 AT mail DOT pentek DOT com> |
X-Newsreader: | Forte Free Agent 1.1/32.230 |
Lines: | 11 |
Date: | Wed, 07 Oct 1998 14:30:44 GMT |
NNTP-Posting-Host: | 207.103.116.92 |
X-Trace: | news2.voicenet.com 907770652 207.103.116.92 (Wed, 07 Oct 1998 10:30:52 EDT) |
NNTP-Posting-Date: | Wed, 07 Oct 1998 10:30:52 EDT |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
> subIndex = fred.find('-'); // since '-' does not occur in >fred, npos should be returned > > if (subIndex == npos) //<< This is flagged "npos >undeclared" if( subindex == string::npos ) // npos is a member of class string > std::cout << "String not found\n" > > return(0); >}
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |