Forum Replies Created

Viewing 15 posts - 1 through 15 (of 93 total)
  • Author
    Posts
  • in reply to: can we make program without header files? #3645
    GWILouisaxwzkla
    Participant

    You could do this if you choose to write everything from scratch ( you will need to write your own input / output functions in assembly language for DOS I’m not sure if you can do this for Windows , though ). I’ll see if I can write an example latter…..

    in reply to: Lvalue and Rvalue #3650
    GWILouisaxwzkla
    Participant

    For an R-value violation you could do this:

    pretty sure that would constitute a R-value violation…….

    in reply to: Lvalue and Rvalue #3648
    GWILouisaxwzkla
    Participant

    An L-value violation is easy , just put a constant on the left hand side of an equation:

    You need something that is assignable for a L-value. R-value violations are tougher , I’ll have to look into this…….

    in reply to: C++ Data files #3641
    GWILouisaxwzkla
    Participant

    Could you post your data file?

    in reply to: plzzz help…….it doesn’t evaluate right……! #3642
    GWILouisaxwzkla
    Participant

    Heres a postfix to infix program I have on my drive ( hope this helps….. ):

    in reply to: plzz help me out ……….. #3636
    GWILouisaxwzkla
    Participant

    Could do this:

    in reply to: Array Problem #3639
    GWILouisaxwzkla
    Participant

    Unless theres a new C++ standard , you cannot declare arrays of an arbitrary length ( the length must be declared as a constant so the compiler knows how to set up the function’s stack frame at compile time ). So you can’t do this ( I’m suprised this compiled, what compiler are you using ?):

    If you want a arbitrary length array you have to allocate it at run time , like:

    make sure to check allocation of this statement and delete the memory when your done with it ( by the end of the function call )………

    in reply to: clrscr(), window(), textcolor() etc. not in conio.h? #3635
    GWILouisaxwzkla
    Participant

    Theres a seperate debugging utility called “turbo debugger” or something. Its a small DOS box utility that debugs object files made with Turbo C++ , as I remember. Heres a link to some info on this http://www.winprog.org/tutorial/bcpp.html

    in reply to: clrscr(), window(), textcolor() etc. not in conio.h? #3633
    GWILouisaxwzkla
    Participant

    I haven’t used this compiler for a looong time , but as I remember you have to do a few small things to configure it or it will not work properly. Heres a link that shows how to configure it http://edn.embarcadero.com/article/21205 , you can also google set up Borland command line tools .

    in reply to: clrscr(), window(), textcolor() etc. not in conio.h? #3631
    GWILouisaxwzkla
    Participant

    The functions clrscr(), ect. are exclusive to the Borland Turbo Compiler. I think the easiest way to compile the code would be to download the free Borland Command Line Tools Package ( I think you can find it here: http://edn.embarcadero.com/article/20633 ) or just google free Borland Command Line Tools Package download. You could also write your own replacement functions and add them to the one of the VC++ library ( could code these using Windows API calls for 32-bit Windows applications ).

    in reply to: Assistance with Question #3629
    GWILouisaxwzkla
    Participant

    Could you perhaps post the input file for your program?

    in reply to: Assistance with Question #3627
    GWILouisaxwzkla
    Participant

    What does your input file look like? What criteria is used to select samples ( randomly ).

    in reply to: Structures and Algorithms in C++ #3624
    GWILouisaxwzkla
    Participant

    Not sure what your doing. Does this relate to linked lists?

    in reply to: Structures and Algorithms in C++ #3622
    GWILouisaxwzkla
    Participant

    Heres a simple version ( the items are entered into the list from the back )

    in reply to: Structures and Algorithms in C++ #3620
    GWILouisaxwzkla
    Participant

    could try:

Viewing 15 posts - 1 through 15 (of 93 total)