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.io.*; | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.awt.Toolkit.*; | |
import java.awt.datatransfer.*; | |
class myframe extends Frame implements ActionListener | |
{ | |
TextArea b; | |
Clipboard clpbrd=Toolkit.getDefaultToolkit().getSystemClipboard(); | |
StringSelection strsel; |
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<stdio.h> | |
#define print(s) main(){printf("%s",s) | |
print("Prasanna"); |
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<stdio.h> | |
#define print(s) main(){printf("%s",s) | |
print("Prasanna"); |
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<vector> | |
using namespace std; | |
int main() | |
{ | |
vector<int> a; | |
int tmp; | |
for(int i=0;i<5;i++) | |
{ | |
cin>>tmp; |
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
package ChatApp; | |
import chatApp.winada; | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.io.*; | |
import java.net.*; | |
public class ServerFrame extends Frame implements ActionListener,Runnable | |
{ | |
Thread t=new Thread(this); | |
Socket cli; |
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
package ChatApp; | |
import chatApp.winada; | |
import java.awt.*; | |
import java.awt.event.*; | |
import java.net.*; | |
import java.io.*; | |
public class ClientFrame extends Frame implements ActionListener,Runnable | |
{ | |
TextArea a=new TextArea(); | |
TextField c=new TextField(25); |
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
package chatApp; | |
import java.awt.event.*; | |
public class winada extends WindowAdapter | |
{ | |
public void windowClosing(WindowEvent e) | |
{ | |
System.exit(1); | |
} | |
} |
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 <math.h> | |
#include <algorithm> | |
#include <iostream> | |
using namespace std; | |
void introsort_r(int a[], int first, int last, int depth); | |
void _introsort(int a[], int n); | |
int _partition(int a[], int first, int last); | |
void _insertion(int a[], int n); | |
void _swap(int *a, int *b); | |
void _doheap(int a[], int begin, int end); |
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<stdlib.h> | |
#include<math.h> | |
using namespace std; | |
int main() | |
{ | |
int tmp,i; | |
double a[5],qa,qb,e; | |
for(i=0;i<5;i++) | |
a[i]=400; |
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> | |
#define min(a,b) (a>b)?b:a; | |
using namespace std; | |
int main() | |
{ | |
int a[3][3]; | |
for(int i=0;i<3;i++) | |
for(int j=0;j<3;j++) | |
{ | |
cout<<"Enter Distance from "<<i+1<<" to "<<j+1<<":"; |
OlderNewer