Hafsa Software

Hafsa Software Design and Develop modern E-Commerce, ERP, Service Selling website, Personal portfolio, Company prof

We have a very dynamic team to build different modern websites for you and your company. We offer in very cheap rate :

� Business Websites,
� E-Commerce,
� Service selling sites,
� Personal Portfolio,
� Business profile of companies. We use :

� (.Net) Dontet core MVC
� (.Net) Dotnet core API
� MSSQL
� Oracle
� Angular
� Javascript

14/12/2021



Client এর চাহিদা অনুযায়ি একটি রিপোর্ট কে pdf জেনারেট করতে হবে, এবং সেটা হতে হবে Landscape mode এ। তো এটা তো সহজেই সিএসএস এর মিডিয়া কুইরি দিয়ে করা যায়। কিন্তু আমরা যারা ডটনেট এ কাজ করি রেজর পেজ এ , তাদের জন্য সমস্যা হল CSHTML পেজ এ স্টাইল ট্যাগ লিখলে সেটার মধ্যে মিডিয়া কুইরি এর পেজ ইলিমেন্ট লিখা যায় না, এরর দেয় কারন এই সিন্টেক্সটা .css ফাইল এর জন্য .cshtml ফাইল এর জন্য না । তো এর সিম্পল সমাধান হল কোডটা একটা সিএসএস ফাইল এ লিখা এবং সিএসএস ফাইল টা .cshtml ফাইল এ লিঙ্ক করে দেয়া।







07/12/2021

Work for that things, which one will work for you lifetime.


23/05/2018

Encryption code for file content :: # # # # #




int main()
{
FILE *fptr1, *fptr2;
char c;
// Open one file for reading
fptr1 = fopen("encryption.txt", "r");
if (fptr1 == NULL)
{
printf("Cannot open file encryption.txt\n");
exit(0);
}
// Open another file for writing
fptr2 = fopen("encryption2.txt", "w");
if (fptr2 == NULL)
{
printf("Cannot open file encryption2.txt \n");
exit(0);
}
// Read contents from file
c = fgetc(fptr1);
while (c != EOF)
{
fputc(c + 3, fptr2);
c = fgetc(fptr1);
}
printf("\nContents copied to encryption2.txt");
fclose(fptr1);
fclose(fptr2);
fptr1 = fopen("encryption.txt", "w");
remove("encryption.txt");
return 0;
}

15/08/2017

URI problem::1020::

import java.io.IOException;
import java.util.Scanner;

public class Main {

public static void main(String[] args) throws IOException {

int a,b,c,d,e;
Scanner obj=new Scanner(System.in);
a=obj.nextInt();
b=a/365;
c=a%365;
d=c/30;
e=c%30;
System.out.println((b)+" ano(s)");
System.out.println((d)+" mes(es)");
System.out.println((e)+" dia(s)");
}
}

15/08/2017

URI problem:1019:::


import java.io.IOException;
import java.util.Scanner;
public class Main {

public static void main(String[] args) throws IOException {
int N,a,b,c,d;
Scanner obj=new Scanner(System.in);
N=obj.nextInt();
a=N/60;
b=N%60;
c=a/60;
d=a%60;
System.out.println((c)+":"+(d)+":"+(b));
}
}

14/08/2017

First Java Program:: Else-If ladder:::

