getting rid of the stars gives me this:
kkeyser@shellfish:~/CPrograms> gcc search-replace.c
search-replace.c: In function `main':
search-replace.c:40: warning: passing arg 1 of...
Type: Posts; User: snappleapple
getting rid of the stars gives me this:
kkeyser@shellfish:~/CPrograms> gcc search-replace.c
search-replace.c: In function `main':
search-replace.c:40: warning: passing arg 1 of...
I'm really really confused by c's little technicalities. when i use scanf like this it lets me enter in the first string but not the second and third strings
int main(void)
{
...
i try and just use scanf to take the strings but it gives me the same segment error
i'm still confused as to how to get rid of the segmentation fault. if i take out the pointers, the program doesn't compile
i'm trying to write a program that accepts three strings: text, s, and r. The function searches string text for string s. if it finds string s, it should replace it with string r. i wrote all the...
thanks for all your help guys
how can i make spaces in each row between the numbers?
#include <stdio.h>
int main(void)
{
/* Declare Variables */
FILE *inp; /* pointer to input files */
int sudoku[9][9];
int i,j;
/* Open sudoku...
i tried that and then it printed every single number in one column
so it gave me all of my grid but it listed it in one line. theres also a lot of extra numbers at the end of the grid and i dont know what they are. ideally, i should get a grid that looks like...
#include <stdio.h>
#include <math.h>
int main(void)
{
/* Declare Variables */
FILE *inp; /* pointer to input files */
int sudoku[9][9];
int i,j;
...
#include <stdio.h>
#include <math.h>
int main(void)
{
/* Declare Variables */
FILE *inp; /* pointer to input files */
int sudoku[9][9];
int i,j;
...
when i try to compile, it says there is a syntax error before the ';' in line with the do statement
it's a .txt file...
#include <stdio.h>
#include <math.h>
int main(void)
{
/* Declare Variables */
FILE *inp; /* pointer to input files */
so for my c class i have to write a program than scans a txt file of a sudoku grid and the program has to determine whether or not the grid follows the rules of sudoku. i have all of the program...