Search:

Type: Posts; User: delphi

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,053

    a fast and easy c reference guide is what i...

    a fast and easy c reference guide is what i needed :)

    nice work :D
  2. Replies
    5
    Views
    1,053

    Oh my god !!! Really Fast Reply :D I'm so...

    Oh my god !!!

    Really Fast Reply :D

    I'm so stupid.. I didn't know about that precedence :(

    Anyway, Thank you very much :) Now it woks !

    I've del.icio.used your website :D
  3. Replies
    5
    Views
    1,053

    Problem with Dynamic Array

    Hi All.. I cannot find the mistake in this code.


    #include <stdio.h>
    #include <stdlib.h>

    void create_vect (int** v) {
    *v = (int *) malloc(2 * sizeof(int));
    *v[0] = *v[1] = 85;
    }
  4. Thx Ancient..

    Thx Ancient..
  5. Insert a Node In a Linked List using 2 or more sort criteria ?

    Hi all...

    I know how to insert a node into a linked list using 1 criterion

    But if, for example, i have to insert a node using 2 criteria like, e.g., surname and name, so the list will be...
  6. Replies
    38
    Views
    6,448

    hehe lol :P Actually i've already read that...

    hehe lol :P

    Actually i've already read that faq some months ago but i didn't remember ..
    hehe sorry :P
  7. Replies
    38
    Views
    6,448

    Ahh..... ok :) But... so it works only...

    Ahh..... ok :)

    But... so it works only because ctrl Z (windows) can be contained in a char

    I mean.. if i run it on unix, where EOF is return ctrl Z, it should'n work.. right ?
  8. Replies
    38
    Views
    6,448

    actually u continued to say that the code is...

    actually u continued to say that the code is wrong.. can u write the best code ever for this kind of problem pls ? :rolleyes:
  9. Replies
    38
    Views
    6,448

    Ehm... what's wrong with char c ?; do u want...

    Ehm... what's wrong with char c ?;

    do u want an unsigned char ? :O
  10. Replies
    38
    Views
    6,448

    char c; while ((c = fgetc(f))!=EOF){ ...

    char c;




    while ((c = fgetc(f))!=EOF){

    if (c=='\n')
    count++;
  11. Replies
    38
    Views
    6,448

    Since i'm noob.. could u write the best code in...

    Since i'm noob.. could u write the best code in your opinion :O
  12. Replies
    38
    Views
    6,448

    well.. ok.. feof shouldn't be used.. then i can...

    well.. ok.. feof shouldn't be used.. then i can use this




    char c;

    while ((c = fgetc(f))!=EOF){

    count += (c == '\n');
  13. Replies
    38
    Views
    6,448

    well.. yes.. i already know how my file is...

    well.. yes.. i already know how my file is formatted (one string per line)... however it's better to code a general case, which will work for every case
    ...
  14. Replies
    38
    Views
    6,448

    How to get the number of lines in a file

    Hi all...

    How can I get the numer of lines in a file ?

    A solution is:

    char string[20
    int counter = 0;

    f = fopen ("blabla.txt", "r");
  15. Thread: "on key press"

    by delphi
    Replies
    8
    Views
    2,044

    thank you so much all :)

    thank you so much all :)
  16. Thread: "on key press"

    by delphi
    Replies
    8
    Views
    2,044

    Thx :) I've tried this ...

    Thx :)

    I've tried this


    while(!kbhit('c')) printf( "u didn't press c"); and it works :)

    Does it work also for a combo like CTRL + Z ? If Yes, how ? :D
  17. Thread: "on key press"

    by delphi
    Replies
    8
    Views
    2,044

    sorry very much :D Windows XP and...

    sorry very much :D

    Windows XP and Dev-C++(Mingw compiler)
  18. Thread: "on key press"

    by delphi
    Replies
    8
    Views
    2,044

    "on key press"

    How to know when a key from the keyboard is pressed ?

    (PS: i cannot use the return key, just ONE key)

    Thx in advance
Results 1 to 18 of 18