#include<iostream.h> #include<conio.h> #include<string.h> class StringRev{ char s[20]; public: StringRev(){} StringRev(char *p){ strcpy(s,p); } void display(){ cout<<s<<endl; }
#include<iostream.h> #include<conio.h> #include<string.h> class StringConcat{ char s[20]; public: StringConcat(){} StringConcat(char *p){ strcpy(s,p); } void display(){ cout<<s<<endl; }
#include<stdio.h> #include<conio.h> #include<alloc.h> #include<stdlib.h> struct Node{ int data; struct Node *next; }; struct Node * allocate(){ struct Node *t; t = (struct Node *)malloc(sizeof(struct Node)); t->next = NULL; return t; }
class Array_Sort{ public static void main (String[] args){ int a[]={4,6,3,1,5}; int t; for(int i=0;i<a.length-1;i++){