Search:

Type: Posts; User: dekl

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    892

    How should I use fgets() ?

    How should I use fgets() ?
  2. Replies
    3
    Views
    892

    Read a text line by line

    Hello, I would like to make a function, void read_line(File *f, char line[]), that does taht :
    It will read a line of a file (already opened) replacing the last \n by the char of the end of a string...
  3. Replies
    12
    Views
    1,761

    true that it is more logical this way... ...

    true that it is more logical this way...


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

    int main (int argc, char*argv[]){
    int i,j;
    int length;
    char *argx;
  4. Replies
    12
    Views
    1,761

    true that it works like that but then what is...

    true that it works like that but then what is strcpy for ?


    here is the final working program!


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

    int main (int argc, char*argv[]){
  5. Replies
    12
    Views
    1,761

    oh right, sorry for the spelling as you can tell...

    oh right, sorry for the spelling as you can tell it is not my native language...

    how can I use only argv[i] ? wont it make a two dimention table if I say argv[i][length] ?

    thanks again for the...
  6. Replies
    12
    Views
    1,761

    Well I did that, and I am sure it is not what you...

    Well I did that, and I am sure it is not what you expected me to do knowing that it doesn't work...

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

    int main (int argc, char*argv[]){
    int i;
    ...
  7. Replies
    12
    Views
    1,761

    Well maybe it will be easier to understand I I...

    Well maybe it will be easier to understand I I type the actual instructions...

    We want to make a program called pointc2pointo that for any string taken as an argument, if it terminats by ".c",...
  8. Replies
    12
    Views
    1,761

    find .c in a string

    Hello,

    I am creating a program named pointc2pointo wich will take a list of arguments and find the ones that terminates by .c and replace it by .o

    so far I have that :

    #include <stdio.h>
    ...
  9. Replies
    27
    Views
    8,511

    Thank you!

    Thank you!
  10. I don't really know what you mean by line by line...

    I don't really know what you mean by line by line but maybe you can look every char unetil you find \n .
  11. Replies
    27
    Views
    8,511

    It finaly works! #include #include...

    It finaly works!

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

    int main(int argc, char *argv[]) {
    int i = 0;
    if (argc > 1) {
    printf("there are %d elements \n", argc);
    ...
  12. Replies
    27
    Views
    8,511

    So some of you might think it is funny or...

    So some of you might think it is funny or useless, but I am trying to practice and you can tell I need to...
    so I want // to work as an enter, when the program sees // it prints \n, but I don't know...
  13. Replies
    27
    Views
    8,511

    je comprend... du coup il suffit juste de...

    je comprend...
    du coup il suffit juste de rajouter des espaces dans tout ça et peut-être une code pour le retour à la ligne.
    merci de votre aide :)

    Well sorry for that I sometimes get confused...
  14. Replies
    27
    Views
    8,511

    argc is the number of arguments isn't it ?

    argc is the number of arguments isn't it ?
  15. Replies
    27
    Views
    8,511

    argc is the number of argument isn't it ?

    argc is the number of argument isn't it ?
  16. Replies
    27
    Views
    8,511

    #include int main(int argc, char...

    #include <stdio.h>


    int main(int argc, char *argv[]) {
    int i = 0;
    if (argc > 1) {
    printf("there are %d elements", argc);
    printf("the first element is %s", argv[1]);...
  17. Replies
    27
    Views
    8,511

    So I changed it to that : #include ...

    So I changed it to that :

    #include <stdio.h>

    int main (int argc, char*argv[]) {
    int i=0;
    if (argc > 1) {
    printf ("there are %d elements",argc);
    printf ("the first...
  18. Replies
    27
    Views
    8,511

    oh I think I know

    oh I think I know
  19. Replies
    27
    Views
    8,511

    sorry I modified my post.

    sorry I modified my post.
  20. Replies
    27
    Views
    8,511

    Well so I tryed to modify my program so that I...

    Well so I tryed to modify my program so that I create a file with all of the arguments and not only the first one, and once again it doesn't work. can you help me again pease ? :D


    #include...
  21. Replies
    27
    Views
    8,511

    %s , s if for string right ?

    %s , s if for string right ?
  22. Replies
    27
    Views
    8,511

    Thank you, this tutorial will still be usefull....

    Thank you, this tutorial will still be usefull. (stahta01)
  23. Replies
    27
    Views
    8,511

    oh right I am stupid... thanks a lot :D

    oh right I am stupid... thanks a lot :D
  24. Replies
    27
    Views
    8,511

    What is wrong with that easy program ?

    Hello,

    I would like to know where is my mistake on that program I made :


    #include <stdio.h>

    int main (int argc, char*argv[]) {

    if (argc > 1) {
  25. Replies
    11
    Views
    1,473

    Oh ok I get it... I thought NULL would be error...

    Oh ok I get it... I thought NULL would be error message, but I have to do it myself...
Results 1 to 25 of 29
Page 1 of 2 1 2