Popular posts from this blog
How to take input from external file in C++
প্রথমে নিচের কোডটি দেখে নেই। # include <bits/stdc++.h> using namespace std ; int main () { freopen( "input.txt" , "r" ,stdin), freopen( "output.txt" , "w" ,stdout); //your code goes here return 0 ; } প্রথমে মেইন ফাংশন এ আমাদের আসল কোডটি লিখতে হবে । কোডটি হল freopen( "input.txt" , "r" ,stdin), freopen( "output.txt" , "w" ,stdout) এখানে freeopen ফাংশনটি ব্যবহার করে আলাদা ফাইল থেকে ইনপুট নেয়া ও আলদা ফাইলে আউটপুট দেয়া হয়। freopen( "input.txt" , "r" ,stdin) এখানে "input.txt” লেখা হয়েছে যেটি আসলে যে ফাইল থেকে ইনপুট নেয়া হবে সেই ফাইলের নাম এটি input.txt না হয়ে mango.txt ও হতে পারে :p তারপর “r” দিয়ে বোঝানো হচ্ছে ফাইলটি read করতে হবে তারপর stdin মানে Standard Input file একইভাবে freopen( "output.txt" , "w" ,stdout) “output.txt” দিয়ে ফাইলের নাম , “w” দিয়ে বোঝাচ্ছে ফাইলটি write করতে হবে মানে আউটপুট ওখানে জমা হবে এবং সবশেষে stdout মানে...
Browser Cookies: What the hell is this?
Some browsers with a cookie What do we know about a cookie? A cookie is a baked or cooked food that is typically small, flat and sweet. It usually contains flour , sugar and some type of oil or fat . It may include other ingredients such as raisins , oats , chocolate chips , nuts, etc. So, in one word this is a food that humans or any other animals can eat. Some Cookies in a tray But wait a minute. We are talking about browser cookies and it is related to Computer. But can computers really eat any cookies like a human? And the answer is a big NO. Then what is a browser cookies? Well, in computer a cookie is information stored on your computer by a website you visit. In some browser, each cookies are in a small file but some browser like Firefox store all of your information in a single file which is used for all website cookie. Cookies often store website settings...
Comments
Post a Comment