Tag: কোড

ServletUtilities.java Utility class that simplifies the output of the DOCTYPE and HEAD in servlets, among other things. Used by most remaining servlets in the chapter.

ServletUtilities.java  Utility class that simplifies the output of the DOCTYPE and HEAD  in servlets, among other things. Used by most remaining servlets in the chapter. package cwp; import javax.servlet.*; import javax.servlet.http.*; /** Some simple time savers. Note that most are static methods.  *    *  Taken from Core Web Programming Java 2 Edition  *  from …

Continue reading

ContactSection.jsp A snippet of a JSP page. It defines a field (accessCount), so pages that include it and want to directly utilize that field must use the include directive, not jsp:include.

ContactSection.jsp হচ্ছে JSP পৃষ্ঠার একটি অংশ।এটি একটি ফিল্ডকে সঙ্গায়িত করে (accessCount), সুতরাং যে পৃষ্ঠায় এটি অন্তর্ভুক্ত থাকে এবং সরাসরি উক্ত ফিল্ড ব্যবহার করাতে চায় তাকে আবশ্যই include directive ব্যবহার করতে হবে, jsp:include নয়।. <%@ page import=”java.util.Date” %> <%– The following become fields in each servlet that      results from a JSP page that includes this file. –%> <%! …

Continue reading

J2SE : LinkedList and Iterators in Java

/*  * LinkedList.java  *  * Created on January 10, 2008, 8:51 PM  *  * To change this template, choose Tools | Template Manager  * and open the template in the editor.  */ package linkedlist; import java.util.List; import java.util.LinkedList; import java.util.Iterator; import java.util.ListIterator; import java.util.Collections; import java.util.Random; /**  *  * @author Sayed  */ public class LinkedListTest …

Continue reading

C++ code : Read file content

#include <iostream> #include <fstream> using namespace std; int main() {   ifstream in(“test”, ios::in | ios::binary);   if(!in) {     cout << “Cannot open input file.\n”;     return 1;   }   double num;   char str[80];   in.read((char *) &num, sizeof(double));   in.read(str, 14);   str[14] = ‘\0’; // null terminate str   cout …

Continue reading

A simple C++ Program code

#include <iostream> #include <fstream> using namespace std; int main() {   ifstream in(“test”, ios::in | ios::binary);   if(!in) {     cout << “Cannot open input file.\n”;     return 1;   }   double num;   char str[80];   in.read((char *) &num, sizeof(double));   in.read(str, 14);   str[14] = ‘\0’; // null terminate str   cout …

Continue reading

ASP.NET টিউটোরিয়াল :[পর্বঃ ৬]:: ASP.NET Web Forms দিয়ে একসাথে ফর্মের অনেক কোডের নিয়ন্ত্রণ . ASP.NET Web Forms – Maintaining the ViewState

ASP.NET টিউটোরিয়াল :[পর্বঃ ৬]:: ASP.NET Web Forms দিয়ে একসাথে ফর্মের অনেক কোডের নিয়ন্ত্রণ লেখকঃ মোস্তাফিজুর ফিরোজ । গত পর্বে আমরা শিখেছিলাম ASP.NET Web Forms দিয়ে এইচটিএমএল ফর্ম ট্যাগের ব্যবহার । আজ আমরা শিখবো একসাথে ফর্মের অনেক কোডের নিয়ন্ত্রণ । এজন্য আগে আপনাকে ViewState এর নিয়ন্ত্রণ সম্পর্কে জানতে হবে । ViewState এর নিয়ন্ত্রণ যখন একটি ফর্ম …

Continue reading

জাভাস্ক্রিপ্ট সুইচ বিবৃতি (JavaScript Switch Statement in Bangla)

শরিফুল ইসলাম Job category-Php Coder ভিন্ন ভিন্ন শর্তে ভিন্ন ভিন্ন কাজ পারফর্ম করার জন্য এই switch statement ব্যবহার করা হয়। জাভাস্ক্রিপ্ট সুইচ বিবৃতি Switch statement এর মাধ্যমে অনেকগুলো ব্লক কোড থেকে শর্ত অনুযায়ী একটি কোড পছন্দ করবে এবং সে অনুযায়ী কাজ করবে Syntax switch(expression) {     case n:         code block         break;     case …

Continue reading