stdcpp/tsrc/Stdcpp_test/stlport/auto/stlport_strass/src/strass1.cpp
changeset 0 e4d67989cc36
child 18 47c74d1534e1
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*
       
     2 *
       
     3 * © Portions copyright (c) 2006 Nokia Corporation.
       
     4 * All rights reserved.
       
     5 *
       
     6 */
       
     7 
       
     8  
       
     9 #include <string>
       
    10 
       
    11 #ifdef __SYMBIAN32__
       
    12 int strass1_test(int, char**)
       
    13 #else
       
    14 int main()
       
    15 #endif
       
    16       {
       
    17       std::string str1 = "string";
       
    18       std::string str2;
       
    19       str2.assign(str1.begin(), str1.begin() + 3);
       
    20            
       
    21       if(str2.compare("str")!=0)
       
    22         return 1;
       
    23       else
       
    24         return 0;
       
    25       }