Compare commits
1 Commits
7f4f11fb2b
...
69a5169841
Author | SHA1 | Date |
---|---|---|
|
69a5169841 |
27
README.md
27
README.md
|
@ -9,9 +9,6 @@ Include soi and you're ready to go!
|
||||||
- disables output buffering
|
- disables output buffering
|
||||||
- checks whether all input has been read
|
- checks whether all input has been read
|
||||||
- removes evil functions from the standard library such as new and printf.
|
- removes evil functions from the standard library such as new and printf.
|
||||||
- defines int to 64 bit
|
|
||||||
|
|
||||||
The header requires at least C++11.
|
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
|
@ -28,7 +25,7 @@ this check using `SOI_EOFCHECK=1`.
|
||||||
## Template
|
## Template
|
||||||
Using this header is as simple as:
|
Using this header is as simple as:
|
||||||
|
|
||||||
```c++
|
```
|
||||||
#include <soi>
|
#include <soi>
|
||||||
|
|
||||||
signed main() {
|
signed main() {
|
||||||
|
@ -36,24 +33,4 @@ signed main() {
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
It requires at least c++11 to function.
|
||||||
See example.cpp for a larger example.
|
|
||||||
|
|
||||||
```c++
|
|
||||||
#include <soi>
|
|
||||||
signed main() {
|
|
||||||
dbg("hi");
|
|
||||||
vector<int> pi{3,1,4,1,5,9,2,6};
|
|
||||||
dbg(pi);
|
|
||||||
int x=4;
|
|
||||||
dbg(x+3);
|
|
||||||
}
|
|
||||||
```
|
|
||||||
|
|
||||||
prints:
|
|
||||||
|
|
||||||
```
|
|
||||||
[test.cpp:3 (main)] hi
|
|
||||||
[test.cpp:5 (main)] pi = [3, 1, 4, 1, 5, 9, 2, 6] (vector<long int>)
|
|
||||||
[test.cpp:7 (main)] x+3 = 7 (long int)
|
|
||||||
```
|
|
||||||
|
|
Loading…
Reference in New Issue