Search:

Type: Posts; User: cmay

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Thread: Logic approach

    by cmay
    Replies
    14
    Views
    1,321

    i cant see that well. i have a eye condition so...

    i cant see that well. i have a eye condition so bear with me if i am wrong. but it seems like you are opening the same file using two different functions at the same time and the error message cant...
  2. Thread: Finding OS

    by cmay
    Replies
    13
    Views
    2,557

    it does not i guess. hence the attempt to get...

    it does not i guess. hence the attempt to get back to bed to avoid explaining why i did not read the tread before i posted properly .


    #ifdef _WIN32
    #define OS "windows\n"
    #include...
  3. Thread: Finding OS

    by cmay
    Replies
    13
    Views
    2,557

    if i did not have the flu i think i might have...

    if i did not have the flu i think i might have waited with posting until i was sure i understood the question right. this works on linux. i think there is a mentioning of this is the k&r book. all...
  4. Thread: Finding OS

    by cmay
    Replies
    13
    Views
    2,557

    this should work on all unix and unix-likes. i...

    this should work on all unix and unix-likes. i dont know if windows has something similar to this.


    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <errno.h>
    #include...
  5. Replies
    4
    Views
    7,944

    i use this template from here . Example of...

    i use this template from here . Example of Getopt - The GNU C Library there is a long option also.

    this little program is how i would have done it as a hello world program but i am not sure if...
  6. Replies
    7
    Views
    1,473

    thanks. i completely forgot the break...

    thanks.

    i completely forgot the break statements. it was just a rather hello world like project i started out last night so i just posted what i got from before i went to bed.

    sorry the...
  7. Replies
    7
    Views
    1,473

    is this right way to use malloc.

    i would like to ask if this is the right way to use malloc or if i am doing anything wrong.
    i just turned the page about structures a few days ago in the book i am using.
    thanks for the time to...
  8. you could try something like this. its been...

    you could try something like this.
    its been very long since i touched c++ so i hope its correct.


    #include <cstdlib>
    #include <ctime>
    #include <iostream>

    using namespace std;
  9. Replies
    18
    Views
    7,243

    thanks. i know perl would be better. i just...

    thanks.
    i know perl would be better. i just learning c right now as the first language so i wont jump over to perl right now.

    later when i feel i can master c a lot better i plan to learn perl....
  10. Replies
    18
    Views
    7,243

    cgi scripting using c

    HowStuffWorks "How CGI Scripting Works"
    this i think was a bit interesting and i would like to get some better tutorials for cgi scripting using c.

    anyone knows of good tutorials. ?

    thanks...
  11. Thread: getopt()

    by cmay
    Replies
    1
    Views
    2,486

    i only know getopt function from here. Getopt...

    i only know getopt function from here. Getopt Long Option Example - The GNU C Library

    there is a long options example which i linked to.
  12. Replies
    7
    Views
    9,919

    reason i asked is that i read this book The...

    reason i asked is that i read this book The Practice of Programming - Google Bøger

    and there is lots of examples of idioms but the book is getting a bit old. i bought the book second hand and i...
  13. Replies
    7
    Views
    9,919

    commonly used idioms

    i only know a few common idioms.
    how many commonly used idioms are there in c.
    these are the ones i can think of right now.


    while((c=getchar()) != EOF )



    for(i=1;i < argc;i++)
  14. Replies
    5
    Views
    6,281

    I need some header files from Borland Turbo...

    I need some header files from Borland Turbo C++!!! - C and C++ - Forums at ProgrammersHeaven.com

    i think its written for the borland turbo c++ compiler. above is a link to a post with same...
  15. Replies
    7
    Views
    4,226

    i found this article which i think is interesting...

    i found this article which i think is interesting
    Command-Line Options
  16. Replies
    7
    Views
    4,226

    i am not sure i understand the question exactly...

    i am not sure i understand the question exactly but i am in the same stage as you.
    last night i could not sleep so i wrote this little program to experiment with the options. i never tried use long...
  17. Thread: error handling[c]

    by cmay
    Replies
    4
    Views
    1,283

    thanks. i found all the error codes in linux...

    thanks.
    i found all the error codes in linux using cat command and i figure there must be almost identical error codes for solaris and other *nix systems as the error codes should be same as in the...
  18. Thread: error handling[c]

    by cmay
    Replies
    4
    Views
    1,283

    thanks. i sometimes use the get opt function so...

    thanks.
    i sometimes use the get opt function so i might as well just use the same message as it gives if an invalid argument is been giving. i did however think there was a standard error code...
  19. Thread: error handling[c]

    by cmay
    Replies
    4
    Views
    1,283

    error handling[c]

    hi.
    i am learning about error handling as of now and i have a simple question.
    when consider this program i made to test the error messages , what error should be used for the initial if no...
  20. Replies
    13
    Views
    2,514

    i think nonoob answered the question. i am...

    i think nonoob answered the question.

    i am learning c as a hobby and i study the old unix systems as i find them very interesting so what i do is i get some source code from books or online and i...
  21. Replies
    13
    Views
    2,514

    exactly one reason why i want to do this. i...

    exactly one reason why i want to do this.
    i have already taken the most simple programs and rewritten them and some of them a couple of times. wc as example i written more than one version of.
    ...
  22. Replies
    13
    Views
    2,514

    learning c from old k&r code

    i found these files and started to study and update /rewrite them to learn from it.
    V7/usr/src/cmd/yes.c

    i have however a question. i noticed there is no license .no comments, and besides from...
  23. Replies
    18
    Views
    42,558

    thanks for the time all of you. it means a lot to...

    thanks for the time all of you. it means a lot to me to get these answers.

    my background for wanting to learn programming is that i have been sick for some years so i dont work anymore and i sit...
  24. Replies
    18
    Views
    42,558

    ok. thanks for the input. this statement makes...

    ok. thanks for the input.
    this statement makes me relax a bit i think. its nice to get ones ambitions put in perspective from those who have a small lifetime of experience.

    thanks for your time:)
  25. Replies
    18
    Views
    42,558

    i think when i can remember and i use regular the...

    i think when i can remember and i use regular the whole language with out looking in the books and i know the ins and outs well enough to being able to write a program that i would like to write...
Results 1 to 25 of 53
Page 1 of 3 1 2 3