Format:
Recent snippets matching tags of 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();
6 Views
no comments
#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]; };
8 Views
no comments
#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]; };
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
15 Views
no comments
/************************************************************************************************
* 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 *
49 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. *
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. *
15 Views
no comments
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())
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.
31 Views
no comments
/*********************************************/ /* 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.
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()
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
12 Views
no comments
http://altitudegame.com/friend/857014
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
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'];
}
14 Views
no comments
return members == null ? 0 : members.Count;
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('/'));
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); }
33 Views
no comments
Subscribe
Discuss
What's new
What is it
New Snippet
Recent Snippets
My Snippets
Web Code
Search
