Search:

Type: Posts; User: Cero.Uno

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. very interesting, I to was wondering this some...

    very interesting, I to was wondering this some time back. It's good to have an insight.
  2. Replies
    3
    Views
    1,094

    awesome dude, thank you so much, saved me best...

    awesome dude, thank you so much, saved me best part of next two hours :)
  3. Replies
    3
    Views
    1,094

    Integers value is being wrongly altered

    For some reason, the value held within my integer is being altered by this one function. I've been able to narrow the bug down to this one function by printing the contents of this integer step by...
  4. Replies
    5
    Views
    1,402

    I want the memory address of string alphaPosition...

    I want the memory address of string alphaPosition sent to the function hence why I'm using the & operator before the string when passing the parameter.
  5. Replies
    5
    Views
    1,402

    Adjusting the prototype to reflect your...

    Adjusting the prototype to reflect your adjustment results in the following:
  6. Replies
    5
    Views
    1,402

    pointer char[], help with warning

    I'm getting the following error althrough the program is compiling a exe. I've been learning pointers and while playing with integers was fine, adopting the same stragety with a character array of...
  7. Replies
    3
    Views
    5,981

    thank you very much, using that extension to my...

    thank you very much, using that extension to my command compiles it perfectly.
  8. Replies
    3
    Views
    5,981

    How to link with "-lwinmm"

    Hello,

    I'm attempting to play a wave file for my windows specific console program. I've included the windows.h in order to use the PlaySound() function. I inccur the following when compiling...
  9. Replies
    10
    Views
    1,210

    indeed I am declaring a conflicting variable, my...

    indeed I am declaring a conflicting variable, my own fault, checked functions but not variables, thanks for feedback, at least I know to watch out for similar errors in future and have learnt...
  10. Replies
    10
    Views
    1,210

    I have the necessary header file included. I...

    I have the necessary header file included. I have no overshadowing functions. If I put the above two lines at the very beginning of C's entry point (int main()), it compiles fine however if I move...
  11. Replies
    10
    Views
    1,210

    Can't obtain time from time.h

    I'm following the example from the following url on this site and I'm having trouble simply obtaining a time.





    time_t begin, finish;
    begin = time( NULL );
  12. Replies
    6
    Views
    1,558

    forgive me, I meant DESC order. I'm using an...

    forgive me, I meant DESC order.

    I'm using an extra array to return the values back to the original after sorting, perhaps theres a more efficient way like excluding the second array which I've yet...
  13. Replies
    6
    Views
    1,558

    thanks laserlight It seems my approach was...

    thanks laserlight

    It seems my approach was wrong, I managed to do it through, my first algorithm:) woot



    void sort_numeric(int scores[10])
    {

    int buffer[10] = { 0,0,0,0,0,0,0,0,0,0 };
  14. Replies
    6
    Views
    1,558

    Problem sorting numeric array.

    Hi,

    I'm having trouble sorting the numbers in ascending order from an array. As always I'd appreicate some feedback, my logic is failing me somewhere.



    int test[10] = { 130, 140, 70, 30,...
  15. Replies
    3
    Views
    3,670

    Clear Console Screen

    Hello guys,

    I'm fully aware I can clear the command line interface with:



    system("cls");


    however doesn't this limit my program to Windows only?, if so are they any good techniques to...
  16. Replies
    11
    Views
    1,878

    this function is invoked for both inputs OF x and...

    this function is invoked for both inputs OF x and y.



    x = get_coord(input[1]);
    y = get_coord(input[0]);
  17. Replies
    11
    Views
    1,878

    return (x - '0'); works good.

    return (x - '0');


    works good.
  18. Replies
    11
    Views
    1,878

    returning coordinates, I'm using a matrix for a...

    returning coordinates, I'm using a matrix for a gridding system for my battleships game. I'm attempting to make the function generic, should the value be B on the display from the users input then I...
  19. Replies
    11
    Views
    1,878

    Can you recommend any alternative..., would you...

    Can you recommend any alternative..., would you say



    return (x - 48);


    is bad programming practice?
  20. Replies
    11
    Views
    1,878

    compiles ok but errors out.

    compiles ok but errors out.
  21. Replies
    11
    Views
    1,878

    char x isdigit ?

    Hi guys,

    I'm having trouble with the following function, can anyone spot whats wrong, I can't get atoi to work, the only work around thus far is doing this which I don't particularly like



    ...
  22. Replies
    5
    Views
    1,292

    Add data onto string.

    I have a quick question, in php and I'm fairly sure C++, I can use the dot to append pieces of a string together, is this possible in C.



    strcat(output, temp);


    The aboves adds the contents...
  23. thanks Salem, changing char...

    thanks Salem,

    changing


    char temp[sizeof(code)];

    to
  24. This is an exercise, the output SHOULD be Newt Is...

    This is an exercise, the output SHOULD be Newt Is Upset Because He Thinks He Is President hence the first letters of the code, I cant crack this damn puzzle.
  25. char code[] = ".kmpeqgf dmqz szupzq ziafziap zu...

    char code[] = ".kmpeqgf dmqz szupzq ziafziap zu ezaufmgfue kozqsdqyq fdabqd qouxaB .pqfoqbege eU zaufmgomhq kmitsuT .kdqbbuxe kxszuiazw faz eu kmitsut qtF .femq szupmqT kxxmuoqbeq eqdufiaze qeg pzm...
Results 1 to 25 of 36
Page 1 of 2 1 2