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
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <stdio.h>
#include <list>
using namespace std;


//i++ es igual a  aux = aux->next()
Today @ 5:51pm
Tags:
6 Views
no comments
 
IMarshaller mar = factory.Create();

using (mar as IDisposable)
{
  mar.DoSomething();
}

The compiler turns that into something like this:
var disposable = mar as IDisposable;
try
Today @ 3:54pm
Tags:
8 Views
no comments
 
IMarshaller mar = factory.Create();

using (mar as IDisposable)
{
  mar.DoSomething();
}

The compiler turns that into something like this:
var disposable = mar as IDisposable;
try
Today @ 3:53pm
Tags:
8 Views
no comments
 
for (int i = len-1 ; i>= 0 ; i--) {
	ans = ans + stringCharAt(s, i) ;
}
Today @ 3:47pm
Tags:
8 Views
no comments
 
    for (int i = len-1 ; i>-1 ; i-- ){
      //boucle partant de len-1 et qui diminue de 1 tant que i 
ans = ans + stringCharAt(s, i) ;
}

Today @ 3:44pm
Tags:
10 Views
no comments
 
ans = stringCharAt (s, len-1);
     for (int i = len-1 ; i>0 ; i-- ){
       //boucle partant de len-1 et qui diminue de 1 tant que i 
 ans = ans + stringCharAt(s, i) ;
 }
Today @ 3:40pm
Tags:
10 Views
no comments
 
ans = stringCharAt (s, len);
     for (int i = len-1 ; i>0 ; i-- ){
       //boucle partant de len-1 et qui diminue de 1 tant que i 
 ans = ans + stringCharAt(s, i) ;
 }
Today @ 3:35pm
Tags:
9 Views
no comments
 
