Tags » C#

Connecting a C# Console Application to a database using the Entity Framework.

There are a lot of times where it is necessary to use a database. Almost every large project consists of some kind of non-local data management, and this is where databases come in to play. 341 more words


Did you know How Much These Programming Languages Can Make You Earn??

Ever field requires computer and designing software as per requirement of the conditio is the task of the programmer.Although programming languages should e choosen bby interest, if yoy have not start and searching for developing your programming skills or even otherwise you should learn how much a programming language can make you earn. 291 more words

Overview of Singleton and static class


Singleton class is used when we would like to have a single instance of a class throughout the application. The singleton class should be sealed so that no one can derive from it. 607 more words


Default arguments in virtual functions

class A{
	A(){ cout<<" A constructor"<<endl;	}
	virtual ~A(){ cout<<" A destructor"<<endl;	}
	virtual void dummy(int a=1){ cout<<" in A "<<a<<endl;	}
class B:public A{
		B(){ cout<<" B constructor"<<endl;	}
	virtual ~B(){ cout<<" B destructor"<<endl;	}
	virtual void dummy(int a=9) override {cout<<" in B = "<<a<dummy();
	delete p;
… 143 more words

Print all permutations of a string in C++

Given a string, print out all possible permutations.

This is a common college or interview programming question, and a Google search will turn up plenty of solutions, mostly using recursion. 548 more words


Stack of Integer: Implementation in C

#include <stdbool.h>

void Push(int);
bool Pop(int*);

typedef struct sop{
    int stackValue;
    struct sop *next;
} Stack;

Stack *stackCurrentPointer=NULL,*stackTmpPointer=NULL;

void Push(int pushValue){
    stackTmpPointer = (Stack *) malloc(sizeof(Stack));
    stackTmpPointer->stackValue = pushValue;
    stackTmpPointer->next = stackCurrentPointer;
    stackCurrentPointer = stackTmpPointer;

bool Pop(int *returnAddress){

    if(stackCurrentPointer != NULL){
        *returnAddress = stackCurrentPointer->stackValue;
        stackTmpPointer = stackCurrentPointer;
        stackCurrentPointer = stackCurrentPointer->next;
        return true;
    return false;


… 43 more words