-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathharmonic_improper.cpp
More file actions
32 lines (28 loc) · 971 Bytes
/
harmonic_improper.cpp
File metadata and controls
32 lines (28 loc) · 971 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#include "harmonic_improper.h"
harmonic_improper::harmonic_improper(string n1, string n2, string n3, string n4, double k, double n, string uni, string f):harmonic_angle(n1,n2,n3,k,n,uni,f)
{
prefix="improper_coeff";
style="harmonic";
setName4(n4);
}
harmonic_improper::harmonic_improper(int i, string n1, string n2, string n3, string n4, double k, double n, string uni, string f):harmonic_angle(i,n1,n2,n3,k,n,uni,f)
{
setId1(i);
prefix="improper_coeff";
style="harmonic";
setName4(n4);
}
void harmonic_improper::print(ofstream &out)
{
// cout<<"improper print"<<endl;
if (out.is_open())
{
out<<setw(20)<<left<<prefix<<setw(5)<<getId1()<<setw(10)<<style<<setw(10)
<<getK()<<setw(15)<<" "
<<getAngle()<<setw(10)<<right<<"#"
<<getName1()<<"-"<<getName2()<<"-"<<getName3()<<" "<<getName4()<<" "<< getFile()<< endl;
}else
{
cout<<"Could not write to file\n";
}
}