Search:

Type: Posts; User: k4z1nh0

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    2,035

    Structure Dynamic with File Write

    my problem is in this code that do for the morning for allocate structures conform the user want. After allocated, he write to the file entred as second argument in the call of program in mode text(I...
  2. Thread: Menu

    by k4z1nh0
    Replies
    4
    Views
    1,594

    use the function scanf in form correct: this...

    use the function scanf in form correct:
    this correct is:
    scanf("%s",str); //for strings
    scanf("%d",&d); //for integers and floats and doubles



    #include <stdio.h>
    #include...
  3. Replies
    4
    Views
    2,037

    change color text?

    hi people!
    my question is how change the color of text that i send to stdout(display screen) in my linux.
    What is the function and in that header file is on?

    Tnks!
  4. Replies
    3
    Views
    1,559

    here go! int main(){ char ch;...

    here go!


    int main(){
    char ch;
    printf("Press one key for continue...");
    while((ch=fgetc(stdio))!='\n');
    printf("You hit the key %c!",ch);
    return 0;
    }
  5. Replies
    6
    Views
    1,422

    hi are u right??? man you have pointers, then...

    hi are u right???
    man you have pointers, then use so: scanf("%d",str).
    see you code again below.


    char str[SIZE];
    char patt[SIZE];
    char repl[SIZE];
    char res[SIZE];
  6. Replies
    15
    Views
    3,552

    man go to www.freeprogrammingresources.com that...

    man go to www.freeprogrammingresources.com that in there you find various tutorials of C and diverses languages of programmation, you find inclusiv www.cprogramming.com hehehe ;)
    good luck.
  7. hi. man this error is in pointer that you are...

    hi.
    man this error is in pointer that you are accessing by means of operator unary "&".
    In this part of code, pay attention and write again:


    for(count = 0; count <= (n-1); count++){
    ...
  8. Replies
    7
    Views
    12,215

    hi man. the advantage is the efficiency in...

    hi man.
    the advantage is the efficiency in access address in memory directly in functions....the method of indexation of vector is most waste that this, because the access with pointer work directly...
  9. Replies
    5
    Views
    1,304

    code error[return of function]

    hello. my problem is in this code that i write to tes my knowledge of programmer of pointer and allocation dynamic. here go the code.


    #include<stdio.h>
    #include<stdlib.h>...
  10. Thread: Clear Buffer

    by k4z1nh0
    Replies
    1
    Views
    1,473

    Clear Buffer

    hi people.
    I'm with one duvid.
    this ask if about the function __fpurge(FILE *STREAM);
    is secure use this function to clear buffer?
    if yes, then anyone can use him in your codes, because simplify...
  11. Replies
    6
    Views
    1,340

    thks, but the problem persists and problem not is...

    thks, but the problem persists and problem not is in NULL TERMINATOR, the point is:
    when the program askme "Digite uma String: ", the correct will be if he showme a cursor posicioned right of this...
  12. Replies
    6
    Views
    1,340

    sorry here go the code correct that generate...

    sorry here go the code correct that generate error.


    #include<stdio.h>
    #include<stdlib.h>
    int main(){
    int *p,
    num;
    char *entrada;
    p = (int...
  13. Replies
    6
    Views
    1,340

    allocation dynamic

    hi.
    my ask is this:
    when i alloc memory in my code with function malloc of library <stdlib.h>
    and i going use him...this not work...look my code testing malloc:


    #include<stdio.h>...
  14. Replies
    6
    Views
    6,333

    hi guy! printf("\n\n\tPlease enter the...

    hi guy!


    printf("\n\n\tPlease enter the weekly price of the newspaper: ");
    fflush(stdin);
    scanf("%f",&paper[toprec2].price);
  15. Replies
    3
    Views
    1,330

    this void * buffer is a pointer to parameter...

    this void * buffer is a pointer to parameter buffer.
    The function fread reads nmemb elements of data, each size bytes long, from the stream pointed to by stream, storing them at the location given...
  16. Replies
    13
    Views
    5,045

    hi man. this problem is equal my problem, this...

    hi man.
    this problem is equal my problem, this link answer your question in relation with the function gets.
    http://www.eskimo.com/~scs/C-faq/q7.1.html

    I'will wait to have help you!
  17. Replies
    5
    Views
    1,340

    obs.:The variable of type int have 2 bytes(16...

    obs.:The variable of type int have 2 bytes(16 bits) man...or im wrong?
  18. Replies
    2
    Views
    898

    compiling with gcc in linux error

    hi people ok??
    im from brazil and I new in here...and have one ask.
    when i compile my simple program in C(gcc in my linux) he generate one messege of erro in screen!
    Look the error:...
Results 1 to 18 of 20