changes
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
import Image from 'next/image';
|
||||
import styles from './Home.module.css';
|
||||
|
||||
export default function Home() {
|
||||
return <div className={styles.content}></div>
|
||||
return <>
|
||||
<h1 style={{textAlign: "center", fontSize: "40px", fontWeight: "bold"}}>Wyst</h1>
|
||||
<h1 style={{textAlign: "center", fontSize: "27px", fontWeight: "revert"}}>A Modern Low Level Language</h1>
|
||||
</>
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
{
|
||||
"index": "Introduction",
|
||||
"declarations": "Declarations"
|
||||
"index": "Introduction"
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
# Variables
|
||||
```c
|
||||
int x = 20;
|
||||
```
|
||||
|
||||
# Functions
|
||||
# Defining functions
|
||||
```c
|
||||
int my_func(int x) {
|
||||
printf("the number is: %d", x)
|
||||
}
|
||||
```
|
||||
|
||||
# Calling functions
|
||||
```c
|
||||
my_func(69);
|
||||
```
|
||||
@@ -0,0 +1,23 @@
|
||||
# Defining a structure
|
||||
```c
|
||||
struct Point {
|
||||
int x;
|
||||
int y;
|
||||
int z;
|
||||
}
|
||||
```
|
||||
|
||||
# Using a structure as a variable
|
||||
```rust
|
||||
Point my_point { x: 0, y: 10, z: 20 };
|
||||
```
|
||||
|
||||
# Using a structure
|
||||
```rust
|
||||
Point { x: 30, y: 40, z: 50 }
|
||||
```
|
||||
|
||||
# Getting items from a structure
|
||||
```rust
|
||||
my_point.x
|
||||
```
|
||||
@@ -0,0 +1,3 @@
|
||||
import Home from './components/home'
|
||||
|
||||
<Home/>
|
||||
Reference in New Issue
Block a user