forked from aaronbloomfield/pdr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathobjectCellMain.cpp.html
More file actions
26 lines (25 loc) · 1.73 KB
/
Copy pathobjectCellMain.cpp.html
File metadata and controls
26 lines (25 loc) · 1.73 KB
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
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="GNU source-highlight 3.1.5
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite">
<title>objectCellMain.cpp</title>
</head>
<body bgcolor="white">
<pre><tt><b><font color="#000080">#include</font></b> <font color="#FF0000"><iostream></font>
<b><font color="#000080">#include</font></b> <font color="#FF0000">"objectCell.h"</font>
<b><font color="#0000FF">using</font></b> <b><font color="#0000FF">namespace</font></b> std<font color="#990000">;</font>
<font color="#009900">int</font> <b><font color="#000000">main</font></b><font color="#990000">()</font> <font color="#FF0000">{</font>
<font color="#008080">ObjectCell<int></font> m1<font color="#990000">;</font>
<font color="#008080">ObjectCell<double></font> <b><font color="#000000">m2</font></b><font color="#990000">(</font><font color="#993399">3.14</font><font color="#990000">);</font>
m1<font color="#990000">.</font><b><font color="#000000">setValue</font></b><font color="#990000">(</font><font color="#993399">37</font><font color="#990000">);</font>
m2<font color="#990000">.</font><b><font color="#000000">setValue</font></b><font color="#990000">(</font>m2<font color="#990000">.</font><b><font color="#000000">getValue</font></b><font color="#990000">()</font> <font color="#990000">*</font><font color="#993399">2</font><font color="#990000">);</font>
<i><font color="#9A1900">// ...</font></i>
<b><font color="#0000FF">return</font></b> <font color="#993399">0</font><font color="#990000">;</font>
<font color="#FF0000">}</font>
</tt></pre>
</body>
</html>