1. hasiwebmail

    Programming in C/C++

    A simple C program to get ur NIC number and show the details.... //Nic & details display #include<stdio.h> #include<conio.h> void main() { char myic[11]; char my[5], md[4]; int i,j,y,m,d,msex; int mon[12]={31,29,31,30,31,30,31,30,31,30,31,30}; clrscr(); printf("enter your NIC......? ")...
  2. hasiwebmail

    Programming in C/C++

    C program to check the character that you have entered..... #include<stdio.h> #include<conio.h> void main() { char y; clrscr(); printf("Enter any character..."); scanf("%c", &y); if (y >='A' && y <= 'Z') printf("You typed a Capi...."); else if (y >='a' && y <='z') printf("You typed a...
  3. hasiwebmail

    Programming in C/C++

    Games hadanna wenama programming tools tiyanawa ban, Et mama nam danne ne.:no: Ubama podi seach parak dala balapanko
  4. hasiwebmail

    Programming in C/C++

    C program to print the sequence of numbers given below...... 1 12 123 1234 12345 #include<stdio.h> #include<conio.h> void main() { int x,y; clrscr(); for(x =1; x <=9; x = x+1) { for (y = 1; y<=x; y = y +1) { printf("%d", y); } printf("\n"); } getch(); }
  5. hasiwebmail

    Programming in C/C++

    //C program to print the numbers 1-9 vertically #include<stdio.h> #include<conio.h> void main() { int x; clrscr(); for(x = 1; x <=9; x = x+1 ) { printf("%d", x); printf("\n"); } getch(); }
  6. hasiwebmail

    A Thread for Programmers.!

    //program with BODMAS in C #include "stdio.h" int top=-1; void main() { void push(char,char []); char pop(char []); int pref(char,char []); char as[20],fi[20],s[50]; int y=0,i=0,j=0; printf("Enter a string infix :"); gets(as); for(i=0;as[i]!='\0';i++) { if(as[i]>='a' && as[i]<='z' || as[i]>='A'...
  7. hasiwebmail

    A Thread for Programmers.!

    Hmm.... ok ok.... it was jst going little by little ur one input a-b/c abc-/ According to B O D M A S should be abc/- sub has a lower priority That's all and SORRY...... :P Cooool Down....... Thx for rply :D:D:D:D:D:D:D
  8. hasiwebmail

    A Thread for Programmers.!

    That's better :D Nice way to check chars, and why u checking numbers? NICE WORK........ There's a priority of operators when pushing back.. Now......... Try with expression more than one operator eg- a-b/c output abc/- (remember B O D M A S)
  9. hasiwebmail

    A Thread for Programmers.!

    Still not correct......... :no: input a/b output a/b should be ab/ evidence......
  10. hasiwebmail

    A Thread for Programmers.!

    I checked ur program, It is asking only the letters first and then the operator, It's not what i expected, program should able to get the whole expression at once. Check ur program with + - / * and i realized / and * (division and mul) not working currently in ur program input should be the...
  11. hasiwebmail

    A Thread for Programmers.!

    well well.... It should check any operator with infix expression. Not only (+) operator. Nice try,
  12. hasiwebmail

    A Thread for Programmers.!

    //Program to illustrate binary search #include<iostream.h> #include<conio.h> class binarysearch() { void main() { int a[100],i,loc,mid,beg,end,n,flag=0,item; clrscr(); cout<<"How many elements "; cin>>n; cout<<"Enter the element of the array"<<endl; for(i=0;i<=n-1;i++) { cin>>a[i]; }...
  13. hasiwebmail

    EK PhotoShop Sinhala (Tutorial.02)

    හම්මා සිරා කිඋවා Rep +
  14. hasiwebmail

    Programming in C/C++

    1st program........ in C #include<stdio.h> #include<conio.h> void main() { printf("Hello Programming...."); } Using Borland TC 3.0v
  15. hasiwebmail

    Programming in C/C++

    Hey guys... This is a new thread for programming in C/ C++ Pls post ur questions and examples here........ :yes::yes::yes::yes::yes::yes::yes::yes::yes::yes::yes:
  16. hasiwebmail

    A Thread for Programmers.!

    Write a C++ program to convert any infix expression to its post-fix form.... Eg- if user enters a+b it should print ab+
  17. hasiwebmail

    A Thread for Programmers.!

    For the first one...... eg1: Enter String: 123 <- user enters and it prints, 123 321 213 132 231 312 //@hasi #include "stdio.h" #include "string.h" void posrot(char [],int); void permutate(char [],int); int main(void) { int n=0,m=0; char as[30]; printf("Enter a string : "); gets(as)...
  18. hasiwebmail

    A Thread for Programmers.!

    Make a combination program in C++ which will take a string and value of r as input and will generate all possible combinations *where r is r of formula ncr
  19. hasiwebmail

    EK PhotoShop Sinhala (Tutorial.03)

    හම්මා එල කිරි නේ රැපිඩ් ලොක්කා ඔන්න රේප් දුන්නෝ Rep +
  20. hasiwebmail

    මුහුණේ උපන් ලප හෙළි කරන රහස්‌

    Mage mune upan lapayak nene... Aduma gane nikam lapayak wat ne:no::no::no: :P:P:P:P:P:P:P:P:P:P:P:P:P:P:P:P:P:P:P:P:P

    No contents