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
package com.cmdapp; | |
/** | |
* Created with IntelliJ IDEA. | |
* User: Andrew | |
* Date: 10/1/13 | |
* Time: 5:02 PM | |
* To change this template use File | Settings | File Templates. | |
*/ | |
public enum Commands { |
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
`timescale 1ns / 1ps | |
module knightrider( | |
input rst, | |
input clk, | |
input ce, | |
output [7:0] out | |
); | |
parameter START = 8'b00001110; |
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
// 1/1. Adja meg egy 1 bites 4:1 multiplexer Verilog kódját deklarációval (portok d0,d1,d2,d3,adatbemenetek, s-kiválasztó bemenet, r kimenet) | |
module mux( | |
input [3:0] d, | |
input s, | |
output r | |
); | |
always @ (*) begin | |
case (d) | |
2'b00: r<= d[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
<?php | |
for($i = 1; $i <= 8; $i++) { | |
echo "var lat${i} = ${lat[$i]}; var long${i} = ${long[$i]};" | |
} | |
?> |
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
/* | |
Tételezze fel, hogy rendelkezésére áll egy verem-tulajdonságokkal rendelkező generikus tároló (Stack)! A tároló a szokásos veremműveletekkel rendelkezik (push, pop, top, empty), és csak default konstruktora van. | |
Ezen osztály felhasználásával készítsen egy véges méretű generikus vermet (MyStack)! | |
A maximális méretet a konstruktorban lehessen megadni, amelynek alapértelmezett értéke legyen 100! | |
A MyStack osztály a Stack osztállyal teljesen azonos módon viselkedjen, kivéve akkor, amikor eléri a maximális méretét. | |
Ekkor dobjon std::out_of_range hibát! | |
*/ | |
template <class T> | |
class MyStack : public Stack<T> |
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
/* | |
* To change this template, choose Tools | Templates | |
* and open the template in the editor. | |
*/ | |
package futar; | |
import java.io.BufferedReader; | |
import java.io.FileNotFoundException; | |
import java.io.FileReader; | |
import java.io.IOException; |
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 "vektor.h" | |
unsigned int Vektor::defSize = 13; | |
double Vektor::defValue = -435; | |
Vektor::Vektor(const Vektor& v) { | |
nElements = v.nElements; | |
pVec = new double[nElements]; |
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> | |
class Teglalap | |
{ | |
double a,b; | |
public: | |
Teglalap(double a=0, double b=0) : a(a), b(b) {} | |
const double getA() const {return a;} | |
const double getB() const {return b;} | |
const double terulet() const {return a*b;} |
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 "resistor.h" | |
double Resistor::defR = 1290; | |
Resistor::Resistor() : R(defR) {} | |
Resistor::Resistor(double r) : R(r) {} | |
void Resistor::setDef(double r) { | |
Resistor::defR = r; |
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 "nem_oo.h" | |
void strcpy(char *dest, const char *source) | |
{ | |
while((*dest++=*source++)!='\0'); | |
} | |
unsigned int strlen(const char *str) | |
{ |