Skip to content

Instantly share code, notes, and snippets.

View somratcste's full-sized avatar

G.M.Nazmul Hossain (Somrat). somratcste

View GitHub Profile
#include <iostream>
#include <cstring>
#include <cstdio>
using namespace std;
class books
{
char aname[20];
char tname[20];
@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);
@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 / 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 / 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;
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
int i=0,k=0,n,j=0;
while(cin>>n)
{
if(n<2000)
break;
#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
unsigned long a,b,count,carry,m;
while(scanf("%ld%ld",&a,&b)==2 && a!=0 && b!= 0)
{
count=0,m=0;
while(a||b )
@somratcste
somratcste / Uva-10533
Created December 24, 2014 15:02
This problem is not accepted ,,,,,, i used seive algorithm but where is the problem i don't understand.
#include <stdio.h>
#include <math.h>
#define MAX 1900000
char prime[MAX];
int digitprime[MAX];
void seive()
{
int i,j,k,temp,update,m,d,sum;
@somratcste
somratcste / gist:3f4f16b8198b49db09410b11947a9875
Created October 15, 2016 02:34
Game Development on Android
How can i start 3d game development on android ?
Which requirement is necessary ?
Is this possible to develope a 3d game in android studio ?
Java with android
C# with windows
Xamarian with c# cross platform (iOS+android+windows)
Unity 3d support android studio ??
Give me a suggestion with the perception of the world??
Or
% G. M. Nazmul Hossain Somrat ASH1201021M
start([3,3,left,0,0]).
% initial state
goal([0,0,right,3,3]).
% final state
% is this state a legal one?
legal(CL,ML,CR,MR) :-