CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of c
C#
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace VoorbeeldExamenSem2 {
    class LangsteDeelrij {
        private int[] rij;
        private int beginPos = 0, eindPos = 0, huidigBeginPos, huidigEindPos;
        private Random rnd = new Random();
by Stijn   Today @ 6:25am
6 Views
no comments
 
C++
#include <stdio.h>
#include <stdlib.h>
 
int main(int argc, char *argv[])
{
  int familyMembers=0,a;
  struct people {
    int id, age;
    char name[50], sex[8];
  };
Sunday @ 11:46am
8 Views
no comments
 
C++
#include <stdio.h>
#include <stdlib.h>
 
int main(int argc, char *argv[])
{
  char familyMembers=0,a,b;
  struct people {
    int id, age;
    char name[50], sex[8];
  };
Sunday @ 6:45am
Tags: Broken, struct, c,
17 Views
no comments
 
p0c.cc/cc
https://www.facebook.com/pages/%D8%A3%D9%85%D9%86-%D8%A7%D9%84%D9%85%D8%B9%D9%84%D9%88%D9%85%D8%A7%D8%AA-%D9%88%D8%A7%D9%84%D8%A5%D9%86%D8%AA%D8%B1%D9%86%D8%AA/286392261454935
 
 
root 96f175d91627afe77286e91a2b0fde08 ;^1 
Sup3r 716ec908a45fecdaed2c79417accee77 "ti 
Al-AlaME 5fd10fbc90fcd0a728398c1f1ded987a \3' 
dEV!L-nEt ffc1ff1f50551750dadb3b75953d72b4 ^Zx 
Dr.HAiL 683727959e02bf6725f9ac14dc0f9c28 Z(I Deal@Deal.Deal 
W4RM b53878cbdd72062c104a8188355c212a q;e 
by أمن المعلومات والإنترنت   Saturday @ 12:54pm
Tags: p0c.cc
15 Views
no comments
 
C++
/************************************************************************************************
* File name: main.cpp                                                                           *
*************************************************************************************************
* Sub Program List:                                                                             *
*   GetInputDatas().................: Getting datas from text file into memory                  *
*   deAllocateMemory()..............: To delete all the arrays used in the program              *
* ANT COLONY ALGORITHM FUNCTIONS*****************************************************************
*   antColony().....................: The whole ant colony algorithm                            *
*************************************************************************************************
* To run, first download the mknap1.txt from OR-Library                                         *
by WhCrs   Saturday @ 4:45am
49 Views
no comments
 
C++
#include <stdio.h>
#include <cs50.h>
 
int main (void) {
/*******************************************************************************************************
*                                                                                                      *
* This program will ask the user how many days are in the month and how many pennies they would like   *
* to receive on day one.  Based upon this information provided it will figure out how much money a     *
* person would receive each day of the month & how much a person would have in total at the end of the *
* month.                                                                                               *
Thursday @ 5:07pm
31 Views
no comments
 
#include <stdio.h>
#include <cs50.h>
 
int main (void) {
/*******************************************************************************************************
*                                                                                                      *
* This program will ask the user how many days are in the month and how many pennies they would like   *
* to receive on day one.  Based upon this information provided it will figure out how much money a     *
* person would receive each day of the month & how much a person would have in total at the end of the *
* month.                                                                                               *
Thursday @ 5:06pm
15 Views
no comments
 
C#
public static string RenderViewToString(string viewPath, object model,ControllerContext context)
{            
    var viewEngineResult = ViewEngines.Engines.FindView(context, viewPath, null);
    var view = viewEngineResult.View;
    
 
    context.Controller.ViewData.Model = model;
                                                    
    string result = String.Empty;
    using (var sw = new StringWriter())
by Rick Strahl   Thursday @ 10:51am
463 Views
no comments
 
<#
.COMPONENT
    NUPosh
.SYNOPSIS
    Test if an Assembly (.dll) is already loaded. 
.DESCRIPTION
    Test if an Assembly of the same name is already loaded in the current runspace. 
    Using the -PasThru parameter will return the AssemblyInfo object along with the boolean. 
.PARAMETER  Name
    The file name of the Assembly.   
by qawarrior   Thursday @ 7:42am
31 Views
no comments
 
C++
/*********************************************/
/* This program will ask how many students   */
/* are in the class.  Based upon your answer */
/* it will then ask what the ages are for    */
/* each student.  From the answers provided  */
/* it will round to the nearest whole number */
/* the average age for the class.            */
/*********************************************/
#include <stdio.h> // Allows printf() function
#include <math.h> // Allows the roundf function to be used.
by Wayne   May 15, 2012 @ 4:49pm
28 Views
no comments
 
 <Image Margin="367.056,8,8,0" VerticalAlignment="Top" Name="imgLargePreview" Width="640" Height="480" MaxHeight="480" MaxWidth="640" />
 
 
 
 
Private Sub Button1_Click(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles Button1.Click
        saveImage()
    End Sub
    Sub saveImage()
        Dim encoder = New PngBitmapEncoder()
by DaveCS   May 15, 2012 @ 7:52am
14 Views
no comments
 
//******************************//
//Prevent wrong input for mobile
//******************************//
 $("#Mobile").keydown(function (event) 
{
    // Allow: backspace, delete, tab and escape
    if (event.keyCode == 46 || event.keyCode == 8 || event.keyCode == 9 || event.keyCode == 27 ||
    // Allow: Ctrl+A
    (event.keyCode == 65 && event.ctrlKey === true) ||
    // Allow: home, end, left, right
by Egli   May 14, 2012 @ 11:43pm
12 Views
no comments
 
http://altitudegame.com/friend/857014
by http://altitudegame.com/friend/857014   May 14, 2012 @ 7:40pm
10 Views
no comments
 
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
http://altitudegame.com/friend/857014
by http://altitudegame.com/friend/857014   May 14, 2012 @ 7:39pm
10 Views
no comments
 
/*
* add this function on model User
*/
 
public function getNameById($id){
$data = $this->Koordinator->Pasar->findById($id);
return $data['Pasar']['nama_pasar'];
}
 
by laabroo   May 12, 2012 @ 5:52pm
Tags: cakephp
14 Views
no comments
 
C#
return members == null ? 0 : members.Count;
by Warren Wiltshire   May 10, 2012 @ 6:57am
18 Views
no comments
 
//Remeber to use Html.TextBoxFor Html Helper with Html class attribute
 
            // a custom method for validating the Departure and Arrival Dates
            $.validator.addMethod('dateBeginEnd', function () {
                return new Date($('#DepartureDt').val()) < new Date($('#ArrivalDt').val());
            }, 'Depature date must be before Arrival date.');
 
            // a new class rule to group all three methods
            $.validator.addClassRules({
                requiredBeginEndDate: { required: true, date: true, dateBeginEnd: true }
17 Views
no comments
 
var baseUrl;
var applicationUrl;
 
baseUrl = document.location.href;
baseUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
applicationUrl = baseUrl.substring(0, baseUrl.lastIndexOf('/'));
by Warren Wiltshire   May 02, 2012 @ 5:24am
18 Views
no comments
 
//start processing
var api = new moviesApi();
api.getRatings({
    success: function (result) {
        for (var i = 0; i < result.length; i++) {
            //new Option(text, value)
            var option = new Option(result[i].ID, result[i].Name);
            $('#ratings').append(
                $('<option></option>').val(result[i].ID).html(result[i].Name)
            );
23 Views
no comments
 
displayError = function (result) {
    $('#errorDisplay').show();
    $('#errorDisplay').html(result.responseText);
}
by Warren Wiltshire   May 02, 2012 @ 5:20am
33 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate