Source Code

Program on FileOpen
//………Program on FileOpen.cpp………..// #include #include using namespace std; int main() {   ofstream out;   out.open("Departments");   out<<"INFORMATION TECHNOLOGY\n";   out<<"MECHANICAL\n";   out<<"CHEMICAL\n";   out.close();     out.open("Intake");   ou[ More ]
Program on Shap
//….Program on Shap.cpp…..// #include #include class shape {   protected:   float x,y;   public:   void getdata()   {     cout<<"enter x & y:"< [ More ]
Program on int_Percen
//……Program on int_Percen.Cpp…….// #include #include //using namespace std; class Fixed_deposit   {   long int P_amount;   int Years;   float Rate;   float R_value;   //int i;   public:   Fixed_deposit(){ }   Fixed_deposit(long int p,int y,float R=0.12[ More ]
Program on Hybrid
//……Program on Hybrid.Cpp…….// #include #include //using namespace std; class person {   char name[30];   int code;   public:   void getdata(void);   void putdata(void); }; void person::getdata() {   cout<<"enter name"<<"\n";   cin>>name;   co[ More ]
Program On Fun
//…..Program On Fun.Cpp………..// #include #include class volume {   float l,r,b,h,v;   public:   void vol(float);   void vol(float,float);   void vol(float,float,float); }; void volume::vol(float l) {   cout<<"\tenter l"< [ More ]
Program On EMP
//………Program On EMP.Cpp…………….// #include //using namespace std; class employee {   int ph_no;   int id_no;   char name[30];   char emp_des[30];   char emp_add[30];   public:   void getdata();   void putdata(); }; void employee::getdata()[ More ]
Program On Filemerge
//.............Program On Filemerge.cpp……// /*MEGING  OF TWO FILES INTO 3rd*/ #include //#include #include #include //using namespace std; int main() {   clrscr();   ifstream file1("demo.cpp");   if(file1.fail())   {   cout<<"Cannot open file1";   //getch();   //return[ More ]
Program On int_Acc
//…………Program On int_Acc.cpp……….// #include using namespace std; class account {     char name[10];   int acc_no;   int type;   public:   int balance;   void type_account(void);   int type_type();   void display(void); }; class cur_acct:pub[ More ]
Program On TSTACK
//............Program On TSTACK.cpp……// #include #include //using namespace std; #define max 5 //int top=-1; template class stack {   t top;   t stack[max];   public:   stack()   {   top=-1;   }   void push(t x);   void pop();   void displa[ More ]
Program On VOL
//.......Program On VOL.cpp……// #include #include class volume {   float l,r,b,h,v;   public:   void vol(float,int ,float);   void vol(float);   void vol(float,int); }; void volume::vol(float l,int b,float h) {   cout<<"enter l,b,h"< [ More ]
Program On Static
//.........Program On Static.cpp……// #include #include //using namespace std; class item {   static int cnt;   int number;   public:   void get_data(int a)   {   number=a;   cnt++;   }   void get_cnt(void)   {   cout<<"\nCount:"<[ More ]
Program On Contact
//......Program On Contact.cpp……// #include using namespace std; class overload {     int a,b;   public:     void getdata(int x,int y)     {   a=x;   b=y;     }     void display(void); /*    void overload(int p,int q)     {   p=a; q=b;     }*/     vo[ More ]
Program On Bubble
//……..Program On Bubble……..// #include #include //using namespace std; template void bubble(t a[],int n) {   for(int i=0;i   cout< [ More ]
Program for binry+ovrloding
//…………..Program for binry+ovrlod………….// #include using namespace std; class complex {   float x;  //real part   float y;  //imaginary part   public:   complex(){}  //constructor 1     complex(float real,float imag)  //constructor 2   {   x=real; [ More ]
Program For ACC
//…………..Program For  ACC.CPP……………// #include #include #include #include class account {   private:   int accountno;   char name[31];   float balance;   char acc_type[10];   public:   void initialise()   {   balance=500;   }  [ More ]
PHP CODE for Navigation
PHP CODE for Navigationif($_SERVER['QUERY_STRING'] == "SoD") print "owns you!";else print "don't front!";?>Description: Instead of calling files like ( index.php?str=blah ) , you could do ( index.php?SoD ) and it would print out "owns you!". You can add more strings in there, this is just an example[ More ]
Upload a File
Upload a FileThe following tasks guide you through using the low-level Java classes to upload a file.Low-Level API File Uploading Process1Create an instance of the AmazonS3Client class, by providing your AWS credentials.2Initiate multipart upload by executing the AmazonS3Client.initiateMultipartUplo[ More ]
Create a PDF Uploader:
Create a PDF Uploader:First we are going to create a PDF uploaded in order to get the preview image using PHP. Let’s begin with a HTML form.codesourcecodesource        PDF Preview Imagetitle>    <form method="post" enctype="multipart/form-data">  <p><input name="pdfupl<a href="https://softron.in/30/235/Create+a+PDF+Uploader%3A.html">[ More ]</a> </div> </div> <div class="accordion-wrapper"><a href="javascript:void(0)" class="accordion-title orange"><span>Hospital Management System</span></a><div class="accordion-content">!!!Hospital Management System ...!!!#include #include #include #include // define maximum number of patients in a queue #define MAXPATIENTS 100 // define structure for patient data struct patient { char FirstName[50]; char LastName[50]; char ID[20]; }; // define class for queue class queue { public:<a href="https://softron.in/30/234/Hospital+Management+System.html">[ More ]</a> </div> </div> <div class="accordion-wrapper"><a href="javascript:void(0)" class="accordion-title orange"><span>Java HttpURLConnection follow redirect example</span></a><div class="accordion-content">Java HttpURLConnection follow redirect exampleThe HttpURLConnection‘s follow redirect is just an indicator, in fact it won’t help you to do the “real” http redirection, you still need to handle it manually.URL obj = new URL(url);HttpURLConnection conn = (HttpURLConnection) obj.openConnection<a href="https://softron.in/30/233/Java+HttpURLConnection+follow+redirect+example.html">[ More ]</a> </div> </div> <div class="divider1"></div> <section> <article> <p><br></p> </article> </section> <div class="clear"></div> </div> </div> </div> </section> </div> </div> <div id="sidebar_1" class="sidebar one_quarter"> <section> <article> <p><br></p> </article> </section> <section> <aside> <h2>Language</h2> <nav> <ul class="clear"> <li><a href="https://softron.in/19/Search/Development_Type/index.html" title="All">All</a></li><li ><a href="https://softron.in/19/Search/Cpp_Lang/Development_Type/index.html" title="C/CPP"> C/CPP </a></li> <li ><a href="https://softron.in/19/Search/Java_Lang/Development_Type/index.html" title="Java">Java</a></li> <li ><a href="https://softron.in/19/Search/PHP_Lang/Development_Type/index.html" title="PHP">PHP</a></li> <li ><a href="https://softron.in/19/Search/Visual Basic_Lang/Development_Type/index.html" title="Visual Basic">Visual Basic</a></li> <li ><a href="https://softron.in/19/Search/C%23_Lang/Development_Type/index.html" title="C#">C#</a></li> <li ><a href="https://softron.in/19/Search/Asp.net_Lang/Development_Type/index.html" title="Asp.nET">Asp.NET</a></li> <li ><a href="https://softron.in/19/Search/C%23.net_Lang/Development_Type/index.html" title="C#.net">C#.Net</a></li> <li ><a href="https://softron.in/19/Search/HTML_Lang/Development_Type/index.html" title="HTML">HTML</a></li> <li ><a href="https://softron.in/19/Search/Android_Lang/Development_Type/index.html" title="Android">Android</a></li> <li ><a href="https://softron.in/19/Search/Jsp_Lang/Development_Type/index.html" title="Jsp">Jsp</a></li> <li ><a href="https://softron.in/19/Search/Servlet_Lang/Development_Type/index.html" title="Servlet">Servlet</a></li> <li ><a href="https://softron.in/19/Search/Java Script_Lang/Development_Type/index.html" title="Java Script">Java Script</a></li> <li ><a href="https://softron.in/19/Search/CSS_Lang/Development_Type/index.html" title="CSS">CSS</a></li> <li ><a href="https://softron.in/19/Search/Embedded C_Lang/Development_Type/index.html" title="Embedded C">Embedded C</a></li> <li ><a href="https://softron.in/19/Search/Embedded JAVA_Lang/Development_Type/index.html" title="Embedded JAVA">Embedded JAVA </a></li> <li ><a href="https://softron.in/19/Search/Assembly Language_Lang/Development_Type/index.html" title="Assembly Language">Assembly Language</a></li> <li ><a href="https://softron.in/19/Search/J2ME_Lang/Development_Type/index.html" title="J2ME">J2ME</a></li> <li ><a href="https://softron.in/19/Search/Silver Light_Lang/Development_Type/index.html" title="Silver Light">Silver Light</a></li> <li ><a href="https://softron.in/19/Search/SQL_Lang/Development_Type/index.html" title="SQL">SQL</a></li> <li ><a href="https://softron.in/19/Search/Batch File_Lang/Development_Type/index.html" title="Batch File">Batch File</a></li> <li ><a href="https://softron.in/19/Search/Perl_Lang/Development_Type/index.html" title="Perl">Perl</a></li> </ul> </nav> </aside> </section> <section> <article> <p><br></p> </article> </section> </div> </div> <div class="clear"></div> <!-- Footer --> <div class="wrapper row2"> <div id="footer" class="clear"> <div class="onenew_quarter first"> <h2 class="footer_title">Footer Navigation</h2> <nav class="footer_nav"> <ul class="nospace"> <li><a href="https://softron.in/Home.html" title="Homepage" >Home</a></li> <li><a href="https://softron.in/18/Product.html" title="Product">Product</a></li> <li><a href="https://softron.in/8/Services.html" title="Services">Services</a></li> <li><a href="https://softron.in/4/Training.html" title="Training">Training</a></li> <li><a href="https://softron.in/17/IT Consultancy.html" title="IT Consultancy">IT Consultancy</a></li> <li><a href="https://softron.in/10/Online Advertising.html" title="Online Advertising">Online Advertising </a></li> <li><a href="https://softron.in/12/Film Production.html" title="Film Production">Film Production</a></li> <li><a href="https://softron.in/5/Privacy Policy.html" title="Skill">Privacy Policy</a></li> <li><a href="index.php?page=20&pagetitle=Terms & Conditions" title="Terms & Conditions">Terms & Conditions</a></li> </ul> </nav> </div> <div class="onenew_quarter"> <h2 class="footer_title">Forums</h2> <nav class="footer_nav"> <ul class="nospace"> <li><a href="index.php?page=23&pagetitle=News" title="News">News</a></li> <li><a href="index.php?page=27&pagetitle=Blog" title="Blog">Blog</a></li> <li><a href="index.php?page=21&pagetitle=Article" title="Article">Article</a></li> <li><a href="index.php?page=25&pagetitle=Open Source" title="Open Source">Open Source</a></li> <li><a href="index.php?page=19&pagetitle=Project Code" title="Project Code">Project Code</a></li> <li><a href="index.php?page=29&pagetitle=Today%20Offers/Coupons" title="Todays Offers/Coupons">Todays Offers/Coupons</a></li> </ul> </nav> </div> <div class="onenew_quarter"> <h2 class="footer_title">News</h2> <div class="tweet-container"> <ul class="list none"> <li><a href="index.php?page=24&AID=11&News=Bossofworld+World%C3%A2%E2%82%AC%E2%84%A2s+largest+website">Bossofworld World’s largest website</a></li> <li><a href="index.php?page=24&AID=10&News=Sun-like+star+and+Earth-like+planet+is+found.">Sun-like star and Earth-like planet is found.</a></li> <li><a href="index.php?page=24&AID=9&News=NASA%27s+New+Horizons+mission+to+Pluto">NASA's New Horizons mission to Pluto</a></li> <li><a href="index.php?page=24&AID=8&News=Jelly-Bean+Moon+of++Pluto+With+Red+Spot">Jelly-Bean Moon of Pluto With Red Spot</a></li> <li><a href="index.php?page=24&AID=7&News=Top+15+Most+Popular+News+Websites">Top 15 Most Popular News Websites</a></li> </ul> </div> </div> <div class="onenew_quarter"> <h2 class="footer_title">Contact Us</h2> <script type="text/javascript" > $(function() { $("#contact_button").click(function() { var dataString=$('#Contactformedit').serialize(); if(dataString=='') { alert("Enter some text.."); } else { $("#previewcontact").html(''); $("#previewcontact").html('<img src="loader.gif" alt="Uploading...."/>'); $.ajax({ type: "POST", url: "Suggestions.php", data: dataString, cache: true, success: function(html){ $("#previewcontact").html(html); } }); } return false; }); }); </script> <div id='previewcontact' align="center"></div> <form id="Contactformedit" class="rnd5" action="#" method="post"> <input type="hidden" name="Contact" value="Contact"> <div class="form-input clear"> <label for="ft_Name">Name <span class="required">*</span><br> <input type="text" name="Contact_Name" id="ft_author" value="" size="22"> </label> <label for="ft_email">Email <span class="required">*</span><br> <input type="text" name="Contact_Email" id="ft_email" value="" size="22"> </label> <label for="ft_Contatct">Contact For <span class="required">*</span><br> <select Name="Contact_For"> <option value="IT Consultancy" Selected>IT Consultancy</option> <option value="Product">Product</option> <option value="Training">Training</option> <option value="Online Advertising">Online Advertising</option> <option value="Advertising Film">Advertising Film</option> <option value="Film Production">Film Production</option> <option value="Chrome Effects">Chrome Effects</option> <option value="Automation">Automation</option> <option value="Other">Other</option> </select> </label> </div> <div class="form-message"> <textarea name="Contact_message" id="ft_message" cols="25" rows="10"></textarea> </div> <p> <input type="Button" value="Submit" id="contact_button" class="button small orange">   <input type="reset" value="Reset" class="button small grey"> </p> </form> </div> </div> </div> <div class="wrapper row4"> <div id="copyright" class="clear"> <p class="fl_left">Copyright © 2011 - All Rights Reserved - <a href="#">Softron.in</a></p> <p class="fl_right">Template by <a href="http://www.Softron.in/" title="Free Website Templates">Softron Technology</a></p> </div> </div> <!-- Scripts --> <script src="https://softron.in/layout/scripts/jquery-latest.min.js"></script> <script src="https://softron.in/layout/scripts/jquery-ui.min.js"></script> <script src="https://softron.in/layout/scripts/jquery-mobilemenu.min.js"></script> <script src="https://softron.in/layout/scripts/custom.js"></script> </body> </html>