author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Fri, 11 Jun 2010 15:26:22 +0300 | |
changeset 34 | 5fae379060a7 |
parent 31 | ce057bb09d0b |
child 45 | 4b03adbd26ca |
permissions | -rw-r--r-- |
31 | 1 |
/* |
34
5fae379060a7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
2 |
* |
5fae379060a7
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
3 |
* © Portions copyright (c) 2006 Nokia Corporation. |
31 | 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 |
} |