Hi All,
           I have a class with name x and also a function ( independent of class) with same name. In main function I tried to declare an object for my class ( I thought we cann't assaign variable for a function with out declaring a prototype with typedef for a needed syntax). But I am getting error. Could any one of you explain what is the priority for memory allocation .
#include "stdafx.h"

void x()
{
    cout<<"Hai";
};
class x
{
public:
    x()
    {
    }
};
int main(int argc, char* argv[])
{
    x t;
    return 0;
}





GopiKrishna Komanduri
Software engineer
NCR Corporation PVT Ltd.
Policelanes
Begumpet
Hyderabad
9849124680
[EMAIL PROTECTED]
[EMAIL PROTECTED]

 


Yahoo! Music Unlimited - Access over 1 million songs. Try it free. __._,_.___

To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>.




SPONSORED LINKS
C programming language Programming languages Computer programming languages
Java programming language


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to