Thursday, July 30, 2009

I have Turbo C and C++ in my computer but it is not working properly.?

It gets eeroe right from line 1 saying # is an illegal word. Help me!

I have Turbo C and C++ in my computer but it is not working properly.?
Your qustion is not clear. You have to say whats your Operating system, Turbo version..


Try just compiling. and running the following which doesnt need any header.





void main()


{


}





If this works print a string. and use its header. and see you installed things properly. Or use a different bundle of Turbo.
Reply:It's hard to tell without seeing what you're talking about, but try this:





# is used to denote C/C++ pre-processor directives such as if, endif and define, BUT there must not be any space between the # and the directive. In other words, #define is legal, but # define will cause an error similar to the one you're reporting.





Hope that helps.
Reply:uninstall all your c/c++ compilers/ides


and install this http://prdownloads.sourceforge.net/dev-c...


if you're on windows.


it should work ok.


if you're on linux install gcc/g++

hollyhock

No comments:

Post a Comment