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 <QtCore/QCoreApplication> | |
#include <math.h> | |
#include <QtDebug> | |
static QList<QList<qint16> >currentList; | |
void findMore(QList<qint16> l) | |
{ | |
for(int i = 0;i < l.size();i++) { | |
int c = l.at(i); | |
if(c > 1) { | |
QList<qint16> n = l; |
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 <QtCore/QCoreApplication> | |
#include <QMap> | |
#include <QMapIterator> | |
#include <QDebug> | |
#define START_POP 70 | |
#define MW_ASYM 0.5 | |
#define MAR_YEAR 25 | |
#define CHILD_COUNT 4 | |
#define MAX_YEARS 130 | |
struct people |
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 <QtCore/QCoreApplication> | |
#include <iostream> | |
#include <QTextStream> | |
#include <QStringList> | |
#include <math.h> | |
#include <QtDebug> | |
using namespace std; | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); |
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 <QtCore/QCoreApplication> | |
#include <QList> | |
#include <QLinkedList> | |
#include <QtDebug> | |
QList<int> l; | |
int alg4( QList<int> list) | |
{ | |
int max = 0; | |
int mright = 0; | |
foreach(int i, list) { |
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 <QtCore/QCoreApplication> | |
#include <QtDebug> | |
#include <QFile> | |
#include <QString> | |
int main(int argc, char *argv[]) | |
{ | |
QCoreApplication a(argc, argv); | |
QFile file("H:\\test.txt"); | |
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) |
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
module Set ( | |
Set, | |
empty, | |
insert, | |
delete, | |
--isEmpty, | |
--isElement, | |
--card, | |
--intersection, | |
--union, |
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
module Stapel ( | |
Stapel, | |
empty, | |
isEmpty, | |
push, | |
top, | |
pop | |
) where | |
data Stapel a = E | S a (Stapel a) deriving(Eq,Show) | |
empty = E |
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
{--polylist a@([q,p]:xs) = pl' a p [] | |
where | |
p' ([q,p]:xs) e l | |
pl' [] _ l = l | |
| p == e = pl' xs (e-1) (l++[q]) | |
| otherwise = pl' ([q,e]:xs) (e-1) (l++[0])--} | |
type Polynom = [(Int,Int)] | |
polyplus :: Polynom -> Polynom -> Polynom | |
--polyplus [] p = p | |
---polypuls p [] = p |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
namespace ConsoleApplication1 | |
{ | |
class Blatt<T> : Blattbaum | |
{ | |
T val { get; set; } |
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
class Baum | |
{ | |
public Baum() | |
{ | |
child0 = null; | |
child1 = null; | |
value = 0; | |
} | |
public Baum child0{set; get;} |
OlderNewer