FILE *inp;
inp = (FILE *) fopen("clues.txt", "r");
int row, column;
char clue[row][column]
for(row = 0; row <= 46; ++row)
{
for(column = 0; column <= 60; ++column)
{
fscanf(inp, "%s",...
Type: Posts; User: fractal
FILE *inp;
inp = (FILE *) fopen("clues.txt", "r");
int row, column;
char clue[row][column]
for(row = 0; row <= 46; ++row)
{
for(column = 0; column <= 60; ++column)
{
fscanf(inp, "%s",...
well, i learn my lesson, thank you Mats (again) and Elysia, you are the best,
here is my function, completed and running.
void insertFrontierAstar ( FrontierNodePtr *headPtr, FrontierNodePtr...
thank You Mats, for quick response. I' will check it
what is wrong with this function? This function insert a new node in the linked list, but it'not works.
void insertFrontierAstar ( FrontierNodePtr *headPtr, TreeNodePtr ptr )
{...
i am sorry if this is off topic, but i am curious.
Is this "drand48()" function ANSI C89?
take a look at this
http://ftp.gnu.org/gnu/glibc/
http://pw1.netcom.com/%7Etjensen/ptr/pointers.htm
chapter 1
is that .c files so i can read them?
in google?
believe me i will look at!!!!
And my question is, where can i find funcions. For example, i like to study the "printf" function. Is this not available in a opensource compiler?
I suggest to download an opensource compiler and ( i belive, but not for sure ) you can modify the headers files
for example you can change the value below
#define FOPEN_MAX (20)
FOPEN_MAX...
i ' not sure, but you have to search for an open source compiler, like Codeblocks.
In my computer stdio.h is located at (something like)
C:\Program Files\ CodeBlocks\include\stdio
So here we are
i believe that
scanf("%lf", &simple_interest);
is better
to clear the screen read this
http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1031963460&id=1043284385
the "menu" function looks like this
void menu ( void )
{
printf( "please, enter your choise\n\n"
"1 to load a sudoku (from file)\n"
"2 to select a sudoku\n"
"3 to display selected...
i' sorry for confusing you, this infinite loop is (was) my problem. My teacher also suggest to do this
do
{
menu();
scanf( "%d", &selection );
if (scanf( "%d",...
i have the same problem here
int main ( void )
{
sudokuPtr sudoku_list; // δείκτης στην αρχή της λίστας
sudokuPtr current_sudoku; // δείκτης στο τρέχων sudoku
sudoku_list =...
do you use DEV C++ compiler?
thank you for instant responces,
cheers.
ok, here we are,
#include <stdio.h>
#include <stdlib.h> /* exit */
void function ( FILE *out, char *filename );
int main ( int argc, char *argv[ ] )
I will be back tomorow,
Happy New Year to everyone!!!
ok, try this
http://www.acm.uiuc.edu/webmonkeys/book/c_guide/
and this
http://www.cppreference.com/
ps i'm also a newbie
i see now!
and what about
#include <stdio.h>
void total_paragraph ( FILE *infile );
int main ( void )
{
hello everybody,
and why is better to open and close the file in main?
hello to everyone,
you must change the line
scanf ("%c", ans);
with
scanf ("%c", &ans);