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>...
Type: Posts; User: T1m
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>...
my problem seems to be solved, I initialised the srand() in a loop, and that seemed to be the problem
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...
ok, thank you very much guys!
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}};
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];