Sunday, March 27, 2011

CrazyEngineers Forum - Computer Science & IT Engineering

CrazyEngineers Forum - Computer Science & IT Engineering


QR codes all around!

Posted: 26 Mar 2011 10:00 PM PDT

The Quick Response code seems to be getting popular around our place too. I remember getting curious about this square with random little squares in it that was seen at various websites after I uploaded a file, image etc.

Its amazing how much possibility this new technology holds. Its like, a portal from the real world to the digital world :)

What do you think about the possible uses of QR code in our own daily life?
For instance, I think it's a great way to share our website/blog in printed media :cool:
We can even create a QR code embedding our basic info like name, phone no. etc

BTW, here is the QR code for CrazyEngineers | Uniting Engineers Across The World :)

Attachment 102
Attached Images

file-system mounting

Posted: 26 Mar 2011 08:06 AM PDT

Please help in the interpretation of a line from GALVIN:

"A system may obscure the directory's existing files until the file system is unmounted, terminating the use of the file system and allowing access to the original files in that directory."

Does it mean that the files under the file system would still be available but the mechanism of the on-line access to the files would be lost i.e.,the file system would not be available?

Why Does My Computer Hang?

Posted: 26 Mar 2011 07:54 AM PDT

Hi All! Now, please explain to me the logic behind it.. all OS and memory stuff? why a system freezes and hangs and why sometimes all tricks fail and you have to restart ! Cant i just save my work..... :rolleyes:

Please help me out with the coding

Posted: 26 Mar 2011 06:30 AM PDT

Dear members,
I am a SE(CSE) student. I m completing a mini-project on BUS RESERVATION SYSTEM. I have ended up on a problem with the update and booking section. I have also completed with the password protection code. But the entire program starts getting problem on execution of that part. I am trying the program using file handling in c++. I have tried with most of the part but just have got these problems.
Please provide me with the necessary guidance and the logic if you can.

Code:

/*MINI PROJECT ON BUS RESERVATION SYSTEM*/

#include<conio.h>
#include<stdio.h>
#include<iostream.h>
#include<string.h>
#include<fstream.h>
#include<graphics.h>
#include<stdlib.h>
#include<dos.h>

class bus
{
int busn,s,fare,i,seat;
char driver[10],arrival[5],depart[5],to[10],date[10],pas_name[20];

fstream x,z;

public:
    void install()
    {
    clrscr();
    z.open("data.txt",ios::app);

    cout<<"\n\n\t\t\t***** BUS RESERVATION SYSTEM *****\n\n";
    cout<<"\t\t\t*******INSTALL*******\n\n";
    for(i=0;i<1;i++)
    {
    cout<<"\n\tSource:Kolhapur";
    cout<<"\n\tEnter bus no: ";
    cin>>busn;
    cout<<"\n\tEnter driver's name: ";
    cin>>driver;
    cout<<"\n\tEnter destination:";
    cin>>to;
    cout<<"\n\tEnter fares:";
    cin>>fare;
    cout<<"\n\tEnter arrival time: ";
    cin>>arrival;
    cout<<"\n\tEnter departure time: ";
    cin>>depart;
    cout<<"\n\tEnter date (dd/mm/yy):";
    cin>>date;
    z<<busn<<"\t"<<driver<<"\t"<<to<<"\t"<<fare<<"\t"<<arrival<<"\t"<<depart<<"\t"<<date<<endl;
    }
    z.close();
    getch();
    }

