Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helloworldbranch #67

Open
wants to merge 2 commits into
base: cdl-20
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Markdown Workshop

some text at the beggining

This is a practical workshop about the syntax and the use of the [Markdown format](https://www.markdownguide.org/basic-syntax/).
In particular, we will focus on the [GitHub Flavored Markdown](https://docs.github.com/en/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax), used by GitHub.
See the full specification of the GitHub Flavored Markdown [here](https://github.github.com/gfm/).
Expand Down
62 changes: 62 additions & 0 deletions helloworld.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# Helloworld Programs

![hello-world](./helloworld.png)

We list below Helloworld programs for different programming languages, i.e. programs that print "Hello, World!". The specified compiler or interpreter is required for each programming languages.

The table below summarizes the programs:

| Language | Language (Spec) Site | Section | Build / Run Toolchain | Debian / Ubuntu Packages |
| :--------| :--------------------| :-------| :---------------------| :------------------------|
| C | [The standard - C]() | [C]() | GCC | `build-essential` |
| C++ | [The standard - C++]() | [C++]()| GCC / G++ | `build-essential, g++` |

## C

```C

#include <stdio.h>

int main(void) {
puts("Hello, World!");
return 0;
}

```

Build with:

```Bash
gcc -Wall -o helloworld helloworld.c
```

Run with:

```Bash
./helloworld
```

## C++

```C++

#include <iostream>

int main() {
std::cout << "Hello, World!" << std::endl;
return 0;
}

```

Build with:

```Bash
g++ -Wall -o helloworld helloworld.cpp
```

Run with:

```Bash
./helloworld
```