CodePaste Logo
New Snippet New Recent Snippets Recent Snippets My Snippets My Snippets My Favorites Favorites Web Code Search Snippets Search
Sign inor Register
Format:
Recent Snippets
#include "Alumno.h"


CAlumno::CAlumno(void)
{
	edad = 0;
	codigo = 0;
}
CAlumno::~CAlumno(void){}
int CAlumno::getEdad()
Today @ 6:44pm
Tags:
10 Views
no comments
 
#include "ArregloAlumnos.h"
#include <iostream>

void RegistrarAlumno(CArregloAlumnos *alumnos)
{
	int aux;
	string nombre;
	CAlumno *alumno = new CAlumno();
	cout << "Ingrese el nombre: " << endl;
	cin >> nombre;
Today @ 6:43pm
Tags:
10 Views
no comments
 
private function loop(e:Event):void 
		{
			if (left_pressed) {
				vel += acceleration;
				vel *= friction;
				character.x -= vel;
			}
			if (right_pressed) {
				vel += acceleration;
				vel *= friction;
Today @ 6:19pm
Tags:
13 Views
no comments
 
var product= products.getProduct();
Today @ 2:21pm
Tags:
15 Views
no comments
 
raw 006:*: {
  var %kods $pos($2-,$chr(44),0)
  if ($len($iif($right($gettok($right($gettok($2-,2,44),-1),2,3),-1) !== $null,$v1)) == 0) { halt }
  var %kod1 $len($iif($right($gettok($right($gettok($2-,2,44),-1),2,3),-1) !== $null,$v1)),43) 
  var %kod2 $len($iif($right($gettok($right($gettok($2-,3,44),-1),2,3),-1) !== $null,$v1)),43) 
  var %kod3 $len($iif($right($gettok($right($gettok($2-,4,44),-1),2,3),-1) !== $null,$v1)),43)
  inc %kod
  if (%kod == 1) { set %kod1-1 %kod1 |  set %kod2-1 %kod2 | set %kod3-1 %kod3 | set %ilk $iif(%kod1 == 6,on) | set %ilk1 $iif(%kod2 == 6,on) | set %ilk2 $iif(%kod3 == 6,on) | set %ikinci $iif(%kod1 == 3,on) | set %ikinci1 $iif(%kod2 == 3,on) | set %ikinci2 $iif(%kod3 == 3,on) }
  if (%kod == 2) { set %kod1-2 %kod1 | set %kod2-2 %kod2 | set %kod3-2 %kod3 }
  if (%kod == 3) { set %kod1-3 %kod1 | set %kod2-3 %kod2 | set %kod3-3 %kod3 }
Today @ 1:22pm
Tags:
19 Views
no comments
 
#include <iostream>
#include <string>

using namespace std;

struct Jazol
{ string ime;
  int broj;
  Jazol *next;
  Jazol *prev;
Today @ 12:46pm
Tags:
18 Views
no comments
 
#include <iostream>

using namespace std;

struct Jazol
{ int koef;
  int ex;
  Jazol *next;
  Jazol *prev;
};
Today @ 11:52am
Tags:
15 Views
no comments
 
package com.serdar.servlet;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Enumeration;

import javax.servlet.ServletException;
import javax.servlet.ServletRegistration;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
Today @ 11:28am
Tags:
15 Views
no comments
 
$cardSQL = DB::getRow("SELECT cv_id,pack_id,cv_name,cv_city,cv_town,cv_adress,cv_phone,cv_mail,cv_web_site,cv_finish_time FROM cardvisit WHERE cv_nick_name='".$_GET['cdname']."' and validity=1");
	$cv_id = $cardSQL->cv_id;
	$picSQL = DB::get("SELECT * FROM cardvisit_pictures WHERE cv_id=".$cv_id);
Today @ 11:06am
Tags:
15 Views
no comments
 
<?php
	
	$cardSQL = DB::getRow("SELECT pack_id,cv_name,cv_city,cv_town,cv_adress,cv_phone,cv_mail,cv_web_site,cv_finish_time FROM cardvisit WHERE cv_nick_name='".$_GET['cdname']."' and validity=1");

	$picSQL = DB::get("SELECT * FROM cardvisit_pictures WHERE cv_id=1".$cardSQL->cv_id);
	
	$mainpic = "";

	$subpic = array();

Today @ 11:00am
Tags:
15 Views
no comments
 
#include <iostream>

using namespace std;

struct Jazol
{ int koef;
  int ex;
  Jazol *next;
  Jazol *prev;
};
Today @ 10:55am
Tags:
19 Views
no comments
 
/*
 * Copyright (C) 2011 True Blood <http://www.trueblood-servers.com/>
 * By Asardial
 *
 * Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
Today @ 10:53am
Tags:
16 Views
no comments
 
<?php
require_once '../settings.php';
$cardSQL = DB::getRow('SELECT cv_id,pack_id,cv_name,cv_city,cv_town,cv_adress,cv_phone,cv_mail,cv_web_site,cv_finish_time FROM cardvisit WHERE cv_nick_name ="'.$_GET['cdname'].'" AND validity = 1');

$picSQL = DB::get('SELECT * FROM cardvisit_pictures WHERE cv_id ='.$cardSQL->cv_id);

$mainpic = "";

$subpic = array();

Today @ 10:34am
Tags:
17 Views
no comments
 
<div class="pic-div">
       <a href="<?=$mainpic;?>" data-jbox-image="<?=$_GET['cdname'];?>" title="<?=$cardSQL->cv_name;?>" nu="0"><img id="main-pic" src="<?=$mainpic;?>" nu="0" /></a>
   </div><br />
   <div class="pic-min-div">
       <? for($i=0;i<count($subpic);i++) {
           ?>
           <a class="min-pic-a" href="<?=$subpic[$i];?>" data-jbox-image="<?=$_GET['cdname'];?>" title="<?=$cardSQL->cv_name;?>" nu="<?=$i+1;?>"  <img class="min-pic-img" src="<?=$subpic[$i];?>" nu="<?=$i+1;?>" /> </a>
       <?
       } ?>

Today @ 10:31am
Tags:
15 Views
no comments
 
<html>
<input type="text" id="txt" value="AAA">
    <input id="chk3" type="checkbox" onclick="if (this.checked) document.getElementById('txt').disabled = true; else document.getElementById('txt').disabled = false">


    <input id="chk1" type="checkbox" onclick="document.getElementById('chk2').checked = this.checked;">
 <input id="chk2" type="checkbox">
    @Html.CheckBox("some", new { @onclick="if (this.checked) document.getElementById('p_Price').disabled = true; else document.getElementById('p_Price').disabled = false"})
    </html>
Today @ 9:16am
Tags:
18 Views
no comments
 
<input type="text" id="txt" value="AAA">
    <input id="chk3" type="checkbox" onclick="if (this.checked) document.getElementById('txt').disabled = true; else document.getElementById('txt').disabled = false">


    <input id="chk1" type="checkbox" onclick="document.getElementById('chk2').checked = this.checked;">
 <input id="chk2" type="checkbox">
    @Html.CheckBox("some", new { @onclick="if (this.checked) document.getElementById('p_Price').disabled = true; else document.getElementById('p_Price').disabled = false"})
Today @ 9:14am
Tags:
16 Views
no comments
 
INSERT INTO `pk_ilce` VALUES ('1', '1', 'ALADAĞ(KARSANTI)');
INSERT INTO `pk_ilce` VALUES ('2', '1', 'CEYHAN');
INSERT INTO `pk_ilce` VALUES ('3', '1', 'ÇUKUROVA');
INSERT INTO `pk_ilce` VALUES ('4', '1', 'FEKE');
INSERT INTO `pk_ilce` VALUES ('5', '1', 'İMAMOĞLU');
INSERT INTO `pk_ilce` VALUES ('6', '1', 'KARAİSALI');
INSERT INTO `pk_ilce` VALUES ('7', '1', 'KARATAŞ');
INSERT INTO `pk_ilce` VALUES ('8', '1', 'KOZAN');
INSERT INTO `pk_ilce` VALUES ('9', '1', 'POZANTI');
INSERT INTO `pk_ilce` VALUES ('10', '1', 'SAİMBEYLİ');
Today @ 9:00am
Tags:
16 Views
no comments
 
Public Sub BuildMessageCache()
            'all objects/languages/markets
            Dim mumq As Application.Query.NxMsg = Application.Query.NxMsg.Current
            Dim selmq As OQL.ISelect = OQL.QueryBuilder.SelectFrom(mumq)
            selmq.Values(mumq.MsgType, mumq.MsgUseId, mumq.LanguageIndex)
            Dim cur As ICursor = _querySession.OpenCursor(selmq)

            While cur.Read
                Dim docType As NxDocumentType = CType(System.Enum.Parse(GetType(NxDocumentType), cur.GetString(0)), NxDocumentType)
                BuildMessageCache(docType, cur.GetString(1), cur.GetInteger(2), True)
Today @ 7:46am
Tags:
16 Views
no comments
 
_editTask: function (task, callback) {
					var self = this;
					self.showEditDialog(
						config.strings.editTask,
						task.toJSON(),
						function (typeId, prevCounterValue) {
							return (templateService.executeMethod(
								"GetDefaultTemplate", { typeId: typeId, prevValue: prevCounterValue },
								"get"
							));
Today @ 6:57am
Tags:
17 Views
no comments
 
I was very weak and unhealthy but, after 4 weeks of using this solution, my body transformed into a chiseled and muscular one. I really enjoyed using this amazing formula which changed everything. Thanks to the product, I now have a masculine physique and energetic body. Moreover, I would like to suggest it to all.

http://turboextracutsite.net/nitro-shred-review/
by gilddoy   Today @ 4:26am
17 Views
no comments
 
        <table>
            <tr>
                <td rowspan="2">@Html.EditorFor(x => Model.ListOfChecks[i].Value)</td>
                <td>
                    <input type="button" value=" /\ " onclick="if (this.form.ListOfChecks_@(i)__Value.value >= 32767) this.form.ListOfChecks_@(i)__Value.value = 32767; else this.form.ListOfChecks_@(i)__Value.value++;" style="font-size:7px;margin:0;padding:0;width:20px;height:13px;" >

                </td>
            </tr>
            <tr>
                <td>
Today @ 3:56am
Tags:
16 Views
no comments
 
KITA BERTANYA : KENAPA AKU DIUJI?
QURAN MENJAWAB "Apakah manusia itu mengira bahawa mereka dibiarkan saja mengatakan; "Kami telah beriman," sedangkan mereka tidak diuji? Dan sesungguhnya Kami telah menguji orang-orang yang sebelum mereka,maka sesungguhnya Allah mengetahui orang-orang yang benar dan, sesungguhnya Dia mengetahui orang-orang yang dusta."-Surah Al Ankabut ayat 2-3

KITA BERTANYA : KENAPA AKU TAK DAPAT APA YANG AKU NAK?
QURAN MENJAWAB "Boleh jadi kamu membenci sesuatu padahal ia amat baik bagimu, dan boleh jadi pula kamu menyukai sesuatu, padahal ia amat buruk bagimu, Allah mengetahui sedang kamu tidak mengetahui."- Surah Al-Baqarah ayat 216

KITA BERTANYA : KENAPA UJIAN SEBERAT INI? 
QURAN MENJAWAB "Allah tidak membebani seseorang itu melainkan sesuai dengan kesanggupannya."- Surah Al-Baqarah ayat 286

KITA BERTANYA : KENAPA RASA KECEWA?
by Ax   Yesterday @ 8:46pm
Tags:
16 Views
no comments
 
unit scenemainmenu;

{$mode objfpc}{$H+}

interface

uses
    Classes, SysUtils, Scene, renderer;

type
Yesterday @ 6:41pm
Tags:
19 Views
no comments
 
DEVICE=$(adb shell getprop ro.product.device)

if [ "$DEVICE" == "deb" ]; then
        echo "We have $DEVICE"
else
        echo "No deb...but $DEVICE"
fi
Yesterday @ 5:09pm
Tags:
20 Views
no comments
 
#include <iostream>

using namespace std;

class Niza
{ private:
    int *niza;
    int dolzina;
public:

Yesterday @ 1:32pm
Tags:
19 Views
no comments
 
brought to you by:
West Wind Techologies