Skip to content

Instantly share code, notes, and snippets.

View somratcste's full-sized avatar

G.M.Nazmul Hossain (Somrat). somratcste

View GitHub Profile
@somratcste
somratcste / Bank_Account
Last active May 21, 2018 06:49
This represent an bank account system
#include<iostream>
using namespace std;
class bank
{
char name_depo[20];
int ac,ac_no;
char type_ac[20];
int balance_ac;
int n,balance;
char Y,N;
@somratcste
somratcste / String Concat
Created September 30, 2013 21:34
This problem is basis on one string is user input, another is defined by two object and this two other concatenation by another object is done by this program
#include <iostream>
#include <cstring>
using namespace std;
static const int string1=1;
static const int string2=2;
static const int string3=3;
class str
{
public :
@somratcste
somratcste / Find Equation
Created September 30, 2013 21:22
Two points such as (x1,y1) and (x2,y2) for how we can find the straight line equation such type of program are described here.
#include <stdio.h>
int main()
{
int p[2],q[2],x,i,j,k;
float m,y;
printf("Enter your two points : \n");
for(i=1;i<=2;i++)
{
printf("x[%d] : ",i);
scanf("%d", &p[i]);
@somratcste
somratcste / Binary Operator overloading
Created September 30, 2013 21:20
How can we overload the Binary Operator this such type of program are described here.
#include <iostream>
using namespace std;
class coord
{
int x,y;
public :
coord(){x=0;y=0;}
coord(int i,int j){x=i;y=j;}
void get_xy(int &i,int &j){i=x;j=y;}
coord operator +(coord ob2);
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
class books
{
char aname[20];
char tname[20];