1 Replies - 818 Views - Last Post: 28 January 2010 - 01:18 PM Rate Topic: -----

#1 Lundex  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 21
  • Joined: 25-December 09

Changing from C++ to Java

Posted 28 January 2010 - 12:37 PM

while( pos != string::npos ) {
		if( pos == 0 || m_name[pos-1] == ' ' )
			return true;
		pos = name.find( search, pos + 1 );
	}
	return false;
}



I need some help with changing this from C/C++ to Java.
Is This A Good Question/Topic? 0
  • +

Replies To: Changing from C++ to Java

#2 Lundex  Icon User is offline

  • New D.I.C Head

Reputation: 2
  • View blog
  • Posts: 21
  • Joined: 25-December 09

Re: Changing from C++ to Java

Posted 28 January 2010 - 01:18 PM

View PostLundex, on 28 Jan, 2010 - 11:37 AM, said:

while( pos != string::npos ) {
		if( pos == 0 || m_name[pos-1] == ' ' )
			return true;
		pos = name.find( search, pos + 1 );
	}
	return false;
}



I need some help with changing this from C/C++ to Java.


I figured it out.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1