Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   help me plzz (http://www.go4expert.com/forums/help-me-plzz-t28341/)

alienkhan 7May2012 18:42

help me plzz
i want to creat a header file in c++ using borland 5.02 plz help me indetail...if any one can

xpi0t0s 8May2012 13:37

Re: help me plzz
File -> New. Save as filename.h, in the directory you want it.

alienkhan 8May2012 19:06

Re: help me plzz
i code a program like this

first i creat a file with add.h that is a header file
after that
i created a add.cpp file in which i mention a detail of a function that is to perform by an add function
after that
i code a main function in which i call a header file
but it is giving a error of . invelid like some thing

xpi0t0s 8May2012 20:17

Re: help me plzz
". invelid like some thing"

Riiiiiiiiiiiiight. That's really clear.
Cos I'm a bit dumb, could you post the exact error?

sumtaru 17May2012 19:37

Re: help me plzz
First you create a header file, say add.h and put your declarations and functions there without main.
Then create add.cpp and include your header file like this #include "add.h".Write main function and
access data and functions from the header file.

alienkhan 17May2012 19:44

Re: help me plzz
thanks dear
but i do all tricks
i created in c
but i fail to create it in c++

i will post the code later . at present i did not have the code.
thanks for coperation

hRob 18May2012 16:10

Re: help me plzz
Copy paste is king. Please copy and paste whatever u have written, both .h and .cpp files, so that we can take a look and get back to you.

All times are GMT +5.5. The time now is 14:16.