Forum Replies Created

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • in reply to: Global module in C# #3656
    will
    Participant

    There is no such thing in C# instead you can create a public class in any namespace with Static Members functions like:

    in reply to: Tree traversal #3288
    will
    Participant

    Hello
    You will need to use this function recursively and mantain the visiting of the nodes. you will need to keep track of all the nodes which have been traversed and on that criteria you will call this dunction. At the moment you are just calling this function from any location and it gets stuck in loop. So in order to break that loop you will need a criteria to break the loop. And that criteria can be fulfilled by using another linked list or a variable which will hold the number of nodes traversed and then compare that variable with the actual number of nodes of the tree.
    Hopefully this answers your question.

    in reply to: creating strip chart in c #3244
    will
    Participant

    Can you show us the code you have written to generate the scope chart.

    in reply to: doubt on comparision operator #3231
    will
    Participant

    @drop2kumar wrote:

    Hi
    the followiing code is giving 1 as answer but answer should be 0 …becoz 0.7 is not grater than 0.7

     
    Actually you are comparing the float type variable with a value which can be any thing. It can be an integer, float or any thing else. So in that case compiler does not know about the type.
    Now if you explicitly mention the type of both the variables and then compare them the result would be according to your expectations. Hopefully this would clear your doubt.

    in reply to: Graphics Animation #3199
    will
    Participant

    Please refer to the post: https://www.mycplus.com/forum/forum_posts.asp?TID=225&PN=1

    Which shows a small demo program of how to create a simple animation in C Language.

    in reply to: simple #3229
    will
    Participant

    Hello
    Refer to : https://www.mycplus.com/forum/forum_posts.asp?TID=225&PN=1
    for graphics animation. Its a simple demo program which will give you an idea how to create the animation.

    in reply to: animation #3227
    will
    Participant

    Hello
    Here is a portion of a program for “Bank managgement system” which I worte while I was in my Bachelors of IT. To make an animation in C Language you will need to create the image at run time and move that image on the screen. What i have done is created a bitmap using circles, arcs & different colors, and tried to make some sort of a logo, then put the whole graphics area in an image using getimage() function & used putimage() to show the image on the screen. To make an animation in C Language I have put this image in a loop which animates the image  on the screen in scrolling mode.

     
    Also I have made another animation which makes a complete line from a single point.

     
    And at the end I have made another animation effect using the line() function again.

     
    Below is the main source code of the complete animation. You can modify it according to your needs.
     

    in reply to: i got problem at system() function usage #3180
    will
    Participant

    It’s because of the improved security in Windows XP or Windows 200. The functions like

    • inp() [/*:1cuthl9v]
    • utp()[/*:1cuthl9v]
    • system();[/*:1cuthl9v]

    does not work on an NT platform.
    There may be some other problems, but  I think using win 98 would resolve the problem.

    in reply to: Calling function with main() #3136
    will
    Participant

    Thanks spsinghs for explanations.

    in reply to: Windows, Mac or Linux? #3121
    will
    Participant

    wel its an endless discussion that what is best?
    Answer to this question would be
    Both are best (for the one who is using it) :)
    Any how different people may have different ideas?
    Lets see how people think about it?

    in reply to: Pointers to Member Functions #3119
    will
    Participant

    Ahsun that was a nice tutorial.
    But it would be very best if you mention the website address from where you get that tuorial so that the users can have a look at it & may benifit from that site also.

    Any how Good work. Whenever you find any good tutorial please do post them here.

    Thanks
    Saqib

    in reply to: Why people are not interested in Discussions #3110
    will
    Participant

    wel I have made this website to help people like Zohaib who study C/C++ programming language. I am trying my best to provide quality material on this website.
    like Tutorials, source code, free utilities and other contents.
    Looking for any comments about the website from you people.
    Thanks
    Saqib

    in reply to: Smart pointers… #3111
    will
    Participant

    Smart pointers are C++ objects that simulate simple pointers by implementing operator-> and the unary operator*. In addition to sporting pointer syntax and semantics, smart pointers often perform useful tasks—such as memory management or locking—under the covers, thus freeing the application from carefully managing the lifetime of pointed-to objects.

    The simplest example of a smart pointer is auto_ptr, which is included in the standard C++ library. You can find it in the header , or take a look at Scott Meyers’ auto_ptr implementation. Here is part of auto_ptr’s implementation, to illustrate what it does:

    You can find many readings on smart pointers. I have found two very interesting readings on smart pointers.

    http://ootips.org/yonat/4dev/smart-pointers.html
    http://www.informit.com/articles/article.asp?p=31529

Viewing 13 posts - 1 through 13 (of 13 total)