public static String mirror(String s) {
// création fonction mirror
        String ans = "";
        //déclare ans, chaine
        int len = getStringLength(s);
//déclare len , un entier qui désigne la longueur de s la chaine a analyser
       
        for (int i = len-1 ; i>1 ; i-- ){
        //boucle partant de len et qui diminue de 1 tant que i supérieur a 1 , et diminue de 1 a chaque tour de boucle
  ans = ans + stringCharAt(s, i) ;
Today @ 3:17pm
Tags:
11 Views
no comments
 
public static String mirror(String s) {
        String ans = "";
        int len = getStringLength(s);

       
        for (int i = len-1 ; i<1 ; i-- ){
  ans = ans + stringCharAt(s, i) ;
  }
   
       
Today @ 3:10pm
Tags:
9 Views
no comments
 
#include <stdio.h> 


main() 
{
	long int  an, k, i, s, t, bv, bv2, b1, b2, av, tv;
	 long int a1, a2, a;
 // первая часть задания
	printf("Vvedite chislo k ="); 
	scanf("%d", &k);
Today @ 2:17pm
Tags:
10 Views
no comments
 
Процессор
	Intel® Core™ i5 2450M
Операционная система
	Windows 7 Home Basic x64
Чипсет
	Intel® HM65 Express Chipset
Оперативная память
	8 GB DDR3 1333 MHz SDRAM
Дисплей
	17.3" 16:9 HD+ (1600x900) со светодиодной подсветкой
Today @ 12:52pm
Tags:
9 Views
no comments
 
/*
@file
Programlama Dilleri ödev 1
N adet yarışmacının yer aldığı bir simülasyon tasarla

@Öğrenci

Adı: Mustafa Güneş
Numarası: 12011028
Tarih: 01.10.2014
Today @ 12:22pm
Tags:
10 Views
no comments
 
#include <stdio.h> 


main() 
{
	int  an, k, i, s, t, bv, bv2, b1, b2, av;
	 long int a1, a2, a;
 // первая часть задания
	printf("Vvedite chislo k ="); 
	scanf("%d", &k);
Today @ 12:09pm
Tags:
16 Views
no comments
 
Blake Pales
Mrs. Capps
English IV
1 October 2014
Rogers State University or Tulsa Community College
Thesis:
I.	Location
A.	Rogers State University
1.	Size
a.	University
Today @ 11:25am
Tags:
11 Views
no comments
 
package Lab0ex1;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Collections;
Today @ 9:38am
Tags:
10 Views
no comments
 
for(float i=0;i<5;i++)
	{
		texvalue=g_WaterBumpTexture.SampleLevel(SamplerLinearWrap, tc*texcoord_scale+g_WaterBumpTexcoordShift*0.03*variance,water_miplevel).rbga;
		//texvalue=g_WaterBumpTexture.SaampleLevel(SamplerLinearWrap, tc*texcoord_scale+1*0.03*variance,1).rbga;
		variance.x*=-1.0;
		water_normal.xz+=(2*texvalue.xz-float2(1.0,1.0))*normal_disturbance_scale;
		water_normal.w += (texvalue.w-0.5)*height_disturbance_scale;
		texcoord_scale*=1.4;
		height_disturbance_scale*=0.65;
		normal_disturbance_scale*=0.65;
Today @ 7:16am
Tags:
12 Views
no comments
 
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string>
#include <windows.h>
using namespace std;

int main ()
 {
Today @ 7:15am
Tags:
14 Views
no comments
 
/* Много строчный комментарий в С++
работает до закрытия */
#include <iostream>

using namespace std; //Библиотека для сокращенной записи функций
//например вместо std::cout писать сout

int main()//Начало программы
{
    int a=0;
Today @ 7:05am
Tags:
13 Views
no comments
 
{Многострочный Комментарий в Паскале
работает до закрытия}
var 
  a:integer;
  b:integer;
  c:integer;
begin {Начало программы}
  writeln('Вывод текста и переменных на экран с переносом строки ');
  write('Вывод на экран без переноса строки _');
  write('этот текст появится на той же строки что и предыдущий, потому что в прошлом операторе вывода  нет окончания ln');
Today @ 7:04am
Tags:
17 Views
no comments
 
  //If Alt runners
  if (doAlt) {
    tr_runner_no_type *alt_ptr = (tr_runner_no_type*) ( (int)bd_ptr + iOffset);
    for (LegNo=0; LegNo<leg_limit; LegNo++) {
      iOffset += sizeof (tr_runner_no_type);
      ABet.AltRunners[LegNo] = *alt_ptr;
      alt_ptr++;
      }
    }

Today @ 6:28am
Tags:
13 Views
no comments
 
Revtest Reviews  is all characteristic androgenic hormone supporter and it will give for you a support therefore you'll be able to  feel higher and enhance the character of your life. it'll facilitate enhance your disposition and vitality levels. With the enclosed vitality you may have the assistance to sweat tougher therefore you'll be able to develop muscles. one among  the most effective reactions of Revtest is that your gumption can increment and you may have a solid level of sexual craving. {you can|you'll|you may} like however you're feeling and your certainty will move forward. The increment in  stamina and persistence can assist you perform within the space.

http://revtestsite.net
by jamlack   Today @ 5:38am
Tags: Revtest
12 Views
no comments
 
select k1.NTOV, r3.count, str(r3.cena, LEN(r3.cena), 2) as cena from KTOV as k1 inner join
(select r1.KTOV, r1.count-r2.count as count, r1.cena-r2.cena as cena from 
(select s1.KTOV, Coalesce(a.count, 0)as count, Coalesce(a.cena, 0)as cena from KTOV as s1 left join 
(select s.KTOV, count(s.KOL) as count, s.CENA*s.KOL as cena from DMZ as z 
inner join  DMS as s on z.NDM=s.FOR_DMZ where z.PR = 2 group by s.KTOV,s.CENA*s.KOL ) as a
on s1.KTOV = a.KTOV) as r1 
inner join
(select s1.KTOV, Coalesce(a.count, 0)as count, Coalesce(a.cena, 0)as cena  from KTOV as s1 left join 
(select s.KTOV, count(s.KOL) as count, s.CENA*s.KOL as cena from DMZ as z 
inner join  DMS as s on z.NDM=s.FOR_DMZ where z.PR = 1 group by s.KTOV, s.CENA*s.KOL ) as a
Today @ 4:03am
Tags:
11 Views
no comments
 
#include <iostream>
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string>
#include <windows.h>
using namespace std;

int main ()
 {
Today @ 3:27am
Tags:
15 Views
no comments
 
<!DOCTYPE
<html>
<head>
<title>Ubuntu</title>
<meta charset="UTF-8">
<meta name="keywords" content="linux, ubuntu">
<meta name="author" content="">
<link rel="icon" href="ubicon.png" type"ubicon.png">
</head>

by beso9595   Today @ 1:49am
Tags:
13 Views
no comments
 
<!DOCTYPE
<html>
<head>
<title>Ubuntu</title>
<meta charset="UTF-8">
<meta name="keywords" content="linux, ubuntu">
<meta name="author" content="">
<link rel="icon" href="ubicon.png" type"ubicon.png">
</head>

Today @ 1:46am
Tags:
14 Views
1 comments
 
brought to you by:
West Wind Techologies