- 2013-06-20
- en, documentation
- cs, Jakub Vrána, Yield a další novinky PHP 5.5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
cout << "Hello word!" << endl; | |
return 0; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
int main() | |
{ | |
ofstream out; | |
out.open("out.bin", ios::out | ios::binary | ios::trunc); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <fstream> | |
using namespace std; | |
int main() | |
{ | |
ifstream in; | |
in.open("in.bin", ios::in | ios::binary); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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()) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// kód z http://tldp.org/HOWTO/NCURSES-Programming-HOWTO/helloworld.html | |
#include <ncurses.h> | |
int main( void ) | |
{ | |
initscr(); | |
printw("Hello World !!!"); |
Články
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// multi-cursor | |
{ | |
"keys": ["ctrl+shift+up"], | |
"command": "select_lines", | |
"args": {"forward": false} | |
}, | |
{ | |
"keys": ["ctrl+shift+down"], | |
"command": "select_lines", |
OlderNewer