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<conio.h> | |
| using namespace std; | |
| template<class X> | |
| class Stack{ | |
| private: | |
| X index; | |
| X pile[100]; | |
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>Register</title> | |
| </head> | |
| <body> | |
| <form action="#" method="POST" id = "myform"> | |
| <fieldset> | |
| <legend>Fill up the form</legend> | |
| <label> |
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
| <?php | |
| $conn = mysqli_connect("localhost","root",""); | |
| if(!$conn){ | |
| die("Host connection failed.<br/>"); | |
| }else{ | |
| echo "Host connected.<br/>"; | |
| } | |
| $create_db = "CREATE DATABASE authentication"; |
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
| // Q. Write a program with class Distance to realize following main method. | |
| // [Internal 2018 Spring - GCES] | |
| #include<iostream> | |
| using namespace std; | |
| class Distance{ | |
| private: | |
| int cm; |
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<cmath> | |
| #include<math.h> | |
| using namespace std; | |
| class Cartesian{ | |
| private: | |
| float xCo, yCo; | |
| 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> | |
| #include<string> | |
| using namespace std; | |
| class University{ | |
| private: | |
| string uname; | |
| public: | |
| University():uname("unspecified"){} | |
| University(string u):uname(u){} |
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
| class DecToBin{ | |
| public static void main(String[] args){ | |
| int dec = 64; | |
| int bin=1,rem=0;// I assigned bin to 1 in this revision. | |
| while(dec>1){ // I run the loop while dec is greater than 1 in this revision. | |
| rem=dec%2; | |
| bin=bin*10+rem; | |
| dec=dec/2; | |
| } | |
| System.out.println("In Binary = "+bin); |
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
| stringOne = str(input("Enter string one : ")) | |
| stringTwo = str(input("Enter string two : ")) | |
| print("\nBefore Swapping\n") | |
| print("String One : %s"%(stringOne)) | |
| print("String Two : %s"%(stringTwo)) | |
| # Pre-Defined Method | |
| # stringOne,stringTwo = stringTwo,stringOne |
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
| // www.github.com/thearjun | |
| class Calculate | |
| { | |
| int num1, num2; | |
| Calculate(int number1, int number2) | |
| { | |
| num1 = number1; | |
| num2 = number2; |
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 java.io.File; | |
| class CountsFile{ | |
| private static int count; // Count variable to count the no of files. | |
| public static void count(){ | |
| count++; // Every time the method is envoked, count increases by 1. | |
| } | |
| public static int getCount(){ | |
| return count; // Getter for count. | |
| } |
OlderNewer