repo.or.cz
/
agianapa.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Import utility that makes sphere data
[agianapa.git]
/
qt
/
mkspdata
/
main.cpp
blob
bc8937e273305d6e1abb8a2dd003c3d2aa6f9c4e
1
#include <iostream>
2
#include <QDataStream>
3
#include <QFile>
4
5
int
main
(
int
argc
,
char
*
argv
[])
6
{
7
QFile file
;
8
float
t
,
h
;
9
10
file
.
setFileName
(
argv
[
1
]);
11
file
.
open
(
QIODevice
::
WriteOnly
);
12
QDataStream
out
(&
file
);
13
14
for
(
t
=
0.0
;
t
<
10.0
;
t
+=
0.01
)
15
out
<<
t
<<
5.0
*
t
*
t
;
16
17
file
.
close
();
18
return
0
;
19
}