Search:

Type: Posts; User: Bokarinho

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,343

    #include #include #include...

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

    char *AppendNewFilename(const char *oldFilename, char pattern)
    {
    if(!oldFilename)
    {
    fprintf(stderr, "Invalid parameter for...
  2. Replies
    5
    Views
    2,796

    #include #include #include...

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

    unsigned int RountInteger(unsigned int N)
    {
    /* Last digit. */
    unsigned int lastDigit = -1;
    /* Go to the last digit and get...
  3. Replies
    4
    Views
    1,202

    //------------------------------------------------...

    //---------------------------------------------------------------------------

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

    #define One 1
    #pragma hdrstop
    ...
  4. Bad practice beacause i got a bit more memory for...

    Bad practice beacause i got a bit more memory for the nEndStr haaa?

    OK, give me a break dude, God of C....
  5. Give me your good practice...... Bad...

    Give me your good practice......

    Bad practices.....
    XAXAXAXA!!!!!
  6. Sure there is a memory leak as i am not freeing...

    Sure there is a memory leak as i am not freeing the memory used, OS can handle it properly but ok you are right. Secondly about the comments this is C commenting and it is my way of writing so i dont...
  7. Do you like that? #include ...

    Do you like that?



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

    char *ReplaceStrInsideString(char *ptrStr, const char *replaceStr, const char *insertStr)
    {
  8. Replies
    2
    Views
    1,261

    Firstly why you want to make you life harder? In...

    Firstly why you want to make you life harder?
    In the loop where you pass each letter to the other, use strcpy instead. Also check for lenght errors, because the input string length can be greater ...
  9. Thread: Check Bits

    by Bokarinho
    Replies
    3
    Views
    1,258

    To check for the proper bit in a bitmap you have...

    To check for the proper bit in a bitmap you have to create a function that will contain a valid mask and shift the mask across the bitmap. Using bitwise operations you can easily get the value of the...
  10. Replies
    214
    Views
    31,985

    #include #include #include...

    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
    #include <ctype.h>
    #include <errno.h>

    #define CITIES 10

    /* Structure holding the name and the distance. */
  11. Replies
    16
    Views
    3,014

    Indeed.

    Indeed.
  12. Replies
    16
    Views
    3,014

    my_strstr

    Without the use of any function of string.h which i agree of being a stupid thing to do here is my code for strstr.


    ...
  13. Replies
    17
    Views
    2,836

    You should be careful about the way you talk for...

    You should be careful about the way you talk for other people inside the forum, these people like Salem care for all and try to help, i will give you some code to solve your prob but this is for the...
  14. Replies
    2
    Views
    7,988

    The following code fills an array of integers...

    The following code fills an array of integers with random unique numbers, meaning that the numbers will not duplicate in the array but will still be random.
    The way is similar for a 4 * 4 or N * N...
  15. Thread: File Reverse

    by Bokarinho
    Replies
    4
    Views
    1,766

    #include #include #include...

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

    /* Copy one file to another in reverse order. */

    int ReverseCopyFile(const char *file1, const char *file2)
    {
    if(!file1 ||...
  16. Replies
    7
    Views
    5,096

    Well there problem has a name and it is called...

    Well there problem has a name and it is called magic squares. You are asked to write a program that will produce a magic square array of 4. A magic square of n has in each row - col - diag sum(n) =...
  17. Replies
    6
    Views
    1,810

    Take a look to this program, i hope you...

    Take a look to this program, i hope you understand how to use arrays of strings, dont get any worries handling array of strings is just the same as using arrays of other objects, should care though...
  18. Replies
    7
    Views
    5,650

    The following program creates a list under your...

    The following program creates a list under your specifications, adds nodes in the head and deletes from head as well. The function that destroys the list is up to you to think of a way of doing it....
  19. How to read the data from file into your...

    How to read the data from file into your structure, its a complicated way using fgets() and strings, someone else could happily use fscanf() but i just wanted to get some practise with tokens. Well...
  20. Yes you are right, of course i ment adidas...

    Yes you are right, of course i ment adidas sportwear, with messi they say impossible is nothing,the else statements i use are correct they help me in writing my code and organise it in my brain...
  21. Though i would like to give you a hand, watch my...

    Though i would like to give you a hand, watch my code which is not complete, you may get some ideas about how to save things in a array of structs, later we discuss about linked lists.
    Well this...
  22. Try asking ADIDAS, they say that impossible is...

    Try asking ADIDAS, they say that impossible is nothing......
  23. Replies
    9
    Views
    1,383

    You mean something like this: char *foo(char *s,...

    You mean something like this: char *foo(char *s, int *error) and inside the function for example *error = 1 or in onother error case *error = 2.........
    Think its the same....
  24. Replies
    9
    Views
    1,383

    I will stop drinking beers and using the computer...

    I will stop drinking beers and using the computer after....Yes you have right once again...
    For #pragma you are right i wanted to use argc initially but later i decided that this would have no use....
  25. Replies
    9
    Views
    1,383

    This simple program was created in TurboC++...

    This simple program was created in TurboC++ explorer and is used to do the job.
    But i have a question on my own. Why when i use the delimiter '\' to search for that character it doesn work? It says...
Results 1 to 25 of 63
Page 1 of 3 1 2 3