Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
COMS327
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jake Feddersen
COMS327
Commits
e156d5f8
Commit
e156d5f8
authored
5 years ago
by
Jake Feddersen
Browse files
Options
Downloads
Patches
Plain Diff
Add notes
parent
3327cdd4
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
notes/4_08/exception_handling.cpp
+17
-0
17 additions, 0 deletions
notes/4_08/exception_handling.cpp
notes/4_08/excptions
+0
-0
0 additions, 0 deletions
notes/4_08/excptions
notes/4_08/notes.txt
+10
-0
10 additions, 0 deletions
notes/4_08/notes.txt
with
27 additions
and
0 deletions
notes/4_08/exception_handling.cpp
0 → 100644
+
17
−
0
View file @
e156d5f8
#include
<iostream>
using
namespace
std
;
int
main
(
int
argc
,
char
*
argv
[])
{
// Anything can be thrown as an exception
try
{
throw
"Error"
;
}
catch
(
char
const
*
s
)
{
cout
<<
s
<<
endl
;
}
cout
<<
"Hello, World!"
<<
endl
;
return
0
;
}
This diff is collapsed.
Click to expand it.
notes/4_08/excptions
0 → 100755
+
0
−
0
View file @
e156d5f8
File added
This diff is collapsed.
Click to expand it.
notes/4_08/notes.txt
0 → 100644
+
10
−
0
View file @
e156d5f8
Templates:
New version of class created for every type of the class that is used
template <class T>
class someClass { }
Every time another type is used with the template (someClass<int>, someClass<string>, etc, a new copy of the code is created.
Template code must be available where it is used. Unless it is used in
only one file, the entire class is usually written in the header.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment