このプログラムをVC++6.0sp5、bcc5.5.1、mingw g++2.95.3-5
でコンパイルして実行すると
VC: ABC4E6G\n
bcc: ABCDEFG4
g++: ABCDEFG\n
となりました。main()4行目のseekpの指定のやり方がいけないのでしょうか。

#include <iostream>
#include <strstream>
#include <Iomanip>
using namespace std;
int main(void)
{
   char ch[130];
   strstream cStrStrm (ch, 128, ios::out);
   cStrStrm << "ABCDEFG" << endl << ends;
   cStrStrm.seekp(-(128 - 7 + 2), ios::end);
   cStrStrm << '6';
   cStrStrm.seekp(-3, ios::cur);
   cStrStrm << '4';
   cout << ch;
   return 0;
}