Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
21.string.find.stdcxx-1035.cpp
Go to the documentation of this file.
1
29#include <cassert>
30#include <string>
31
32int main ()
33{
34 std::string s = ".google.com";
35 std::string s1 = "www.google.google.com";
36
37 std::string::size_type pos = s1.find (s);
38
39 assert(10 == pos);
40
41 return 0;
42}
#define s1
Definition 17.names.cpp:242
#define s
#define pos
Definition 17.names.cpp:518
#define assert(expr)
Definition _cassert.h:40