Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

switch case in intel

BYRTYRTYRTY__TRBYTRY
261 Views

  switch (base) {

02    case 'A': case '0': return 0;

03    case 'C': case '1': return 1;

04    case 'G': case '2': return 2;

05    case 'T': case '3': return 3;

06  }

07  cerr << "error: unexpected character: '"

08       << base << "'n";

09  assert(false);

10  abort();

0 Kudos
0 Replies
Reply