This file contains 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 <QApplication> | |
#include <QTextEdit> | |
#include <QPushButton> | |
#include <QVBoxLayout> | |
int main(int argc, char **argv) | |
{ | |
QApplication app(argc, argv); | |
QTextEdit textEdit; |
This file contains 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 <QApplication> | |
#include <QTextEdit> | |
#include <QPushButton> | |
#include <QVBoxLayout> | |
int main(int argc, char **argv) | |
{ | |
QApplication app(argc, argv); | |
QTextEdit *textEdit = new QTextEdit(); |
This file contains 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
###################################################################### | |
# Automatically generated by qmake (2.01a) Mon Mar 5 13:09:05 2012 | |
###################################################################### | |
TEMPLATE = app | |
TARGET = | |
DEPENDPATH += . | |
INCLUDEPATH += . | |
# Input |
This file contains 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 <QtGui> | |
#include "window.h" | |
int main(int argc, char **argv) | |
{ | |
QApplication app(argc, argv); | |
Window w; | |
w.show(); |
This file contains 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
typedef unsigned long long llong; | |
class Base | |
{ | |
public: | |
Base() | |
: base1(0x0101010101010101) | |
, base2(0x0202020202020202) | |
{} | |
llong base1; |
This file contains 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 <string.h> | |
using namespace std; | |
typedef unsigned long long Type; | |
/** | |
* Создадим иерархию классов вида: | |
* | |
* Base |
This file contains 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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <vector> | |
using namespace std; | |
int main() | |
{ | |
istream_iterator<int> in(cin); |
This file contains 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 <algorithm> | |
#include <iostream> | |
#include <iterator> | |
#include <vector> | |
using namespace std; | |
int main() | |
{ | |
istream_iterator<int> in(cin); |
This file contains 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 <cstdio> | |
#include <cmath> | |
/** | |
* Use UTF-8 code page | |
* | |
* За основу для экспериментов был выбран односвязный список без охранника и разделения | |
* структур на собственно список (хранящий указатель на голову/охранник (опционально последний | |
* элемент списка)) и узел списка - в учебных целях, ИМХО, оправдано. | |
* |
This file contains 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
#!/bin/sh | |
PREFIX="__CMS__" | |
if [ -z $1 ] | |
then | |
PRO=`basename $PWD`.pro | |
else | |
PRO=$1 | |
fi |