Tags » Programming

Java: How to Handle Drawables

There are two options for drawables in Android Studio—the first is to inflate an image (PNG or JPGs) and the second is to define the drawing you want in an XML file. 699 more words

Gif Guides

প্রোগ্রামিং কি জিনিস ?

A Native Introduction to Programming

[ আগেই বলি, আমি এখানে কম্পিউটার নিয়ে আলোচনা করতে আসি নাই। এই কাজের জন্য কম্পিউটার থাকা লাগবে যে বলবে তাকে সেই মুহুর্তেই এড়িয়ে চলা ভালো হবে। ] 1,101 more words


Android Studio: How to save a bitmap in the Android file system

Bitmaps are useful objects to use during Android development as they can be used to manipulate images. The following is a proper method on how to save a bitmap to the Android file system. 346 more words


Project Euler #71

Click here to read the original problem

After giving the problem a read, this is how I broke it down in my head. From the set find… 193 more words

Project Euler

Computer Science as a Liberal Art

I was looking for a reason to spend time on a computer language and this perspective shared by the late Steve Jobs got me.

I’ve been playing around at this neat site… 15 more words

String class : C++

#include <iostream>
#include <string>
using namespace std;

int main()
    //string intialization
    string s0;

    string s1("Mei");

    string s2 = "Meikandanathan";

    string s3(s1);

    string s4 = s2;

    char arr[] = {'a', 'b', 'c', '\0'};

    string s5(arr);

    cout << s0 << endl;
    cout << s1 << endl;
    cout << s2 << endl;
    cout << s3 << endl;
    cout << s4 << endl;
    cout << s5 << endl;

    //Check empty string
    if (s0.empty())
        cout << "s0 is an empty string" << endl;

    s0.append("I'm appended to s0 string");
    s0 += " and I'm concatenated to s0";
    cout << s0 << endl;

    cout << s0.length() << endl;
    cout << s0.length() << endl;

    s0 = "Flower";
    s1 = "Fruit";

    //0 - equal
    //+number - s0 is lexicographically greater than s1
    //-number - s0 is lexicographically smaller than s1
    cout << s0.compare(s1) << endl;

    cout << s0[1] << endl;

    //Find substrings
    string s6 = "I'm want to become a master in competitive programming";
    int index = s6.find("master");
    cout << index << endl;

    //Remove a word from the string
    string word = "master";
    s6.erase(index, word.length() + 1);
    cout << s6 << endl;

    //Iterate over all characters in strings
    string s7 = "Happy";
    for (int i = 0; i < s7.length(); i++)
        cout << s7[i] << " " << endl;

    for (auto itr = s7.begin(); itr != s7.end(); itr++)
        cout << *itr << " ";

    cout << endl;
    //For each
    for (char c : s7)
        cout << c << "-";

    return 0;
C++ String Methods

Programming Notes - July 5, 2020

KNCT Founders Club Member, Vive Les Arts Theater presents Matilda, The Musical from their stage located at 3401 South W. S. Young Drive in Killeen. With six showtimes from July 10th through the 19th, the theater is operated at a diminished seating capacity in order to keep groups separate.  544 more words