    void show()
    {
    int ch1;
    clrscr();
    z.open("data.txt",ios::in);
    cout<<"\n\n\t\t\t***** BUS RESERVATION SYSTEM *****\n\n";
    cout<<"\t\t\t\t***** SHOW *****\n\n1.Seatwise reservation details\n";
    cout<<"2.Bus reservation details\n\nEnter choice:";
    cin>>ch1;
    clrscr();

    switch(ch1)
    {
    case 1:
    cout<<"Enter Bus no.:";
    cin>>busn;
    cout<<"Enter seat no.:";
    cin>>seat;
    cout<<"\n\tBus no.:"<<busn;
    cout<<"\n\tDriver's name:"<<driver;
    cout<<"\n\tSeat no.:"<<seat;
    cout<<"\n\tPassenger name:"<<pas_name;
    cout<<"\n\tFrom:Kolhapur"<<"\t\t\t\t"<<"To:"<<to;
    cout<<"\n\tFare:Rs."<<fare;
    cout<<"\n\tDate:"<<date;
    cout<<"\n\tArrival time:"<<arrival<<"\t\t\t\t"<<"Departure time:"<<depart;
    break;

    case 2:
    while(z)
    {
    z>>busn>>driver>>to>>fare>>arrival>>depart>>date;
        if(z.eof()==0)
        {
        cout<<"\nBus no.:"<<busn;
        cout<<"\t\t\tDriver's name:"<<driver;
        cout<<"\nSeat no.:"<<seat;
        cout<<"\t\t\tPassenger name:"<<pas_name;
        cout<<"\nFrom:Kolhapur"<<"\t\t\t"<<"To:"<<to;
        cout<<"\nDate:"<<date;
        cout<<"\nArrival time:"<<arrival<<"\t\t"<<"Departure time:"<<depart;
        cout<<"\n\n********************************************************************************";
        }
    }
/*      for(s=0;s<32;s++)
    {
    }*/
    break;
    }
    z.close();
    getch();
    }

    void enquiry()
    {
    clrscr();
    z.open("data.txt",ios::in);
    cout<<"\n\n\t\t\t***** BUS RESERVATION SYSTEM *****\n\n";
    cout<<"\t\t\t      *****  ENQUIRY  *****\n\n";
    cout<<"\t\t\t\tSource:Kolhapur\n";
    cout<<"\n--------------------------------------------------------------------------------";
    cout<<"Bus no.\t  Dest.        Fare\t Date\t\tArr time\tDept time";
    cout<<"\n--------------------------------------------------------------------------------";

    while(z)
    {
    z>>busn>>driver>>to>>fare>>arrival>>depart>>date;
        if(z.eof()==0)
        {
        cout<<busn<<"\t  "<<to<<"  \t"<<fare<<"\t"<<date<<"\t"<<"  "<<arrival<<"\t\t"<<"  "<<depart<<endl;
        }
    }
    z.close();
    getch();
    }
};

/*void pass()
{
int i=0;
char p[6];
clrscr();

cout<<"\n\n\n\n\n\t\t\tEnter password:";
    for(i=0;i<6;i++)
    {
    p[i]=getch();
    cout<<"*";
    }
    p[i]='\0';

    if(strcmp("smokie",p)==0)
    {
    getch();
    cout<<"\n\n\n\t\t\tPassword correct";
    cout<<"\n\n\t\t\tPress Any To Continue.....";
    getch();
    }
    else
    {
    getch();
    cout<<"\n\n\n\t\t\tIncorrect password";
    getch();
    exit(0);
    }
}*/

void main()
{
clrscr();
bus b;
int w,gd=DETECT,gm,ch;
/*initgraph(&gd,&gm,"c:\\tc\\bgi");
setbkcolor(BLUE);*/

//pass();

do
{
clrscr();
cout<<"\n\n\t\t\t***** BUS RESERVATION SYSTEM *****\n\n\n\t\t\t\t-*-*-*-MENU-*-*-*-\n\n\t\t\t\t1.Install\n\t\t\t\t2.Booking\n\t\t\t\t3.Update\n\t\t\t\t4.Show\n\t\t\t\t5.Cancellation\n\t\t\t\t6.Enquiry\n\t\t\t\t7.Exit\nEnter choice:";
cin>>ch;

switch(ch)
{
    case 1: b.install();
        break;
/*    case 2: b.booking();
        break;
    case 3: b.update();
        break;*/
    case 4: b.show();
        break;
/*    case 5: b.cancel();
        break;*/
    case 6: b.enquiry();
        break;
    case 7: exit(0);
}
}while(ch!=7);
getch();
}

Has anyone Tried to repair Windows Xp from Recovery Console

Posted: 26 Mar 2011 04:24 AM PDT

Hi CEans,

May be some of the CEans Knows this.But i am putting this question ,that is anyone tried to repair the Windows XP from Recovery console
When you Boot your System from the CD We have the option to either install a fresh copy of windows ,or to repair the existing installation by repairing from recovery console
by pressing R
After that it open the command prompt screen where we can get the list of command by Help

and for the respective command to understand we can use command name space /?
here some commands are like..fixboot,fixmbr,chkdsk commands
I tried for FixMBR and it worked :)

If any CEans knows exactly all commands how they works please post here :)

No comments:

Post a Comment