lab 10: init

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2022-12-26 18:38:55 +05:30
parent 42902fa122
commit 9e7cffdc32
9 changed files with 298 additions and 2 deletions

View File

@@ -21,5 +21,6 @@ int main() {
file << line << endl;
}
file.close();
return 0;
}

View File

@@ -81,7 +81,7 @@ Destructor called, nothing to do here.
#+LATEX: \clearpage
* Write a program to illustrate how template functions can be overloaded.
* Write a program to read a set of lines from the keyboard and to store it on a specified file.
#+ATTR_LATEX: :options frame=single,breaklines=true
#+begin_src cpp :tangle 27.cpp :wrap src text
@@ -108,6 +108,7 @@ int main() {
file << line << endl;
}
file.close();
return 0;
}
#+end_src