This file contains 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.net.*; | |
import java.io.*; | |
public class Server { | |
public static void main(String args[]) throws Exception,UnknownHostException{ | |
ServerSocket ss=new ServerSocket(8088); | |
Socket s=ss.accept();; | |
DataInputStream din=new DataInputStream(s.getInputStream()); |
This file contains 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.net.*; | |
import java.io.*; | |
public class Client { | |
public static void main(String[] args) throws Exception { | |
Socket s=new Socket("localhost",8088); | |
DataInputStream din=new DataInputStream(s.getInputStream()); | |
DataOutputStream dout=new DataOutputStream(s.getOutputStream()); |
This file contains 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 os | |
#Install DHCP Package | |
os.system("yum install dhcp") | |
os.system("dhclient -r") | |
os.system("dhclient -r -v") | |
os.system("dhclient -v")" | |
This file contains 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>3 | |
using namespace std; | |
class PermutationGenerator | |
{ | |
char *set; | |
int count=1; | |
int start,terms,levels; | |
public: | |
void swap(char *a,char *b) |
This file contains 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 Student | |
{ | |
int sid[50]; | |
int total; | |
public: | |
Student() | |
{ |
This file contains 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 matrix | |
{ | |
private: | |
int a[5][5],b[5][5],c[5][5],m,n; | |
public: | |
void getB(); | |
void add(); |
This file contains 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 String | |
{ | |
int len; | |
public: | |
inline void display(char c[]) |
This file contains 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
//============================================================================ | |
// Name : Pinnacle.cpp | |
// Author : Vaibhav K | |
// Version : | |
// Copyright : | |
// Description : Hello World in C++, Ansi-style | |
//============================================================================ | |
#include<stdio.h> | |
#include <iostream> | |
#include<string> |
This file contains 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 binary; | |
class node | |
{ | |
node *prev; | |
bool n; | |
node*next; | |
public: | |
node() |
This file contains 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.net.*; | |
import java.io.*; | |
public class Client implements Runnable { | |
public boolean b=true; | |
Socket s; | |
DataInputStream din ; | |
DataOutputStream dout; | |
BufferedReader br; | |
String str,str2; |
OlderNewer