От: | Alexander G | ||
Дата: | 13.01.09 10:28 | ||
Оценка: | -1 |
#include <string>
#include <iostream>
int main()
{
std::string s = "hello";
switch (s[0])
{
case 'x':
s += ", world";
break;
case 'y':
case 'h':
std::string s;
s += ", world";
break;
}
std::cout << s << '\n';
}