advertising
related pastes to tag 'c'
- 2105835 - Odwoania cykliczne - matlab4: c lista cykliczna krzysztof filipek
-
- #include <iostream>
- #include <cstdlib>
- #include <conio.h>
- using namespace std;
- double tablica[4][4] = {{0, 500, 500, 0},
- {300, 0, 0, 150},
- {300, 0, 0, 150},
- 2102545 - Janisa: c avr
-
- I can't hear anything over the sound of how asewome this article is.
- 2101595 - Carli: c avr
-
- This information is off the hoiozl!
- 2079837 - Original J source code, commente: c j
-
- typedef char C;typedef long I;
- typedef struct a{I t,r,d[3],p[2];}*A; // array: boxed? rank dims contents
- #define P printf // monadic op
- #define R return // dyadic op
- #define V1(f) A f(w)A w;
- #define V2(f) A f(a,w)A a,w;
- #define DO(n,x) {I i=0,_n=(n);for(;i<_n;++i){x;}}
- I *ma(n){R(I*)malloc(n*4);}mv(d,s,n)I *d,*s;{DO(n,d[i]=s[i]);} // alloc, move
- 2076143 - using directive in C++: c using namespace
-
- // This example shows how the “using” directive works in C++.
- //
- // Even if this example use a function, it is the same principle for any
- // identifiers (variable, namespace, class, type, …).
- //
- // Author:
- // Julien Fontanet <julien.fontanet@isonoe.net>
- 2075638 - Linker-Cflags: c cflags linker
-
- On Mon, 20 Feb 2006, Matthew "Zashi" Hiles wrote:
- > /tmp/fakeroot/curl-7.15.1/lib/transfer.c:2226: undefined reference to > `__imp__curl_easy_strerror'
- Allow me to quote the FAQ (http://curl.haxx.se/docs/faq.html#5.7)
- When building an application that uses the static libcurl library, you must add -DCURL_STATICLIB to your CFLAGS. Otherwise the linker will look for dynamic import symbols. If you get linker error like "unknown symbol __imp__curl_easy_init ..." you have linked against the wrong (static) library. If you want to use the libcurl.dll and import lib, you don't need any extra CFLAGS, but use one of the import libraries below.
- In the process of learning tinyos i have discovered that I am totally clueless about makefiles.
- there are many optional compile time features that can be used by way of declaring preprocessor variables
- to use them you have to do things like
- 2070201 - C++ code: c reddit
-
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- // Generates a random number
- int nGenerate()
- {
- int number;
- 2069863 - C++ code: c reddit
-
- #include <iostream>
- #include <cstdlib>
- using namespace std;
- // Generates a random number
- int nGenerate()
- {
- int number;
- 2053599 - Stereocaulon: c beginner helloworld
-
- #include<stdio.h>
- int main()
- {
- return 0;
- }
- 2000245 - enol / capitalize: c capitalize
-
- #include <ctype.h>
- #include <stdio.h>
- char *caps (char *s);
- int
- main (int argc, char **argv)
- {
- 1931235 - helloworld.c: c world hello program
-
- #include<stdio.h>
- int main() {
- return 0;
- }
- 1924952 - awilcox: python c log fail compile
-
- /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../config -I/usr/include/python2.6 -I -I/usr/include -fopenmp -I/usr/include/ImageMagick -g -O2 -DBOOST_PYTHON_DYNAMIC_LIB -MT libpymagick_la-_DrawableViewbox.lo -MD -MP -MF .deps/libpymagick_la-_DrawableViewbox.Tpo -c -o libpymagick_la-_DrawableViewbox.lo `test -f '_DrawableViewbox.cpp' || echo './'`_DrawableViewbox.cpp
- libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../config -I/usr/include/python2.6 -I -I/usr/include -fopenmp -I/usr/include/ImageMagick -g -O2 -DBOOST_PYTHON_DYNAMIC_LIB -MT libpymagick_la-_DrawableViewbox.lo -MD -MP -MF .deps/libpymagick_la-_DrawableViewbox.Tpo -c _DrawableViewbox.cpp -fPIC -DPIC -o .libs/libpymagick_la-_DrawableViewbox.o
- _DrawableViewbox.cpp: In function 'void Export_pyste_src_DrawableViewbox()':
- _DrawableViewbox.cpp:34:95: error: no matches converting function 'x1' to type 'void (class Magick::DrawableViewbox::*)(long int)'
- /usr/include/ImageMagick/Magick++/Drawable.h:2074:8: error: candidates are: void Magick::DrawableViewbox::x1(ssize_t)
- /usr/include/ImageMagick/Magick++/Drawable.h:2078:11: error: ssize_t Magick::DrawableViewbox::x1() const
- _DrawableViewbox.cpp:35:96: error: no matches converting function 'x1' to type 'long int (class Magick::DrawableViewbox::*)()const'
- /usr/include/ImageMagick/Magick++/Drawable.h:2074:8: error: candidates are: void Magick::DrawableViewbox::x1(ssize_t)
- 1921485 - Size and alignment test: c memory alignment
-
- // Compiled with MSVC 10 using "cl /W4 alignment.cpp"
- // this program gives on a x86-64:
- //
- // char (size 1) aligned as 1
- // short (size 2) aligned as 2
- // int (size 4) aligned as 4
- // long long int (size 8) aligned as 8
- // float (size 4) aligned as 4
- 1918608 - Random Coin Generator V1.0a by K: swiftirc c program ken captain-obvious
-
- using System;
- /* Name: Random Coin Generator V1.0a
- * Description: This program creates a random number of coins, then adds the total. Wrote this program from scratch, no help from anyone.
- * Inspired by a machine I saw in real life (long story)
- * Author: Ken (captain-obvious)
- * Warning: If you steal this *simple* program, you're just lame and your lack of programming ability is made obvious.
- */
- namespace Random_Coin_Generator_CLI
- 1901762 - filled circle: c circle geometry
-
- static inline void drawFilledcircle(u16 *screenPtr, int cx, int cy, int radius, u8 r, u8 g, u8 b)
- {
- int x;
- int y;
- int rr=radius*radius;
- y=-radius;
- do
- {
- 1827416 - Manish Sinha: c http .net api launchpad httpwebreader
-
- using System;
- using System.Net;
- using System.Collections.Generic;
- using System.Collections.Specialized;
- using System.IO;
- using System.Security.Cryptography.X509Certificates;
- using System.Text;
- 1745029 - David A. Chapman: c math length trigonometry arc
-
- /*
- PROGRAMMER: David A. Chapman
- FILE: arcLength.cpp
- PURPOSE: Calculate the arc length of a circle based the angle and radius.
- FORMULA: arc length equals two times pi by the radius multiplied by the
- central angle (in degrees) over three hundred and sixty.
- */
- 1717114 - AVR register bit operator: c avr
-
- /*
- SYNOPSIS:
- SETR(register_name, bit, bit, ...)
- DESCRIPTION:
- register_name
- Any readable/writable AVR register
- bit
- 1715135 - strchr() text file lines in C: c text strchr lines
-
- /* null-terminate file lines in a single dynamically allocated memory
- * buffer via pointer arithmetic and standard C library calls..
- *
- * compiles with gcc -Wall -ansi -pedantic strchrlines.c
- *
- * Updated: $Date: 2009/12/14 19:53:30 $ $Author: duper $
- */
- 1525059 - tic tac toe v3 by Pratik Anand: c game tic tac toe india
-
- /*******************************************************/
- // TIC TAC TOE with computer AI //
- // Coded by PRATIK ANAND //
- // Modified by Haritosh Joshi //
- // Beta testing by Prateek Jain //
- // //
- /******************************************************/
- 1511733 - [phear]crippler: c
-
- /*
- AUTHOR: David Chapman ([phear]crippler)
- FILE: complexQuadRootZeros.cxx
- WEBSITE: www.phear-gaming.net
- PURPOSE: This program will compute all the roots/zeros of a quadratic equation (including imaginary ones).
- */
- #include <iostream>
- #include <cmath>
- 1415528 - [phear]crippler: c conversions distance
-
- /*
- #AUTHOR: David C.
- #SITE: www.phear-gaming.net
- #EMAIL: crippler@phear-gaming.net
- #IRC: irc://irc.gamesurge.net:6667/phear
- #PURPOSE: Distance conversions.
- */
- #include <iostream>
- 1413131 - Equilateral Triangle / Gleichsch: c java triangle pyramid while .net tannenbaum pyramide dreieck gleichschenklig verschachtelt cascaded aufgabe tannenbaum.java lsung
-
- /*
- * Title: Equilateral Triangle / Gleichschenkliges Dreieck
- * IDE: Microsoft C# .Net 2008
- * Info: Mit drei einfachen iterationen
- * Und in zwei Ebenen verschachtelt
- * With three simple iterations
- * in two layers
- * Tags: Tannenbaum, Pyramide, Pyramid, Dreieck, Triangle, Gleichschenklig, while, verschachtelt, cascaded, aufgabe, TannenBaum.java, lösung, C#, Java, .net,
- 1392215 - Parallel Port RGB LED PWM Contro: c parallel io led
-
- /* Sean Bradly - 2009 */
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h> /* for nanosleep */
- #include <curses.h> /* for nonblocking getch */
- #include <sys/io.h> /* for ioperm and outb */
- /* Check with /proc/ioports to make sure this io-mapping is correct */
- 1352523 - [phear]crippler: c
-
- /*
- AUTHOR: David Chapman
- FILE: assignment5.cpp
- PURPOSE: Take input from a file of numbers of type double and output
- the average of the numbers in the file to the screen.
- */
- #include <iostream>
- #include <fstream>
- 1351769 - [phear]crippler: c
-
- /*
- AUTHOR: [phear]crippler
- FILE: circumference.cpp
- PURPOSE: computes circumference of a circle when diameter is known.
- */
- #include <iostream>
- using namespace std;
- 1351758 - [phear]crippler: c
-
- /*
- AUTHOR: [phear]crippler
- FILE: area.cpp
- PURPOSE: computes the area of a triangle when the base and height are known.
- */
- #include <iostream>
- using namespace std;
- double area_t(double b, double h);
- 1344989 - Popescu Ionut: c liste simplu inlantuite alocare dinamica
-
- // Liste simplu inlantuite - Alocare dinamica
- // Autor: Popescu Ionut
- // http://www.rstcenter.com
- #include<iostream.h>
- // Structura in care memoram nodurile
- 1339610 - crippler: c loop multiplacation
-
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- { double a;
- double b;
- double c;
- char again;
- 1309812 - Techno Music Generator: c awesome music lulz techno epic
-
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace TechnoGen
- {
- class Program
- {
- 1282584 - sfcp-0.4.4.c: linux c file fast copy
-
- /*
- * Description: a simple utility for fast file copying within one physical HDD
- * Copyright (c) 2005-2008 Artem S. Tashkinov
- * License: GPL2
- *
- * Features:
- * 1) Uses LARGE file buffer (10Mb) for transfers
- * 2) Checks output file consistency (bit-by-bit comparison with the original file)
- 1254166 - PROJECT SCHOOL FEE ENQUIRY: project c source
-
- //*********************************************************
- // PROJECT SCHOOL FEE ENQUIRY
- //**********************************************************
- //**********************************************************
- // INCLUDED HEADER FILES
- //**********************************************************
- 1240788 - Samir: c program linguage
-
- #include <stdio.h>
- int main () {
- float salario, imposto;
- scanf("%f", &salario);
- /*Cálculo do valor do imposto*/
- if (salario <= 911.70) {
- 1235066 - Game of Life in C: c life game of
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <time.h>
- #define LIVE_MIN 3
- #define LIVE_MAX 3
- 1228357 - Wildcard String Matching / By Ai: c card useful string snippet cpp code wildcard wild match matching utility
-
- //Wildcard String matching, wrote by Aikar@windower.net
- bool strmatchwc(const char* pattern, const char* string, bool Escape = false)
- {
- static int i = 0;
- if(!pattern || !string) return false;
- if(!*pattern || !*string)
- {
- if(!*pattern && !*string)
- 1093689 - simosoft: c
-
- <?
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- //ici les parametres pour la connexion
- require_once('configs/config.php');
- // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
- $action = @$_GET["action"];
- 1051696 - PSP Flasher: c psp portable homebrew playtation non-pandora
-
- //Written and developed only by Neo_The_User at the moment
- //DO NOT TEST NOR USE ANY OF THIS CODE
- //ALL UNTESTED! USE AT YOUR OWN RISK!
- //psp-config command not found when compiling under GCC.
- //Do not modify the #include order or names or the PSP will not read it.
- //Unknown reason why but it just works and thats all the matters at this time as far as #includes go
- //flash0 is what the PSP calls the Flashrom (NAND)
- //Makefile does not contain a specific directory.
- 991648 - Encryption / Decryption: c source encryption ice_dragon
-
- // Basic Encryption / Decryption
- // By Ice_Dragon
- #include<iostream.h>
- int main()
- {
- int e;
- 985114 - Collision Loop: c flatredball xna
-
- #region Collisions
- foreach (Entity ent in alEntities)
- {
- foreach (Entity ent2 in alEntities)
- {
- if (!ent.Equals(ent2))
- {
- if (ent.Collision.CollideAgainst(ent2.Collision))
- 963956 - aush0k + a0: c mysql ddos hax aush0k a0 oven
-
- aush0k + a0
- andrew says:
- rifk
- andrew says:
- come on
- andrew says:
- 959597 - Alain de Callafon c program cpp abc math.h math ax2bxc
- preview unavailable
- 953943 - Original J source code, commente: c j
-
- typedef char C;typedef long I;
- typedef struct a{I t,r,d[3],p[2];}*A; // array: boxed? rank dims contents
- #define P printf // monadic op
- #define R return // dyadic op
- #define V1(f) A f(w)A w;
- #define V2(f) A f(a,w)A a,w;
- #define DO(n,x) {I i=0,_n=(n);for(;i<_n;++i){x;}}
- I *ma(n){R(I*)malloc(n*4);}mv(d,s,n)I *d,*s;{DO(n,d[i]=s[i]);} // alloc, move
- 951241 - SHA-256 hash function: c hash function bits sha-256 256bits 256
-
- /*
- * An implementation of the SHA-256 hash function, this is endian neutral
- * so should work just about anywhere.
- *
- * This code works much like the MD5 code provided by RSA. You sha_init()
- * a "sha_state" then sha_process() the bytes you want and sha_done() to get
- * the output.
- *
- 948076 - SHA-256 hash function: c hash function bits sha-256 256bits 256
-
- /*
- * An implementation of the SHA-256 hash function, this is endian neutral
- * so should work just about anywhere.
- *
- * This code works much like the MD5 code provided by RSA. You sha_init()
- * a "sha_state" then sha_process() the bytes you want and sha_done() to get
- * the output.
- *
- 948071 - Blowfish Encryption C++: c encryption encrypt decrypt blowfish
-
- #include "blowfish.h"
- /* #define S(x,i) (bf_S[i][x.w.byte##i]) */
- #define S0(x) (bf_S[0][x.w.byte0])
- #define S1(x) (bf_S[1][x.w.byte1])
- #define S2(x) (bf_S[2][x.w.byte2])
- #define S3(x) (bf_S[3][x.w.byte3])
- #define bf_F(x) (((S0(x) + S1(x)) ^ S2(x)) + S3(x))
- 940509 - murd0ck: c class
-
- // the_first.cpp : Defines the entry point for the console application.
- //
- #include "stdafx.h"
- #include <cstdlib>
- #include <string>
- #include <ctime>
- #include <iostream>
- 939087 - mithro: c static_cast
-
- #include <iostream>
- #include <vector>
- class A {};
- class B : public A {};
- class C : public A {};
- 921843 - Hero - The Game: project c cpp code
-
- #include<stdio.h>
- #include<conio.h>
- #include<process.h>
- #include<stdlib.h>
- #include<dos.h>
- static int min=1;
- static int sec=59;
- 891750 - Original J source code, commente: c j
-
- typedef char C;typedef long I;
- typedef struct a{I t,r,d[3],p[2];}*A; // array: boxed? rank dims contents
- #define P printf
- #define R return
- #define V1(f) A f(w)A w; // monadic op
- #define V2(f) A f(a,w)A a,w; // dyadic op
- #define DO(n,x) {I i=0,_n=(n);for(;i<_n;++i){x;}}
- I *ma(n){R(I*)malloc(n*4);}mv(d,s,n)I *d,*s;{DO(n,d[i]=s[i]);} // alloc, move
- 891738 - Original J source code, commente: c j
-
- typedef char C;typedef long I;
- typedef struct a{I t,r,d[3],p[2];}*A; // array: boxed? rank dims contents
- #define P printf // monadic op
- #define R return // dyadic op
- #define V1(f) A f(w)A w;
- #define V2(f) A f(a,w)A a,w;
- #define DO(n,x) {I i=0,_n=(n);for(;i<_n;++i){x;}}
- I *ma(n){R(I*)malloc(n*4);}mv(d,s,n)I *d,*s;{DO(n,d[i]=s[i]);} // alloc, move
- 890081 - PROJECT SCHOOL FEE ENQUIRY: project c source
-
- //*********************************************************
- // PROJECT SCHOOL FEE ENQUIRY
- //**********************************************************
- //**********************************************************
- // INCLUDED HEADER FILES
- //**********************************************************
- 869638 - RayNbow: c syntax tree abstract expression
-
- #ifndef EXPRESSION_H
- #define EXPRESSION_H
- typedef struct expression Expression;
- #include <assert.h>
- #include "bool.h"
- 850597 - hdparm serial extractor: c serial hdparm
-
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <stdexcept>
- std::string getstrline( std::ifstream& file )
- {
- char buffer[512];
- 845413 - prog2: c
-
- /*
- Napisz program, kt�ry b�dzie zapisywa� do pliku rekordy o nastepujacej strukturze (ksiazka): isbn, tytul, autor, rok_wydania, ilosc_stron, wydawnictwo, rodzaj_okladki. Po kazdym zapisie program ma wyswietlal aktualna zawartosc pliku.
- Program umozliwia aktualizacje wybranego rekordu
- */
- #include <iostream>
- #include <fstream>
- #include <conio.h>
- 840832 - IRC XML Parser and Announcer: xml c parser based
-
- #!/bin/bash
- #########################################
- # feed1="http://animesuki.com/rss.php" # RSS feed #1
- # feed2="http://rss.a.scarywater.net/" # RSS feed #2
- # dir="~/feeds" # Where should I put the feeds?
- # parser="~/bin/parse" # (see below)
- #########################################
- 840763 - IRC XML Parser and Announcer: xml c parser based
-
- #!/bin/bash
- FEED1="http://animesuki.com/rss.php"
- FEED2="http://rss.a.scarywater.net/"
- NEW1="/home/infinity/feeds/new"
- new1="/home/infinity/feeds/new-p"
- old1="/home/infinity/feeds/old-p"
- 840533 - A* Pathfinder: c a algorithm path finding pathfinding dfs algo
-
- /** Include Headers
- */
- #include <vector>
- #include <iostream>
- /** Node Class
- * Just stores X,Y positions and if we're
- * walkable.
- 840532 - A* Pathfinder: c a algorithm path finding pathfinding dfs algo
-
- /** Include Headers
- */
- #include <vector>
- #include <iostream>
- /** Node Class
- * Just stores X,Y positions and if we're
- * walkable.
- 840256 - Brute Force Prototype: c
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- char *buffer;
- const int range = 'a'+26;
- int length = 0;
- 840255 - Brute Force Prototype: c
-
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- void printback();
- char *buffer;
- 839900 - XML in C#: xml c
-
- public void xml_write(string iName, string iSerial)
- {
- //Define everything
- XmlElement xmlelem;
- XmlElement xmlelem2;
- XmlElement xmlelem3;
- XmlText xmltext;
- string myPath = Application.StartupPath.ToString();
- 824297 - diesl0w: xml c .net boolean tolower
- 824292 - diesl0w: xml c .net boolean tolower
- 817137 - C++: c
-
- #include <iostream>
- using namespace std;
- int main()
- {
- int age;
- 815590 - c: c
-
- #include <stdio.h>
- #define IN 1 /*en una palabra*/
- #define OUT 0 /*fuera de una palabra*/
- /*cuenta lineas,palabras ycaracteres de la entrada*/
- main()
- 800918 - Dijkstran algoritmia mytilev sov: c code dijkstra route finfing
-
- // Copyright Petri Kuukkanen joulukuu 2006
- #include <iostream>
- #include <vector>
- #include <cmath>
- struct Crossing
- {
- 775810 - me.c: c lab me helio
-
- # include <stdio.h>
- # include <stdlib.h>
- # include "lablib.h"
- # include "pilhalib.h"
- void imprime_tabuleiro (struct tabuleiro *t)
- {
- int i, j;
- 775757 - me.c: c lab me helio
-
- /* PRINCIPAL */
- # include <stdio.h>
- # include <stdlib.h>
- # include "lablib.h"
- # include "pilhalib.h"
- int main()
- 773404 - Lauro: c maemo dns
-
- #include <sys/types.h>
- #include <sys/socket.h>
- #include <netdb.h>
- #include <stdio.h>
- #include <string.h>
- int main(int argc, char *argv[])
- {
- 767779 - Gerador TXT: c linguagem
-
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- FILE *fp; /*p será então um ponteiro para um arquivo. É usando este tipo de ponteiro que
- vamos poder manipular arquivos no C.*/
- char string[100];
- 766424 - C++ c
- preview unavailable
- 753890 - Serie 3: c fhdw pg
-
- #include <stdio.h>
- #include <math.h>
- void aufg1(void)
- {
- float a;
- float b;
- float c;
- 717180 - tail.cpp: c tail
-
- #include <fstream>
- #include <vector>
- #include <string>
- #define BUF_SIZE 512
- /* Save the last 'n_lines' lines of 'filename' into vector 'dest'.
- * ignore_last_line is useful for \n-terminated files.
- 706450 - tail.cpp: c tail
-
- #include <fstream>
- #include <vector>
- #include <string>
- #define BUF_SIZE 512
- /* Save the last 'n_lines' lines of 'filename' into vector 'dest'.
- * ignore_last_line is useful for \n-terminated files.
- 701150 - psych.c: c programming coding brainfuck brainf code interpreter
-
- /* psych, v.0.2 - a Brainfuck interpreter
- Copyright (C) 2007 John T. Wodder II
- 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.
- 700095 - fsking FT2: c
-
- /* check what TT opcode interpreter Freetype is using */
- #include <ft2build.h>
- #include FT_FREETYPE_H
- #include FT_MODULE_H
- #include FT_CONFIG_OPTIONS_H
- #include FT_CONFIG_CONFIG_H
- 696225 - MVi: c inheritance polymorphism uglyhack
-
- /**
- * Uglyhack written by MVi
- *
- * And remember kids, don't try/throw/catch this at home!
- */
- #include <stdio.h>
- #include <stdlib.h>
- 655950 - g_hash_table problem: c glib programming g_hash_table
-
- Here is the problem:
- I have a g_hash_table, using the direct hashing function. This hash table holds string(key)->int(value) pairs. In my program, there are two functions: one takes a hash table, and writes the values to GConf; the other reads the values from GConf and returns a new hash table.
- To test my functions, I create some data and store it in the hash table, using the following code:
- GHashTable *tmp_outputs = g_hash_table_new (NULL, NULL);
- gchar *tmp_output_id = g_strdup ("StringOfLettersWithNoSpaces");
- 655918 - Alain de Callafon c program cpp abc math.h math square
- preview unavailable
- 655684 - Alain de Callafon c program cpp abc math.h math ax2bxc
- preview unavailable
- 655561 - Alain de Callafon: c program cpp abc math.h math ax2bxc
-
- //abc-formule( eerste programma)
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main ()
- {
- 654317 - Robert: c listbox
-
- This works to search in the searchbox and display the found result in the ListBox:
- private void txtSearch_TextChanged(object sender, System.EventArgs e)
- {
- // clear the results list
- lstResults.Items.Clear();
- 654249 - Robert: c listbox
-
- This works to search in the searchbox and display the found result in the ListBox:
- private void txtSearch_TextChanged(object sender, System.EventArgs e)
- {
- // clear the results list
- lstResults.Items.Clear();
- 654247 - Robert: c listbox
-
- This works to search in the searchbox and display the found result in the ListBox:
- private void txtSearch_TextChanged(object sender, System.EventArgs e)
- {
- // clear the results list
- lstResults.Items.Clear();
- 652318 - Perl Interface to Curl C API: c curl libcurl perl embed inline
-
- #*****************************************************************************
- #* _ _ ____ _
- #* Project ___| | | | _ \| |
- #* / __| | | | |_) | |
- #* | (__| |_| | _ <| |___
- #* \___|\___/|_| \_\_____|
- #*
- #* $Id: perl_interface.pl,v 1.0 2007/08/10 13:45:11 Voldor Exp $
- 652314 - Perl Interface to Curl C API: c curl libcurl perl embed inline
-
- #*****************************************************************************
- #* _ _ ____ _
- #* Project ___| | | | _ \| |
- #* / __| | | | |_) | |
- #* | (__| |_| | _ <| |___
- #* \___|\___/|_| \_\_____|
- #*
- #* $Id: perl_interface.pl,v 1.0 2007/08/10 13:45:11 Voldor Exp $
- 652240 - Perl Interface to Curl C API: c curl libcurl perl embed inline
-
- #*****************************************************************************
- #* _ _ ____ _
- #* Project ___| | | | _ \| |
- #* / __| | | | |_) | |
- #* | (__| |_| | _ <| |___
- #* \___|\___/|_| \_\_____|
- #*
- #* $Id: perl_interface.c,v 1.0 2007/08/10 13:45:11 Voldor Exp $
- 641969 - C++: c
-
- #include <iostream>
- #include <fstream>
- using namespace std;
- int main()
- {
- char spam_text[30];
- int spam_number;
- 641961 - failed draw line: c map drawline
-
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.IO;
- using System.Drawing;
- using System.Text;
- using System.Windows.Forms;
- 638327 - Hatty: c endian little-endian big-endian pdp-endian switch
-
- #if defined(__WIN32) || defined(__WIN32__) || defined(__WIN64) || \
- defined(__WIN64__)
- /* Windows doesnt have endian.h, and only runs on AMD64/Intel,
- * so it's little endian */
- #define ENDIAN(x) (x & 0xFF000000) | (x & 0x00FF0000) << 8 | \
- (x & 0x00000FF00) << 16 | (x & 0x0000000FF) << 24
- 637808 - Hatty: c endian little-endian big-endian pdp-endian switch
-
- #include <endian.h>
- /* Host byte order <-> Big Endian */
- #if __BYTEORDER == __BIG_ENDIAN
- #define ENDIAN(x) x
- #elif __BYTEORDER == __LITTLE_ENDIAN
- 631269 - avt: c noob glfw
-
- /*
- * This program draws a cube with GL_QUAD_STRIP and GL_QUADS
- * and colors it. It also lets the user spin the cube with the
- * mouse while the left mouse button (button 1) is pressed and
- * to zoom with the scroll wheel.
- *
- * Copyleft (C) avt 2007
- * GNU GPL
- 589694 - Example file (HELP): c help functions main
-
- #include <iostream>
- int main()
- {
- int firstNumber, secondNumber, yesOrno;
- std::cout << "\nEnter two numbers.\nFirst: ";
- std::cin >> firstNumber;
- std::cout << "Second: ";
- 589678 - Example file (HELP): c help functions main
-
- #include <iostream>
- void PlayAgain()
- {
- int yesOrno = 0; while(yesOrno == 0) { std::cout << "Play again?(0=Yes 1=No)\n";}
- std::cin >> yesOrno;
- if (yesOrno == 0)
- std::cout << "Ok! You can play again!\n";