Search:

Type: Posts; User: OrAnGeWorX

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    31
    Views
    2,977

    u know what.... i'm just going to revert back to...

    u know what.... i'm just going to revert back to the original code where the user would have to input a character at a time and submit my assignment... i'm sick of being picky, spent more time trying...
  2. Replies
    31
    Views
    2,977

    i misunderstood what you meant, i'm sorry, i...

    i misunderstood what you meant, i'm sorry, i believed u meant something else... it's been a few days that i'm not getting sleep and i'm just staring at the pc screens and i have the final exam...
  3. Replies
    31
    Views
    2,977

    I'm certainly not lying but rather lost... ...

    I'm certainly not lying but rather lost...

    I've changed the line you mentioned to codeCopy[j] = secretCode[j];
    now, even if u put in the correct color sequence, it doesn't accept it
  4. Replies
    31
    Views
    2,977

    here goes nothing #include ...

    here goes nothing



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

    #define NBCOLORS 4
    #define NBTRIES 6
  5. Replies
    31
    Views
    2,977

    yes i have.. but I'm still getting the same color...

    yes i have.. but I'm still getting the same color combination when i choose to replay.
  6. Replies
    31
    Views
    2,977

    this one: int main (void) { char...

    this one:


    int main (void)
    {
    char secretCode[NBCOLORS];
    createCode(secretCode);
    while(playGame(secretCode));
    return 0;
    }
  7. Replies
    31
    Views
    2,977

    because it's not in the realm of this class :S ...

    because it's not in the realm of this class :S

    i hate it when i just can't make sense of what's going on and get totally lost... i feel like scrapping the whole file because I just can't see...
  8. Replies
    31
    Views
    2,977

    i don't even know what we're talking about...

    i don't even know what we're talking about anymore. which ones are you referring to ?
  9. Replies
    31
    Views
    2,977

    i'm confused.... in the first one, secretCode...

    i'm confused....

    in the first one, secretCode is an integer (but it is initialized as char in main)
    and the second one has a char table[] for an argument...



    #include <stdlib.h>
    #include...
  10. Replies
    31
    Views
    2,977

    i get you, i need to call createCode at the point...

    i get you, i need to call createCode at the point the program "restarts"
    in the playGame function... just having some issues coding it... i'm getting some syntax error befor char...




    int...
  11. Replies
    31
    Views
    2,977

    once in main...

    once in main...
  12. Replies
    31
    Views
    2,977

    just wanted to say thanks for baring with me, I'm...

    just wanted to say thanks for baring with me, I'm just finding it hard to relate the material I'm being taught (in French) with what you're saying and a lot of what we're told seems to be a load of...
  13. Replies
    31
    Views
    2,977

    i tried commenting fflush line and now it takes...

    i tried commenting fflush line and now it takes the whole string and gives out proper output
    so the fflush was not supposed to be there... it seems.

    i tried a few runs at the code, selecting o to...
  14. Replies
    31
    Views
    2,977

    so getchar() only picks up a character at a time,...

    so getchar() only picks up a character at a time, is there any other way i can pick up a whole string, then for loop it to place each character of the string in a table?



    well it does work......
  15. Replies
    31
    Views
    2,977

    i follow you but it's puzzling me more. i'm not...

    i follow you but it's puzzling me more.
    i'm not really sure what to do now. Am i supposed to move the fflush command to the main? And why would c = getchar() only pick up 1 character at a time ?...
  16. Replies
    31
    Views
    2,977

    well we were advised to use the fflush command so...

    well we were advised to use the fflush command so that no residual info is kept in memory at every code entry... i thought it was the right way to code this in.... the program works ok if the...
  17. Replies
    31
    Views
    2,977

    Caracter input

    Hey guys, I was wondering if there was a way to scanf/getchar() a string of characters into a table ?
    Am i shooting for the stars or is it a possibility ?
    what I'm trying to do is basically have...
  18. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    final post finally!

    I believe this will conclude this thread on a good note... I've been able to get it done, i can now say it's running error free

    here's the code with example results
    thank you tabstop, A+ buddy!...
  19. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    i feel like lynching myself, this is disgusting,...

    i feel like lynching myself, this is disgusting, i'm gagging
    i'm an idiot
    i went and added
    #define max 10

    and changed the references in the tables.... ctrl+F10, input info... tada!
    there's...
  20. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    as far as the requirements go, they are what they...

    as far as the requirements go, they are what they are... i'm also beginning to think if i had that maximum number of animals (like in most of the teacher's examples where there's nothing dynamic but...
  21. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    well it's because these are the requirements of...

    well it's because these are the requirements of the assignment... need to have tables, loops and stats/counters...
    it would've definitely been so much straightforward had i been able to just scanf...
  22. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    when i open the compiling window, i have execute...

    when i open the compiling window, i have execute paramets... i put in -std=c99 as you directed...
    nothing changed, nothing "visible" that is.

    tabstop... i really appreciate the help
  23. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    running the program again... only using males ...

    running the program again... only using males

    results:
    SVP entrez le nombre d'animaux pour vos calculs:
    2
    Animal 1
    entrez sexe (M/F)
    M
    entrez l age en jours
    12
  24. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    in the options, would it be attempt to support...

    in the options, would it be attempt to support some aspects of traditional C preprocessors?
  25. Thread: issues

    by OrAnGeWorX
    Replies
    35
    Views
    4,124

    i'm using Dev-C++ v4 the ageMoyenM and ageMoyenF...

    i'm using Dev-C++ v4
    the ageMoyenM and ageMoyenF are for the age average for males and females... i had commented out the lines that calculate these as they were crashing the program for some reason.
Results 1 to 25 of 49
Page 1 of 2 1 2