summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/doc_src_qttest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'doc/src/snippets/code/doc_src_qttest.cpp')
0 files changed, 0 insertions, 0 deletions
if (fileOpen) { fout << "double sqrtTable[] = {" << std::endl; for (int i = 0; i < 10; ++i) { fout << sqrt(static_cast<double>(i)) << "," << std::endl; } // close the table with a zero fout << "0};" << std::endl; fout.close(); } return fileOpen ? 0 : 1; // return 0 if wrote the file }