import java.util.Scanner;
public class Salary
{
public static void main(String args[])
{
int a,b;
Scanner obj=new Scanner(System.in);
System.out.println("Enter the salary ");
a=obj.nextInt();
if(a>=10000)
{
b=((a/100)*10);
a=a+b;
}
else if(a>=5000&&a

11/08/2017

BST::Insertion:Searching:print::


struct node
{
int n;
struct node *left;
struct node *right;
};
struct node *head=NULL;
void insert(int y);
int searche(struct node *r,int s);
//int delet(struct node*r, int key);
void printl(struct node *t);
void printr(struct node *head);

int main()
{

int x,y,s,key;
printf("*********Menu********\n");
printf("1.Print all elements of TREE\n");
printf("2.insert elemnts\n");
printf("3.Search elements\n");
//printf("4.Delete Elements\n");
printf("press 5 for Exit operation\n");
//printf("Enter your Choice\n");
printf("\n");
struct node *a,*b,*c,*d,*e,*f,*g,*h,*i;
a=(struct node *)malloc(sizeof(struct node));
b=(struct node *)malloc(sizeof(struct node));
c=(struct node *)malloc(sizeof(struct node));
d=(struct node *)malloc(sizeof(struct node));
e=(struct node *)malloc(sizeof(struct node));
f=(struct node *)malloc(sizeof(struct node));
g=(struct node *)malloc(sizeof(struct node));
h=(struct node *)malloc(sizeof(struct node));
i=(struct node *)malloc(sizeof(struct node));
head=a;
a->n=40;
a->left=b;
a->right=c;
b->n=35;
b->left=d;
b->right=e;
c->n=50;
c->left=f;
c->right=NULL;
d->n=30;
d->left=NULL;
d->right=NULL;
e->n=37;
e->left=g;
e->right=NULL;
f->n=45;
f->left=NULL;
f->right=h;
g->n=33;
g->left=NULL;
g->right=NULL;
h->n=48;
h->left=NULL;
h->right=i;
i->n=60;
i->left=NULL;
i->right=NULL;
while(1)
{
printf("Enter your choice from main menu\n");
scanf("%d",&x);
printf("\n");
switch(x)
{
case 1:printl(head);
break;
case 2:printf("Enter the element you want to insert\n");
scanf("%d",&y);
insert(y);
break;

case 3:printf("Enter the value you want to search\n");
scanf("%d",&s);
searche(head,s);
break;
case 5:exit(0);

}
}
}

void printl(struct node *t)
{
if(t!=NULL)
{
printl(t->left);
printf("%d\n",t->n);

printl(t->right);
}
}

void insert(int y)
{
struct node *temp,*p;
temp=(struct node *)malloc(sizeof(struct node));
p=(struct node *)malloc(sizeof(struct node));
temp->n=y;
temp->left=NULL;
temp->right=NULL;
if(head==NULL)
{
head=temp;
}
else
{
struct node *curr;
curr=(struct node *)malloc(sizeof(struct node));
curr=head;

while(curr)
{
p=curr;
if(temp->n>curr->n)
{
curr=curr->right;
}
else
{
curr=curr->left;
}

}

if(temp->n>p->n)
{
p->right=temp;
}
else
{
p->left=temp;
}
}
}
int searche(struct node *r,int s)
{
if(s==r->n)
{
printf("%d is found in the position of %d\n",s,&r->n);
}
else if(sn)
{
r->left=searche(r->left,s);
}
else if(s>=r->n)
{
r->right=searche(r->right,s);
}
}

10/08/2017

All operations of STACK: Push :Pop:Print::



CAPACITY 5 //pre processor macro
int isfull();
int isempty();
int pop();
void push(int);
void print();
int stk[CAPACITY],top=-1,ele;
void main()
{
int ch;
while(1)
{
printf("1.Push\n");
printf("2.Pop\n");
printf("3.Print\n");
printf("press 4 for exit\n");
printf("Enter your choice\n");
scanf("%d",&ch);
switch(ch)
{
case 1:
printf("Enter the element you want to push\n");
scanf("%d",&ele);
push(ele);
break;
case 2:
ele=pop();
if(ele!=0)
printf("deleted elements is %d",ele) ;
break;
case 3:
print();
break;
case 4:
exit(0);
default:
printf("invalid option");
break;

}
}
}
int isfull()
{
if(top==CAPACITY-1)
{
return 1;
}
else
{
return 0;
}
}
int isempty()
{
if(top==-1)
{
return 1;
}
else
{
return 0;
}
}
void push(int ele)
{
if (isfull())
{
printf("Stack is overflow\n");
}
else
{
top++;
stk[top]=ele;
printf("%d pushed\n",ele);
}
}
int pop()
{
if(isempty())
{
printf("stack is empty\n");
}
else
{
return stk[top--];
}
}
void print()
{
int i;
if(isempty())
{
printf("stack is Empty\n");
}
else
{
printf("Full stack is ::\n") ;
for(i=0;i

10/08/2017

কোড লেখা শুরু করার আগে অবশ্যই কোড নিয়ে ভাবা উচিত যে কিভাবে Logic Stablished করা যায় এবং কিভাবে Logic Stablished করলে Easy হয়...।।

Address

Gazipur
1702

Alerts

Be the first to know and let us send you an email when Hafsa Software posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Contact The Business

Send a message to Hafsa Software:

Share