Search:

Type: Posts; User: evilcubed

Search: Search took 0.00 seconds.

  1. Replies
    17
    Views
    2,630

    Exit (0) works, thanks :)

    Exit (0) works, thanks :)
  2. Replies
    17
    Views
    2,630

    hmmm exit; doesnt seem to work? i also tried...

    hmmm exit; doesnt seem to work? i also tried exit(); but it gave me an error of too few arguments
  3. Replies
    17
    Views
    2,630

    I would like to exit the program. I tried return;...

    I would like to exit the program. I tried return; and it only exits the function.
  4. Replies
    17
    Views
    2,630

    Return 0 in a void function?

    I have a set of commands in a function that i want to end in return 0;
    and i am using a void function. is there a work around to have a "return 0" type command in the function because i want it to...
  5. Replies
    8
    Views
    3,170

    How could I re write it for c?

    How could I re write it for c?
  6. Replies
    8
    Views
    3,170

    i get this error: error: expected ';', ',' or...

    i get this error:
    error: expected ';', ',' or ')' before '=' token
    for this line:
    void hello(const char *message, const char *testMsg="Testing...\n")
  7. Replies
    8
    Views
    3,170

    I wanted to use "test" as an example of a name...

    I wanted to use "test" as an example of a name for a function. But the commands would be the same if i named the function like "hello" or something?
  8. Replies
    8
    Views
    3,170

    Making a function to shorten my code?

    How can i make a function that does specific code like:

    system("cls");
    printf ("Testing...\n");
    sleep(1);
    system("cls");

    Because in my program, i have hundreds of lines like these but i...
  9. Replies
    20
    Views
    2,540

    I haven't started to make my program simplier...

    I haven't started to make my program simplier with the char map, since i wanted to finish the base program. Here it is. Im pretty sure i can cut the code down by alot, any tips to do so?

    #ifdef...
  10. Replies
    20
    Views
    2,540

    could i just make each square on the map a...

    could i just make each square on the map a different character, like a,b,c etc and have a case for every character, so i dont have like the same description for forest each time i land on the forest...
  11. Replies
    20
    Views
    2,540

    ugg still stuck, not sure what to do :P

    ugg still stuck, not sure what to do :P
  12. Replies
    20
    Views
    2,540

    Wow thanks for the help :) If I only want the map...

    Wow thanks for the help :) If I only want the map to be half the size in width as yours what would I need to changed the define max size to? Also how would I use the coordinates? Like if player 1 ==...
  13. Replies
    20
    Views
    2,540

    Also if I made a char map, how would I track the...

    Also if I made a char map, how would I track the position of the player?
  14. Replies
    20
    Views
    2,540

    The game is for a school project so i can only...

    The game is for a school project so i can only use GNU. Would i need PDCurses to do the char map u did?
  15. Replies
    20
    Views
    2,540

    Can u link me? I can't find it

    Can u link me? I can't find it
  16. Replies
    20
    Views
    2,540

    Oh and also, does anyone know a good c compiler...

    Oh and also, does anyone know a good c compiler program for windows? I am currently using dev c++ but some of the c commands dont work with it. I have a netbook that uses linux which runs this code...
  17. Replies
    20
    Views
    2,540

    What do i replace with this? lol im a real...

    What do i replace with this? lol im a real beginner with this stuff, and i really want to shorten my code :P
  18. Replies
    20
    Views
    2,540

    Thanks everyone for the responses :) I really...

    Thanks everyone for the responses :) I really like your idea of the char map, but i dont really know that much about c :P im not 100% sure how to use the map though. could you provide insight? This...
  19. Replies
    20
    Views
    2,540

    Help With My Text Adventure Game?

    so far i have this. And i have some errors. Any suggestions to improve it? My C knowledge is limited :P


    #include <stdio.h>
    char character = 'q';
    int main()
    {
    system("clear");
    printf...
Results 1 to 19 of 20