Search:

Type: Posts; User: vikasgp

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    1,094

    I was trying to do the same thing sometime ago....

    I was trying to do the same thing sometime ago. If you want to graph arbitrary functions, you'll have to "parse" the user-given expression. If all you want are simple equations like just +,-,*,/...
  2. Replies
    13
    Views
    2,666

    You are a heretic and should be shot ;)

    You are a heretic and should be shot ;)
  3. Replies
    9
    Views
    3,484

    Python is an easy langauge to learn, and combines...

    Python is an easy langauge to learn, and combines well with C. You can use python for most tasks, and if something can't be done in Python or if it is too slow, you can write that part only in C and...
  4. Thread: Typing speed

    by vikasgp
    Replies
    29
    Views
    9,104

    I've thought, man, I need to learn touch typing.

    I've thought, man, I need to learn touch typing.
  5. Thread: Date and Time

    by vikasgp
    Replies
    19
    Views
    4,963

    It should be interrupted from the...

    It should be interrupted from the keyboard(Ctrl-c, for example).

    The standard I/O streams are buffered, which means you can't assume that data will be written immediately after the function call....
  6. Thread: what is wrong?

    by vikasgp
    Replies
    6
    Views
    1,192

    EOF != '\0' generally; it's usually -1. You...

    EOF != '\0' generally; it's usually -1. You should never use the absolute value, though.
  7. Thread: Why C?

    by vikasgp
    Replies
    32
    Views
    4,627

    Either K or R said something like: " It's...

    Either K or R said something like:
    "
    It's actually easier to program in a language that doesn't have every feature" ;)
  8. Replies
    2
    Views
    1,110

    KDE's KDevelop has reference documentation for C...

    KDE's KDevelop has reference documentation for C and C++ library functions, IIRC.
  9. Thread: microsoft's f#

    by vikasgp
    Replies
    13
    Views
    3,700

    Poll: To that might be added, Yet Another Buzz Word

    To that might be added,
    Yet Another Buzz Word
  10. Replies
    61
    Views
    14,206

    Well, to *do* differentiation/integration you...

    Well, to *do* differentiation/integration you certainly need to know trig identities. But just to *understand* the concept of a derivative or integral, you don't need that. Identities can always be...
  11. Replies
    6
    Views
    1,381

    C++ makes it easier to follow use a programming...

    C++ makes it easier to follow use a programming paradigm called "object oriented programming". C++ is a super-set of C, which means (almost) all C features work exactly the same way. So yes, you...
  12. Replies
    2
    Views
    1,910

    Believe me, it's not. While it may be powerful,...

    Believe me, it's not. While it may be powerful, no program is small enough not to use it. It's really simple to use, and gives your app a lot of things for free. I added gnu history support to a...
  13. The order in which arguments to a function are...

    The order in which arguments to a function are evaluated is not guaranteed. So *never* write code that depends on it.
  14. Replies
    1
    Views
    1,566

    Perhaps system("foo"); is what you want ?

    Perhaps system("foo"); is what you want ?
  15. Replies
    8
    Views
    2,542

    While it might not be the thing for a beginner,...

    While it might not be the thing for a beginner, if you at all want to understand C well, you must eventually read the bible, K&R's "The C Programming Language".
  16. Thread: grep

    by vikasgp
    Replies
    2
    Views
    1,499

    GNU grep is available from http://www.gnu.org

    GNU grep is available from http://www.gnu.org
  17. Replies
    16
    Views
    3,941

    One use of unions is to use them as a "generic"...

    One use of unions is to use them as a "generic" type to hold one of many related struct's. For example, the GDK library(a graphics library on top of X) uses a union to hold structs for...
  18. Replies
    7
    Views
    2,088

    Thanks for pointing that out. However... From...

    Thanks for pointing that out. However...
    From the libc info:


    Also, in all the code I've seen, the result is casted.
  19. Replies
    7
    Views
    2,088

    malloc returns a pointer to a chunk of memory of...

    malloc returns a pointer to a chunk of memory of the requested size. Hence, you must declare a pointer like:

    my_struct *m;

    and use it to hold the return value. Also, malloc returns a (void *),...
Results 1 to 19 of 19