Search:

Type: Posts; User: Rhodium

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    2,271

    Advanced but yet general

    Hello everyone,
    I have now finished the 'Sams Teach Yourself C for Linux Programming in 21 Days' book. now I'm looking for something more advanced but every advanced level book that I find is about...
  2. Replies
    6
    Views
    1,308

    Well, as I said I don't really understand the...

    Well, as I said I don't really understand the difference that Pedro's code makes but it works perfectly.


    It seems to me like this code will only copy the first character because after it does,...
  3. Thread: Header file

    by Rhodium
    Replies
    8
    Views
    989

    Sams Teach Yourself C for Linux Programming in 21...

    Sams Teach Yourself C for Linux Programming in 21 Days.

    Thanx for the manual, mart.

    What is your book, chrismiceli?

    Thanx
  4. Replies
    6
    Views
    1,308

    Thanx, Pedro: It is solved. Could you explain to...

    Thanx, Pedro: It is solved.
    Could you explain to me what the problem was!?
    I mean, in my old way, shouldn't the programme first check for end of file and then copy a character? I don't really...
  5. Replies
    6
    Views
    1,308

    File Copying function

    Hi everyone,
    I wrote a programme to copy the contents of one file into another and I agree that I wrote some useless and extra code. The programme works fine except that it adds an extra ÿ at the...
  6. Thread: Header file

    by Rhodium
    Replies
    8
    Views
    989

    The only preprocessor directives covered in my...

    The only preprocessor directives covered in my book were:
    #if
    #elif
    #else
    #endif
    defined() // an operator
    and
    #undef

    I can understand what the others are (like ifndef = if not defined)...
  7. Thread: Header file

    by Rhodium
    Replies
    8
    Views
    989

    Header file

    Hi all,
    Could you tell me if the following header file prevents multiple inclusions of this file?



    Thanks a lot for your help
  8. Replies
    5
    Views
    1,800

    You are right.

    Yes Hammer, you are right case 3 is a menu option.
    For everyone who is confused, this is the output I get when I choose option 3.


    3 enter
    Are you sure you want to quit?
    Are you sure you...
  9. Replies
    5
    Views
    1,800

    Loop problem: Asks a question twice!!!

    Hi everyone,
    could someone please tell me WHY THE 'Are you sure you want to quit?' question gets asked twice, I've trid to put every possible condition on it but no matter what it is asked twice:
    ...
  10. Replies
    8
    Views
    1,552

    Thanx

    The purpose of the programme was practicing and experimenting with pointers!!!





    Thanx for all the helps...appreciated.
  11. Replies
    8
    Views
    1,552

    OK. There's the CODE tag. Anyhow, Thanx...

    OK. There's the CODE tag.

    Anyhow, Thanx XSquare, That problem is solved now.

    However, another one's come up:
    Could someone tell me what's wrong with this code:



    #include <stdio.h>
  12. Replies
    8
    Views
    1,552

    Double Pointer Trouble

    The following programme is supposed to use pointers totype double variables to accept 10 numbers, sort them, print them.



    /* D14Ex7.c - programme to use pointers to type double to accept 10...
  13. Thread: ? and :

    by Rhodium
    Replies
    12
    Views
    1,234

    ? and :

    could someone tell me what each part of the following line does?


    compare= (sort_type) ? reverse : alpha;

    Thanx
  14. Thread: Printer Stream

    by Rhodium
    Replies
    0
    Views
    1,274

    Printer Stream

    Does anyone know the printer stream for LINUX? Like stdprn for DOS!

    Thanx
  15. Replies
    2
    Views
    1,668

    SAM'S Teach Yourself C for Linux Programming in...

    SAM'S Teach Yourself C for Linux Programming in 21 Days
  16. Replies
    2
    Views
    1,668

    What is [ic:ccc]!?

    In a listing in my C book, there was code that was unexplained for a while loop that looked like this:

    while ( n < MAXLINES && fgets(buffer, 80, stdin) != 0 &&
    [ic:ccc]buffer[0] != '\n')...
  17. Replies
    6
    Views
    1,487

    YES ................. IT FINALLY WORKED THANK YOU...

    YES ................. IT FINALLY WORKED THANK YOU ALL FOR HELPING >>> SPECIALLY POLYMORPHIC OOP>>> RHODIUM

    Thanks to All, it took me too weeks to get it working!
  18. Replies
    6
    Views
    1,487

    This is the code I wrote trying to use malloc (...

    This is the code I wrote trying to use malloc ( and I didn't free the allocated space 'cause I didn't know how to ). The code is error free to the compiler but the output is still not what I...
  19. Replies
    6
    Views
    1,487

    Thanx a lot Polymorphic OOP, As I said, I...

    Thanx a lot Polymorphic OOP,

    As I said, I changed a lot of things trying to fix numerous problems - the problems were a page long at the begining! - so for example I used to use malloc() but after...
  20. Replies
    6
    Views
    1,487

    I just don't get it!

    Can someone tell me what's wrong with the following?
    Do you think that my assignment 'makes integer from pointer without a cast' on line 22? That's what gcc seems to be thinking

    #include...
  21. entire code

    Thanx a LOT personification,

    That made a lot of things clearer; thanks....
    just so you'd know, this is the entire code

    #include <stdio.h>
    #include <string.h>

    char *a = "was--up?";
    char *b...
  22. functions declaration, pointers, cast, .... CONFUSING

    Hi all,

    I'm in the most confusing period of learning the C language. What's worse is that my book keeps writing exercises using commands and method that have not been taught yet! Anyhow, could...
  23. Replies
    4
    Views
    1,760

    Thanx

    Thanx,
    I'll try that but I think I've already tried 'return;' with nothing in front of it but it doesn't hurt to try again...
  24. Replies
    4
    Views
    1,760

    Return / Exit Issue

    Hi all,
    This is my first post here! I have two questions:

    1. I'm learning C by using 'Sams Teach yourself C for Linux Programming in 21 days'. I have finished the first week and have...
Results 1 to 24 of 24