HelloWorld.java public class HelloWorld { // method main(): ALWAYS the APPLICATION entry point public static void main (String[] args) { System.out.println (“Hello World!”); } } // Print Today’s Date import java.util.*; public class HelloDate { public static void main (String[] args) { System.out.println (“Hello, it’s: “); System.out.println(new Date()); …
Tag: program
Jul 29
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 …
Apr 06
লেকচার-০২: সি++ প্রোগ্রামিং – আপনার প্রথম প্রোগ্রাম (C++ Programming – Your first program)
http://www.youtube.com/watch?feature=player_embedded&v=_IPsHMfj8LY http://www.youtube.com/watch?feature=player_embedded&v=WCpXg4WFW94