Search:

Type: Posts; User: Alastor

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds.

  1. Replies
    11
    Views
    3,308

    I believe I have tried to use different ways to...

    I believe I have tried to use different ways to clear the screen, but almost everyone of them takes a lot of time and (I think) memory.
    I think I tried adding a lot of spaces using "for"
    ...
  2. Replies
    24
    Views
    46,541

    c=4*cinco; t=2*tres;

    c=4*cinco;
    t=2*tres;
  3. Replies
    24
    Views
    46,541

    Ok, I fixed the warning thing, but the program...

    Ok, I fixed the warning thing, but the program is still not getting the right amount of petals...



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


    int newgame(void);
  4. Replies
    24
    Views
    46,541

    I only got one warning, the warning you mentioned

    I only got one warning, the warning you mentioned
  5. Replies
    24
    Views
    46,541

    Yeah, I have some stuff that shouldn't be there...

    Yeah, I have some stuff that shouldn't be there yet, but I thought that wouldn't affect the program.
    Thanks for your help
    Alastor

    edit: i==5 checks if the first random number is 5 (I hope I got...
  6. Replies
    24
    Views
    46,541

    to check for every random number to see if they...

    to check for every random number to see if they are a 3 or a 5?
  7. Replies
    24
    Views
    46,541

    Thanks! New problem though, the function...

    Thanks! New problem though, the function 'newgame' doesn't run.... (Even without the troubling clear screen method)



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

    int...
  8. Replies
    24
    Views
    46,541

    Right on the money, thanks a lot! edit: The...

    Right on the money, thanks a lot!

    edit: The only problem is that if you choose to play a second time, you get a sixth number , "2009463936"
  9. Replies
    24
    Views
    46,541

    Thanks. This #include #include...

    Thanks.
    This


    #include <stdio.h>
    #include <stdlib.h>
    #include <time.h>
    #define MAX 6
    int main(srand)
    {
  10. Replies
    24
    Views
    46,541

    I thought that was what he meant by "somewhere...

    I thought that was what he meant by "somewhere else in the code"
  11. Replies
    24
    Views
    46,541

    Thanks for the help, but it didn't work, I get a...

    Thanks for the help, but it didn't work, I get a bunch of errors. I'm about to post my program, please try not to correct useless stuff in it unless it affects the running of the program (I...
  12. Replies
    24
    Views
    46,541

    Thanks, but it would also be good if the program...

    Thanks, but it would also be good if the program could generate random numbers every time (I tried srand already...).
    Thanks
  13. Replies
    24
    Views
    46,541

    Getting a random number between 1 and 6

    I know there are a lot of links and tutorials on this topic, but I can't seem to write working code to produce a random number from 1-6 (For a Petals Around the Rose thing)
    Thanks...
  14. Poll: A neat, easy and improved rand function

    A neat, easy and improved rand function
  15. Thread: Vectors

    by Alastor
    Replies
    9
    Views
    1,493

    I think I get it now, thanks

    I think I get it now, thanks
  16. Thread: Vectors

    by Alastor
    Replies
    9
    Views
    1,493

    mmm... I still don't understand how cont[i] gets...

    mmm... I still don't understand how cont[i] gets its value according to the user's input

    What I think I understand now is that cont can be used for cont[i] while i is an integer from 0-100, is...
  17. isn't it easier to use 'for'?

    isn't it easier to use 'for'?
  18. Thread: Vectors

    by Alastor
    Replies
    9
    Views
    1,493

    Thanks, but I still don't know how cont[i] gets...

    Thanks, but I still don't know how cont[i] gets information, it's value is defined as 0 and I don't see it come up again in the program...
  19. Thread: Vectors

    by Alastor
    Replies
    9
    Views
    1,493

    Another question on (edit)arrays.... The...

    Another question on (edit)arrays....
    The tutorial I'm reading shows me a program that outputs how many times a number from 0 to 99 was typed. What I don't understand is how that is stored in cont[i]...
  20. Replies
    4
    Views
    1,066

    recursive formulas with arrays

    Hi, I'm trying to make a program that prints the first 100 numbers of cont, using the recursive function listed below. Unfortunately, what I wrote doesn't work, so I was wondering, if it was even...
  21. Thread: Vectors

    by Alastor
    Replies
    9
    Views
    1,493

    thanks a bunch

    thanks a bunch
  22. Thread: Vectors

    by Alastor
    Replies
    9
    Views
    1,493

    Vectors

    I'm (still!) learning to program in C, and I encountered "vectors". Since English is not my first language, I wasn't sure if in programming it was the same type of vector (Since there are a few...
  23. Replies
    19
    Views
    19,008

    "One boy jumped on some girl" :p

    "One boy jumped on some girl" :p
  24. Replies
    19
    Views
    19,008

    You probably get an error because you have an...

    You probably get an error because you have an 'artical' in there :p
  25. Replies
    24
    Views
    2,737

    Impressive, very simple, easy to read

    Impressive, very simple, easy to read
Results 1 to 25 of 55
Page 1 of 3 1 2 3