[单选题]

以下不能正确创建输出文件对象并使其与磁盘文件相关联的语句组的选项是 ( )。

A.ofstream cfile; cfile.open( "d : ofile.txt" );

B.ofstream * cfile = new ofstream; cfile -> open( "d : ofile.txt );

C.ofstream cfile( "d: ofile.txt" );

D.ofstream * cfile = new( "d : ofile.txt" )

参考答案与解析: