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 main() { | |
int fib1 = 0, | |
fib2 = 1, | |
count = 2, | |
limit, | |
fib3; | |
printf("Fibboniaci Series:\n"); |
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
//LinkedList code | |
//insert and display list | |
#include <stdio.h> | |
#include <cstdlib> | |
struct Node { | |
int val; |
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
# To change this license header, choose License Headers in Project Properties. | |
# To change this template file, choose Tools | Templates | |
# and open the template in the editor. | |
while True: | |
print("Enter '1' to add numbers") | |
print("Enter '2' to subtract numbers") | |
print("Enter '3' to divide numbers") | |
print("Enter '4' to multiply numbers") | |
print("Enter '5' to quit numbers") |
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
#count_char method. | |
#which count the total value | |
def count_char(text, char): | |
count = 0 | |
for c in text: | |
if( c == char): | |
count += 1 | |
return count; |
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
#count_char method. | |
#which count the total value | |
def count_char(text, char): | |
count = 0 | |
for c in text: | |
if( c == char): | |
count += 1 | |
return count; |
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
//find array size | |
#include <iostream> | |
#include <cstdlib> | |
#include <math.h> | |
using namespace std; | |
//processoing... | |
void search() { |
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> | |
#include <fstream> | |
using namespace std; | |
int main() { | |
ofstream myfile("wohhie.txt"); | |
if (myfile.is_open()) { | |
myfile << "This is Line 1\n"; | |
myfile << "This is line 2\n"; |
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> | |
#include <fstream> | |
#include <string> | |
using namespace std; | |
int main() { | |
string line; | |
ifstream myfile("wohhie.txt"); | |
if (myfile.is_open()) { |
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
package javatest; | |
/** | |
* | |
* @author tousifosman | |
*/ | |
public class JavaTest { | |
/** | |
* @param args the command line arguments |
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
<IfModule mod_rewrite.c> | |
RewriteBase / | |
Options -MultiViews | |
RewriteEngine On | |
#1and1 to enable PHP 5.4 | |
AddHandler x-mapp-php6 .php |