Kamal_Java 0 Newbie Poster

HI

I have a Map Image that I got from OpenstreetMap(Osmarender Image ) .My question is

how to convert geographic coordinates to the co-ordinates of my picture (that is in pixels on X and Y on a picture). That is I receive geographic coordinates and it is necessary for me to draw this point on my picture.

Is there any API availabel in QT for processing this type of Map Problem

Kamal_Java 0 Newbie Poster

Hi guys,

I like to design a workplace or form(not decided) in VC++ (MFC) or (C++) where I can select and place different objects like car , bike etc and move them programmatically.Each object has its own properties(which is already designed) I have no problem in moving them by changing x,y position.

But my question is how do I place different objects like car , bus on screen and move them to the place I want.I should also able to delete them when needed. As I am new MFC I would like to know how to proceed . Given an right direction I can swim on my own.

Kamal_Java 0 Newbie Poster

Dear friends ,
I am new to java . I created an JFrame(Calculator) application in Netbeans.Now i want to run that file from console(putty) since i gonna use that .java class in some other program through which i want invoke this . How do i do this . When i try to run the java file directly it throws
"Bad file descriptor" error . Can any one help me

Kamal_Java 0 Newbie Poster

Hi i have two tables called GeneralTable and SpecializedTable which
has Name and State in It LIke
1 .GeneralTable ( GName , State )
2. SpecializedTable( SName , State )

i want to write an SQL query which display the State from where the majority of Person ( both General Table and SpecializedTable ) come from .

Can any one guide me.. i tried many thing but nothing worked . ..

NOte : i know i need to combine them into groups and need to sum , but dont know how to do this in database.

Thanks

Kamal_Java 0 Newbie Poster

Hi,

I am new to game programming and i need help in creating the above shown game ..
I have to use VC++.NET for this .

can u help me in choosing which control should i use for creating editor for placing my images into it . I dont know how to start .

Thanks

Kamal_Java 0 Newbie Poster

Hi I am new to java and need help .

Whats the C++ map equivalent in Java. In C++ i can use map for three purposes like
i) Sorting while insertion into it ( efficient )
ii) Key ,value
iii and for storing unique item.

I came to know there are many maps in java which i can use , can any one help me in finding the efficient map which does the above functionality.

Thanks for your help.

Kamal_Java 0 Newbie Poster

How to write recursive method that takes an array of Strings and prints them out in reverse order, one per line.

I was able to do this by iteration but not by recursion since its an array of string .could any one help me ...

Kamal_Java 0 Newbie Poster

Hi

How do i get current windows logged on users profile directory in vista using vc++.

Kamal_Java 0 Newbie Poster

Hi ,

I have a stl list which stores my base class pointer .Like

list<BaseClass*> eBList;

now i want to iterate through this list and store it in one local variable. how do i do this. i have shown below the code i tried .... But at one part it crashes..

list<BaseClass*>::const_iterator iter = eBList.begin( );

BaseClass *ebase

for( ; iter != eBList.end( ); iter++ )
    {
         if( typeid( **iter ) == typeid( DerivedClass ) )
         {
                   *ebase = **iter;    ///// CRASHES HERE    .. how do i assign to this variable      
                   break;     
           }
              
              
         }
Kamal_Java 0 Newbie Poster

HI,

I am new to C++ and i need help on this topic . Overloading streams . I feel this very difficult to learn after i have learnt java.

I have a Base class Called BX

class BX
{
public:
    BX( );
    BX( string X, string Y );

    // 2 set function here 
    
    virtual void setType( )  { };

    friend ofstream& operator << (ofstream& os, const BX& e );
    friend ifstream& operator >> (ifstream& is, BX& e );
    friend ostream& operator << (ostream& os, const BX& e );
    friend istream& operator >> (istream& is, BX& e );

protected:
    string type;
    
private:
    string X;
    string y;    
};

and two derived class D1 and D2.

class D1 : public BX
{
public:
    D1( );
    D1( string X, string Y, int d3 ,.... ); // few other paramter of this calls

    void setType( );

    friend ostream& operator << (ostream& os, const D1& m );
    friend istream& operator >> (istream& is, D1& m );
    friend ofstream& operator << (ofstream& os, const D1& m );
    friend ifstream& operator >> (ifstream& is, D1& m );

    
private:
    void setSnow( ); // this is a private function that sets the
                     // bool snow variable to true or false, depending
                     // on the value stored in height

    int X1
    bool X2;
    string X3;
    string X4;
};

And a list through which i have ti insert all

list<BX*> eList;

Now i want to read in the contents of a data file ( in text ) …

Kamal_Java 0 Newbie Poster

how do i do bubble sort when i have two different objects in that array..

Kamal_Java 0 Newbie Poster

Hi ... [ Need ur suggestion NOT code .... ]

This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ...

I have two classes Named Passenger class and container class .

Passenger class has its own variables like passenger name ( String ) , ID ( int ), and Injury Level (An enum class which has priority like CRITICAL ,MODERATE,SLIGHT,NONE ).

Employee class has its own variable like containerID ( int ) , and ContainerType ( this can be one of the three types URGENT , IMPORTANT , or GENERAL - these are from enum class )

I will be taking this passenger details[ has 100 of passenger details ] and container details [ 100 of container ] from a file and write to a single Array . I used Object array Object[] array as advised in this form to store different objects [Passenger and Conatiner] . Now i want to sort this array based on criteria as mentioned below.

1. Sort People , most Highest priority first .
- This must sort the array in such a way that highest priority first ex:CRITICAL followed by MODERATE and so on ... Container are placed after sorted passengers.

2. Sort Containers ,most urgent first.
- This must sort the URGENT Container first followed by IMPORTANT and so on ... Any passenger are placed after …

tejaswi438 commented: I have the same problem with my assignment,can you please help me to know, how to sort an array of objects based on alphabetical order +0
Kamal_Java 0 Newbie Poster

remember that an array of objects' does not have to be 'Object[] row = new Object[int x];

what does it mean ......
Should i be doing Object[] obj = new Object[10];
obj[0] = new Passenger( );
obj[1] = new Container( );

Kamal_Java 0 Newbie Poster

Hi ... [ Need ur suggestion NOT code .... ]

This is one part of my assignment .. I need your help on how to do this . Below is my short description of my problem ...

I have two classes Named Passenger class and container class .

Passenger class has its own variables like passenger name ( String ) , ID ( int ), and Injury Level (An enum class which has priority like 1 , 2 , 3 and 4 ).

Employee class has its own variable like containerID ( int ) , and ConatinerType ( this can be one of the three types URGENT , IMPORTANT , or GENERAL - these are from enum class )

I will be taking this passenger details[ has 100 of passenger details ] and container details [ 100 of container ] from a file and should write to an Array . Here comes my question.

1. How do i store the Passenger and Container class object in an single array.

[ Note : There must be only one array , not a separate array for passenger and a seperate array for containers.]

Hope i have given clear description of the problem ...