Search:

Type: Posts; User: mass

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,262

    how to add features to a game?

    If anyone can please tell, I need a little info on addons and patches.

    suppose that you want to add some extra features to your favorite directx based game. patches normally published by original...
  2. Replies
    7
    Views
    2,407

    Spaces and tabs were changed when I copied my...

    Spaces and tabs were changed when I copied my code to the forum, it is and were easy to read in my editor.
    Here is a new version and I hope this time it will be easy to read.


    ...
  3. Replies
    7
    Views
    2,407

    I do not know why I could not post the code...

    I do not know why I could not post the code sorted and looking good, I just copied it from the source file then I tried to sort. Sorry about that and thanks for helping I have to work on it to...
  4. Replies
    7
    Views
    2,407

    Working with strings!

    I want to write a function that takes two character array parameters, say string1
    and string2. Both string1 and string2 contain unknown number of
    characters terminated by ’ !’. My function will...
  5. Replies
    7
    Views
    3,757

    that was my scanf I think ok that was just an...

    that was my scanf I think
    ok that was just an idea...
  6. Thread: "Shuffling" ?

    by mass
    Replies
    7
    Views
    1,529

    you can use rand() function which is included in...

    you can use rand() function which is included in <stdlib.h> library and create a random number using that function.


    x=(rand()%5)+1; //creates a random number between 1-5

    for each number you...
  7. Replies
    7
    Views
    3,757

    when I changed "getchar()" with a "getch()" or ...

    when I changed "getchar()" with a "getch()" or "scanf("%d");" your program waited after printing the result
  8. Replies
    18
    Views
    5,427

    Youre right about scanfs and my way of printing...

    Youre right about scanfs and my way of printing strings. Maybe I should blame my compiler there were no errors and when I erase the & and the column part of my multi arrays the program worked as...
  9. Replies
    12
    Views
    3,785

    the code is taken from this site and the link is,...

    the code is taken from this site and the link is,
    http://www.cprogramming.com/fod/isdigit.html
    If youre talking about cin>> and cout>> I just wanted to show the function did not look if its written...
  10. Replies
    18
    Views
    5,427

    after your suggestions and my failure with the...

    after your suggestions and my failure with the malloc() function, I have modified my code again and here is the last version of it. I am posting this code because even my compiler did not encountered...
  11. Replies
    12
    Views
    3,785

    you can use isdigit() function if I am not wrong...

    you can use isdigit() function if I am not wrong it should be included in <ctype.h> as quzah said above.


    //Example reads in a character and checks to see if it is a digit
    #include <cctype>...
  12. Replies
    4
    Views
    1,264

    you should modify your code as: #include...

    you should modify your code as:


    #include <stdio.h>
    #include <stdlib.h>// not necessary here (no use of any function included in this library)

    int main(void)//main function takes no...
  13. Replies
    7
    Views
    3,244

    maybe you should put an argument into while like...

    maybe you should put an argument into while like


    while(x!=EOF){
    .
    .
    .
    }

    I do not know but maybe this can help, sorry if not..
  14. Replies
    18
    Views
    5,427

    1)In the last reply that Salem posted, he showed...

    1)In the last reply that Salem posted, he showed me how to deallocate and I will do that from now on, thanks.
    2)I read the FAQ and changed the prototype as "int main(void)", thanks.
    3)As you said...
  15. Replies
    18
    Views
    5,427

    I have modified silk.odyssey's code a bit and...

    I have modified silk.odyssey's code a bit and finally I made the program work as I wanted. Before posting this thread, I worked for hours to compile this program without sizeof and malloc functions....
  16. Replies
    18
    Views
    5,427

    I did not have time to try the code above if it...

    I did not have time to try the code above if it is working but the point is that helped me with my problem with their point of view. Also for anyone to know, my program was to be written in C not...
  17. Replies
    11
    Views
    1,865

    citizen is right and also for longer codes your...

    citizen is right and also for longer codes your program will work more efficiently,even faster and your code will look more simple with that kind of simplizations:)

    if I were you I would put a...
  18. Replies
    18
    Views
    5,427

    thanks to everyone

    I really really appreciate your work and help, I am embarassed to ask a question like this easy. It makes me feel I have a long way to come where you are, thanks again:)
  19. Replies
    18
    Views
    5,427

    thanks

    I really appreciate your fast answer. I already know how to set up a 2D array but did not know that I can store strings into each row of it. Thank you so much.:)
  20. Replies
    18
    Views
    5,427

    string array stuck:(

    After a few hours looking to my code and thinking I realised that I was totally stuck and could not find any way to solve my problem in my mind. The problem is shortly;
    I wanna take a certain number...
Results 1 to 20 of 20