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
| <activity android:name="ShareActivity"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.SEND"/> | |
| <category android:name="android.intern.category.DEFAULT"/> | |
| <date android:mimeType="text/plain"/> | |
| </intent-filter> | |
| </activity> |
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; | |
| int fibresult[100]; | |
| int fib(int n){ | |
| if(n==0) | |
| return 0; | |
| else if(n==1) | |
| return 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
| /* | |
| ID: vijay.i2 | |
| PROG: ride | |
| LANG: C++ | |
| */ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| 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
| /* | |
| ID: vijay.i2 | |
| PROG: gift1 | |
| LANG: C++ | |
| */ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <cstring> | |
| 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
| #include<stdio.h> | |
| void InsertionSort(int a[], int n) | |
| { | |
| int i,j, temp; | |
| for(i=0; i<=n-1; i++) | |
| { | |
| temp = a[i]; | |
| j = i; | |
| while(a[j-1] > temp && j>=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
| #include <iostream> | |
| using namespace std; | |
| class Complex { | |
| private: | |
| int real, imag; | |
| public: | |
| Complex(int r = 0, int i = 0) { real = r, imag = i; } | |
| // This is automatically called when '+' is used with | |
| // between two Complex objects |
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; | |
| int count_one(int x){ | |
| int count = 1; | |
| do{ | |
| x /= 2; | |
| count++; | |
| }while(x % 2 != 0); | |
| 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
| /* | |
| http://ideone.com/flMEIl | |
| */ | |
| #include <iostream> | |
| using namespace std; | |
| bool leapYear(int n){ | |
| if(n % 400 == 0) | |
| return true; | |
| else if(n % 100 == 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
| /* | |
| http://ideone.com/RvRq8S | |
| http://train.usaco.org/usacoprob2?a=id79oFP6BDM&S=friday | |
| */ | |
| #include <iostream> | |
| using namespace std; | |
| bool leapYear(int n){ | |
| if(n % 400 == 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
| /* | |
| PROG: beads | |
| LANG: C++ | |
| */ | |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| using namespace std; | |
| int main() { |
OlderNewer