ch2-Concat (String concatenation)

Chapter_2     Exercise_2-1     Stream Numconv     Exercise_2-2







Concat.cpp     TCP1, p. 106         download


// Character array (string) concatenation
#include <iostream>

int main()
{
std::cout << "This is far too long to put on a "
"single line, but it can be broken up with\n"
"no ill effects as long as there is no "
"punctuation separating adjacent\n"
"character arrays.\n";
}
/*
g++ Concat.cpp -o Concat
./Concat
This is far too long to put on a single line, but it can be broken up with
no ill effects as long as there is no punctuation separating adjacent
character arrays.
*/









Chapter_2     Exercise_2-1     Stream BACK_TO_TOP Numconv     Exercise_2-2



Comments

Popular posts from this blog

Contents