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<cstdio> | |
#include<iostream> | |
using namespace std; | |
class LinkedList{ | |
int *arr; | |
int length,siz; | |
public: |
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
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) |
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
/* | |
Specify the path of your input file in PATH variable | |
*/ | |
import java.io.*; | |
import java.util.Scanner; |
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
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': |
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> | |
<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; |
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
/* | |
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; |
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
## | |
## 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 | |
## |
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> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>HTML CSS3</title> | |
<style type="text/css"> | |
h2{ | |
font-size: 4em; | |
margin: 1em; | |
padding: 0; |
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<iostream> | |
using namespace std; | |
class MyClass{ | |
private: | |
int x; | |
public: |
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<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"; |
OlderNewer