Search:

Type: Posts; User: T1m

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    3,856

    Reading and printing a text file

    I'm finishing up a schoolproject in C.

    I was doing a helpfunction, wich should print information onto the console, the information is in a .txt file


    #include <conio2.h>
    #include <stdio.h>...
  2. Thread: Random Function

    by T1m
    Replies
    5
    Views
    2,067

    my problem seems to be solved, I initialised the...

    my problem seems to be solved, I initialised the srand() in a loop, and that seemed to be the problem
  3. Thread: Random Function

    by T1m
    Replies
    5
    Views
    2,067

    Random Function

    I have a question regarding the random function.

    In the program I'm building I have a function where a random number is needed


    randomnumber = rand() %3 + 1

    but I also have to repeat the...
  4. Thread: Question on arrays

    by T1m
    Replies
    6
    Views
    1,902

    ok, thank you very much guys!

    ok, thank you very much guys!
  5. Thread: Question on arrays

    by T1m
    Replies
    6
    Views
    1,902

    the error: error: syntax error before '{'...

    the error:


    error: syntax error before '{' token

    the error points to this rule:


    harten[13][2] = {{1,1},{2,1},{3,1},{4,1},{5,1},{6,1},{7,1},{8,1},{9,1},{10,1},{11,1},{12,1},{13,1}};
  6. Thread: Question on arrays

    by T1m
    Replies
    6
    Views
    1,902

    Question on arrays

    For school I have to program a Blackjack game.

    I'm using CodeBlocks.

    Now it gives an error on a certain part of my code:



    int harten[13][2];
    int ruiten[13][2];
Results 1 to 6 of 6