| Example Program String Basics Basic string class handling. File "string_1.cpp"
1 | #include <iostream>
2 | #include <seqan/sequence.h>
3 | #include <seqan/file.h>
4 |
5 |
6 | int main()
7 | {
8 | seqan::Peptide prot = "anypeptide";
9 | std::cout << length(prot) << std::endl; //output: 10
10 |
11 | prot += "anewend";
12 | std::cout << prot << std::endl; //ouput: "ANYPEPTIDEANEWEND"
13 |
14 | return 0;
15 | }
See String SeqAn - Sequence Analysis Library - www.seqan.de