Tag: সি

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

সি প্রোগ্রামিং এ মেমোরি ব্যবস্থাপনাঃ Memory Management in C Programming

সি প্রোগ্রামিং এ মেমোরি ব্যবস্থাপনা রিদওয়ান বিন শামীম এই অধ্যায়ে সি প্রোগ্রামিং এ ডাইনামিক মেমোরি ম্যনেজমেন্ট নিয়ে আলোচনা করা হবে। সি প্রোগ্রামিং ল্যাঙ্গুয়েজে মেমোরি বণ্টন ও ব্যবস্থাপনার জন্য কয়েক ধরনের ব্যবস্থা আছে, তাদেরকে হিডার ফাইলে রাখা হয়। এধরনের ফাংশন গুলোকে এভাবে দেখানো যায়ঃ S.N. Function and Description 1 void *calloc(int num, int size); Num ইলিমেন্টের …

Continue reading

সি এবং অ্যারে : Array in C

int marks[4][10] = {{80, 70, 92, 78, 58, 83, 85, 66, 99, 81}, {75, 67, 55, 100, 91, 84, 79, 61, 90, 97}, {98, 67, 75, 89, 81, 83, 80, 90, 88, 77}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};   #include <stdio.h> int main() { int marks[4][10] = {{80, 70, 92, …

Continue reading

লেকচার-০৫: সি++ প্রোগ্রামিং – একটি সম্পূর্ণ প্রোগ্রাম লেখা (Hands on Programming)

http://www.youtube.com/watch?feature=player_embedded&v=wYQCndBKZn8

লেকচার – ০৪: সি++ প্রোগ্রামিং – লজিক (C++ Programming – Logic)

http://www.youtube.com/watch?feature=player_embedded&v=0RSZNF-2cx4

লেকচার – ০৩: সি++ প্রোগ্রামিং- ভেরিয়েবল এবং এক্সপ্রেশন (Variables and Expressions)

http://www.youtube.com/watch?feature=player_embedded&v=jI9TwR9vzOU http://www.youtube.com/watch?feature=player_embedded&v=_vb4bljtjPA

লেকচার-০২: সি++ প্রোগ্রামিং – আপনার প্রথম প্রোগ্রাম (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

লেকচার – ০১: সি++ প্রোগ্রামিং – মেশিনের মত চিন্তা করুন (C++ Programming – Think like a machine)

http://www.youtube.com/watch?feature=player_embedded&v=enJWpUlmp80

লেকচার – 00: সি++ প্রোগ্রামিং কোর্সের রুপরেখা (C++ Programming Course Outline)

http://www.youtube.com/watch?feature=player_embedded&v=-hiZRyVPCUs