This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<bits/stdc++.h> | |
| using namespace std; | |
| int main() | |
| { | |
| int n; | |
| while( 1 ) | |
| { | |
| cin >> n ; | |
| if ( n == 42 ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <head> | |
| </head> | |
| <body> | |
| <form method="post" action="<?php echo $_SERVER["PHP_SELF"];?>" > | |
| Enter the search word:<input type="text" name="qword"><br><br> | |
| <input type="submit" value="Go"><br> | |
| </form> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| </head> | |
| <body> | |
| <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
| <script type="text/javascript"> | |
| var cid; | |
| function get_stores(var_CategoryID) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| int check[100]; | |
| int main() | |
| { | |
| int p,r,alloc[100][100],aval[100],want[100],max[100][100],i,j,k; | |
| printf("enter the no of process and the no of resources"); | |
| scanf("%d %d",&p,&r); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <GL/glut.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| #include <stdlib.h> | |
| int h,k; | |
| float a,b; | |
| void display(void) | |
| { | |
| double I,J; | |
| int i,j; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set ns [new Simulator] | |
| set f [open out.tr w] | |
| $ns trace-all $f | |
| setnf [open out.nam w] | |
| $ns namtrace-all $nf | |
| set n0 [$ns node] | |
| set n1 [$ns node] | |
| $ns duplex-link $n0 $n1 1Mb 10ms DropTail | |
| set udp0 [new Agent/UDP] | |
| $ns attach-agent $n0 $udp0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<stdlib.h> | |
| #include<string.h> | |
| int a[20][257],nodes[200],stack[200],top; | |
| void push(int a) | |
| { | |
| stack[top]=a; | |
| top++; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import socket | |
| HOST = '' | |
| PORT = 56231 | |
| address_family = socket.AF_INET | |
| socket_type = socket.SOCK_STREAM | |
| request_queue_size = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| ****************************************************************** | |
| ** Advanced Encryption Standard implementation in C. ** | |
| ** By Niyaz PK ** | |
| ** E-mail: niyazlife@gmail.com ** | |
| ** Downloaded from Website: www.hoozi.com ** | |
| ****************************************************************** | |
| This is the source code for encryption using the latest AES algorithm. | |
| AES algorithm is also called Rijndael algorithm. AES algorithm is | |
| recommended for non-classified by the National Institute of Standards |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<bits/stdc++.h> | |
| #define REP(i,a,b) for(i=a;i<=b;i++) | |
| using namespace std; | |
| int main(){ | |
| string plain,cipher=""; | |
| int i,n,key; | |
| cin>>plain>>key; | |
| n=plain.length(); | |
| REP(i,0,n-1){ | |
| cipher+=char((plain[i]-'a'+key)%26+'a'); |
OlderNewer