- Vem kód,
- forkni ho,
- přidej 2 chyby.
Pak forky projedu a pospojuju.
Cílem je soubor o ~100 řádcích, tak přidávej metody a třídy!
[ | |
// multi-cursor | |
{ | |
"keys": ["ctrl+shift+up"], | |
"command": "select_lines", | |
"args": {"forward": false} | |
}, | |
{ | |
"keys": ["ctrl+shift+down"], | |
"command": "select_lines", |
\documentclass[11pt]{article} % styl dokumentu | |
\usepackage[utf8]{inputenc} % kodovani | |
\usepackage[czech]{babel} % nastaveni ceskeho formatovani (napr. pro uvozovky) | |
\usepackage{amsmath,amsfonts,amssymb} % balicky pro matematiku | |
\begin{document} | |
% telo dokumentu | |
\end{document} |
Články
// kód z http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/helloworld.html | |
#include <ncurses.h> | |
int main( void ) | |
{ | |
initscr(); | |
printw("Hello World !!!"); |
/** | |
* Check file for read / write | |
* (isForOpen) ? "read" : "write" | |
*/ | |
bool checkFile(const char * fileName, bool isOnlyRead) | |
{ | |
if (isOnlyRead) { | |
ifstream inFile; | |
inFile.open(fileName, ios::in); | |
if (inFile.is_open()) { |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
int main() | |
{ | |
ifstream in; | |
in.open("in.bin", ios::in | ios::binary); |
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
int main() | |
{ | |
ofstream out; | |
out.open("out.bin", ios::out | ios::binary | ios::trunc); |