Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
resources - DEPRECATED use new repository instead
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
TDT4102
VS-Code
resources - DEPRECATED use new repository instead
Merge requests
!10
Oving 0 templates
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Oving 0 templates
master
into
main
Overview
0
Commits
1
Pipelines
0
Changes
3
Merged
Erling Syversveen Lie
requested to merge
master
into
main
2 years ago
Overview
0
Commits
1
Pipelines
0
Changes
3
Expand
0
0
Merge request reports
Compare
main
main (base)
and
latest version
latest version
2b2755fe
1 commit,
2 years ago
3 files
+
30
−
0
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
templates/_folder_Exercises/O00/main.cpp
0 → 100644
+
21
−
0
Options
//
// This is example code from Chapter 2.2 "The classic first program" of
// "Programming -- Principles and Practice Using C++" by Bjarne Stroustrup
//
// keep_window_open() added for TDT4102, excercise 0
// This program outputs the message "Hello, World!" to the monitor
#include
"std_lib_facilities.h"
#include
"other.h"
//------------------------------------------------------------------------------'
// C++ programs start by executing the function main
int
main
()
{
cout
<<
"Hello from main!"
<<
endl
;
messageFromOtherFile
();
return
0
;
}
//------------------------------------------------------------------------------
Loading