Tags » C#

eBay Bidding Intensifier

For a number of years, I used to listen to the song, “In the House, In a Heartbeat”, during the last minutes of an eBay auction I am currently bidding on. 37 more words

C++

C# : How to add Metro Framework in C# Project

Step 1: Go to www.nuget.org

Step 2: Search for Metro Framework.

Step 3: Copy the command for Package Manager(PM) Console. 39 more words

C#

Accessing GPS Location Data in Android

In modern day handsets, there are a ton of sensors from which we can gather data to make our Android applications more rich and useful. Your smartphone likely has multiple sensors, from an accelerometer, to a gyroscope, to a GPS sensor. 667 more words

Programming

Spaces and Parentheses in C#

Problem
You want to know how to handle spaces when dealing with parentheses in C#.

Solution
Add one space after the opening parentheses and before the closing parentheses in… 23 more words

Programming

Wiring up a Button Click handler in a Xamarin.Forms ListView

So I had to deal with this recently. There were many examples out there, many of which didn’t work. Sooo, I’m blogging my code example so others don’t remain stuck :) 153 more words

Software Development

Ο Άγιος Παΐσιος ο Αγιορείτης σώζει έναν ομοφυλόφιλο από την αυτοκτονία & τον οδηγεί στη Θεία Εξομολόγηση

http://faithbookorthodoxy.wordpress.com

FAITHBOOK – ORTHODOXY

Ο Άγιος Παΐσιος ο Αγιορείτης

σώζει έναν ομοφυλόφιλο από την αυτοκτονία

& τον οδηγεί στη Θεία Εξομολόγηση

Πολλοί ομοφυλόφιλοι βρήκαν τη σωτηρία και την ανάπαυση της ψυχής τους κοντά στον Άγιο Παΐσιο τον Αγιορείτη ο οποίος τους οδηγούσε στη Θεία Εξομολόγηση σε κάποιον καλό Πνευματικό Πατέρα. 8 more words

╰⊰¸¸.•¨* Greek Articles – Ελληνικά

Simple Banking System in C++

Banking System in C++ using a class & structure

Option Available:

  • Create New Account
  • Deposit money
  • Withdraw Money
  • Balance Inquiry
#include<iostream>
#include<string.h>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
struct data{
char name;
char type;
long num,balance;

}a;
class bank{
long x;
//opening new account
public:
void open(int j){
open_acc:
cout<<"\n\n\n------------------------------------";
cout<<"\n\nAccount number should be from 101-150";
cout<<"\n\nEnter the Account Number : "; cin>>a[j].num;
if(a[j].num>150 || a[j].num<101)
{
system("cls");
cout<<"\nPlease enter correct Account Number";
goto open_acc;
}
cout<<"\n------------------------------------";
fflush(stdin);
cout<<"\nEnter The Account Holder Name : ";
gets(a[j].name);
cout<<"\n------------------------------------";
cout<<"\nEnter the Account type : ";
fflush(stdin);
gets(a[j].type);
cout<<"\n------------------------------------";
fflush(stdin);
cout<<"\nEnter the Account opening Minimum balance : "; cin>>a[j].balance;
cout<<"\n------------------------------------";
}

//deposit the money
public:
void add(int w){
int y=0;
while(a[y].num!=w)
{
y++;
}
cout<<"\nEnter the Deposite Amount : "; cin>>x;
a[y].balance += x;
cout<<"\nRecord is Updated!"<<endl;
cout<<"\nAccount Number : "<<a[y].num<<endl;
cout<<"Account HolderName : "<<a[y].name<<endl;
cout<<"Account Type : "<<a[y].type<<endl;
cout<<"Balance : "<<a[y].balance<<endl;
}

//withdraw money
public:
void withdraw(int w){
int y=0;
while(a[y].num!=w)
{
y++;
}
cout<<"\nEnter the withdraw Amount : "; cin>>x;
a[y].balance -= x;
cout<<"\nRecord is Updated!"<<endl;
cout<<"\nAccount Number : "<<a[y].num<<endl;
cout<<"Account HolderName : "<<a[y].name<<endl;
cout<<"Account Type : "<<a[y].type<<endl;
cout<<"Balance : "<<a[y].balance<<endl;
}

//display account holder name,account number,balance
public:
void display(int w){
int y=0;
while(a[y].num!=w)
{
y++;
}
cout<<"\nAccount Number : "<<a[y].num<<endl;
cout<<"Account HolderName : "<<a[y].name<<endl;
cout<<"Account Type : "<<a[y].type<<endl;
cout<<"Balance : "<<a[y].balance<<endl;
}
};
int main()
{
bank b;
int i,j=0,k,z;
char username,password;
system("cls");
start:
system("cls");
start1:
cout<<"\n------------------------------------"<<endl<<endl;
cout<<"\n1.Open New Account"<<endl;
cout<<"2.Deposit Money"<<endl;
cout<<"3.Withdraw Money"<<endl;
cout<<"4.Balance Inquiry"<<endl;
cout<<"5.Exit"<<endl;
cout<<"Select option from (1-5) : "; cin>>i;
switch(i)
{
case 1:
system("cls");
b.open(j);
j++;
goto start;

case 2:
system("cls");
cout<<"\n\nEnter Account Number : "; cin>>k;
b.add(k);
goto start1;

case 3:
system("cls");
cout<<"\n\nEnter Account Number : "; cin>>k;
b.withdraw(k);
goto start1;

case 4:
system("cls");
cout<<"\n\nEnter Account Number : "; cin>>k;
b.display(k);
goto start1;

case 5:
break;

default:
cout<<"\n------------------------------------";
cout<<"\n------------------------------------";
cout<<"\nInvalid Option !"<<endl;
cout<<"------------------------------------";
goto start1;
}
end:
return 0;

}

… 12 more words
Computer &amp; Technology