thanks quzah,i really appreciate ur help...:)
Type: Posts; User: skelectron
thanks quzah,i really appreciate ur help...:)
so,without c99,is it possible to use 2d variable array?
#include <stdio.h>
#include <stdlib.h>
int show_matrix(int column, int row, int matrix[column][row]);
int main(void)
{
int m = 2;
int matrix[m][m] = { {1,2}, {1,2} };
hi everybody,i want to become a serious c programmer,but now i have a very stupid logic thinking..any tips for me to broaden my c language knowledge?
i need to back to the guess function because if it has a wrong numbers,we must retype the guess number..
frankly,my compiler is supporting the code,but when i get the wrong place number and looping to function guess,the random generator will create a new random number again..what can i do if i want the...
now i'm using the for loop things for my mastermind game,but.....it still got a randoming problem just like the first time i use with if else..
#include <stdio.h>
#include <stdlib.h>
#include...
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int guess(int);
int main()
{
int digits;
hahaha,thanks for all the critics,actually now i'm trying to create the mastermind with array and for loop,but i still dont know how to start..anybody can give me the logical hints?:)
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int three();
main()
{
srand((unsigned)time(NULL));
four();
yeah!it's worked!!thx for all who helped me,since i got a new problem though..when i'm stuck,i'll ask again.... :D ...
the problem is when i returned to nine() i will get a new random numbers from the f,s,t,fo,etc..
are there any solution to make the random function just generates once and then the values is saved...
now i'm doing a mastermind homework..
my problem is how can i randomize once only when the program is running..
nine()
{
int...