use pragma instead of headers
This commit is contained in:
parent
68b2ed4783
commit
42f287b018
3 changed files with 2 additions and 12 deletions
|
@ -20,8 +20,6 @@ Copy and paste [`c/`](./c/) directory, and you should be good to go!
|
||||||
- **Run `make dev` to compile the program in debug mode.**
|
- **Run `make dev` to compile the program in debug mode.**
|
||||||
- **Run `make clean` to clean artifacts.**
|
- **Run `make clean` to clean artifacts.**
|
||||||
|
|
||||||
> Note that in headers, the syntax is `PROJECTNAME_FILENAME_H`
|
|
||||||
|
|
||||||
## C++
|
## C++
|
||||||
|
|
||||||
Copy and paste [`cpp/`](./cpp/) directory, and you should be good to go!
|
Copy and paste [`cpp/`](./cpp/) directory, and you should be good to go!
|
||||||
|
@ -32,8 +30,6 @@ Copy and paste [`cpp/`](./cpp/) directory, and you should be good to go!
|
||||||
- **Run `make dev` to compile the program in debug mode.**
|
- **Run `make dev` to compile the program in debug mode.**
|
||||||
- **Run `make clean` to clean artifacts.**
|
- **Run `make clean` to clean artifacts.**
|
||||||
|
|
||||||
> Note that in headers, the syntax is `PROJECTNAME_FILENAME_HPP`
|
|
||||||
|
|
||||||
## LaTeX
|
## LaTeX
|
||||||
|
|
||||||
### Document
|
### Document
|
||||||
|
|
|
@ -1,8 +1,5 @@
|
||||||
#ifndef PROJECT_EXAMPLE_H
|
#pragma once
|
||||||
#define PROJECT_EXAMPLE_H 1
|
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
void example();
|
void example();
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
#ifndef PROJECT_EXAMPLE_HPP
|
#pragma once
|
||||||
#define PROJECT_EXAMPLE_HPP 1
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
@ -13,5 +12,3 @@ public:
|
||||||
Example(const Example &); // copy constructor
|
Example(const Example &); // copy constructor
|
||||||
const Example &operator=(const Example &); // copy assignement
|
const Example &operator=(const Example &); // copy assignement
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
Loading…
Reference in a new issue