Skip to content

Instantly share code, notes, and snippets.

#include<cstdio>
#include<iostream>
using namespace std;
class LinkedList{
int *arr;
int length,siz;
public:
if __name__=="__main__":
s = raw_input("Enter string: ")
s = s.replace('e','3').replace('E','3').replace('s','5').replace('S','5')
print 'Replaced string: {0}'.format(s)
/*
Specify the path of your input file in PATH variable
*/
import java.io.*;
import java.util.Scanner;
PLUS = ' + '
MINUS = ' - '
MULTIPLY = ' * '
DIVIDE = ' / '
if __name__=='__main__':
print('Calculator program (\'q\' or \'quit\' to exit):\n')
while True:
s = raw_input('Enter operation: ')
if s=='q' or s=='quit':
@bitwiser
bitwiser / html.html
Last active August 29, 2015 13:56
html
<!DOCTYPE html>
<html>
<head>
<title>Average Test Scores</title>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>
var total = 0;
var entryCount = 0;
var entry;
var bestScore = 0;
/*
Put input in a file named in.txt in the same directory as the source
*/
#include<iostream>
#include<cmath>
#include<fstream>
#include<algorithm>
using namespace std;
##
## The program --- convertC2F.s
##
## - will ask the user for a temperature in Celsius,
## - convert it to Fahrenheit, and
## - print the result.
##
## Here is the formula of the conversion:
## F = (9*C/5)+32
##
<!doctype html>
<!DOCTYPE html>
<html>
<head>
<title>HTML CSS3</title>
<style type="text/css">
h2{
font-size: 4em;
margin: 1em;
padding: 0;
#include<iostream>
using namespace std;
class MyClass{
private:
int x;
public:
#include<iostream.h>
#include<conio.h>
void search(int a[], int beg, int end, int item) // Function to Search Element
{
if(beg==end) // if Single Element is in the List
{
if(item==a[beg])
cout<<"\nThe Element is Found at Position : "<<beg;
else
cout<<"\nData is Not Found";