Search:

Type: Posts; User: snappleapple

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    2,001

    getting rid of the stars gives me this: ...

    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...
  2. Replies
    9
    Views
    2,001

    I'm really really confused by c's little...

    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)
    {

    ...
  3. Replies
    9
    Views
    2,001

    i try and just use scanf to take the strings but...

    i try and just use scanf to take the strings but it gives me the same segment error
  4. Replies
    9
    Views
    2,001

    i'm still confused as to how to get rid of the...

    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
  5. Replies
    9
    Views
    2,001

    segmentation fault??

    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...
  6. Replies
    28
    Views
    2,489

    thanks for all your help guys

    thanks for all your help guys
  7. Replies
    28
    Views
    2,489

    how can i make spaces in each row between the...

    how can i make spaces in each row between the numbers?
  8. Replies
    28
    Views
    2,489

    #include int main(void) { ...

    #include <stdio.h>
    int main(void)
    {

    /* Declare Variables */
    FILE *inp; /* pointer to input files */
    int sudoku[9][9];
    int i,j;

    /* Open sudoku...
  9. Replies
    28
    Views
    2,489

    i tried that and then it printed every single...

    i tried that and then it printed every single number in one column
  10. Replies
    28
    Views
    2,489

    so it gave me all of my grid but it listed it in...

    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...
  11. Replies
    28
    Views
    2,489

    #include #include int...

    #include <stdio.h>
    #include <math.h>
    int main(void)
    {

    /* Declare Variables */
    FILE *inp; /* pointer to input files */
    int sudoku[9][9];
    int i,j;
    ...
  12. Replies
    28
    Views
    2,489

    #include #include int...

    #include <stdio.h>
    #include <math.h>
    int main(void)
    {

    /* Declare Variables */
    FILE *inp; /* pointer to input files */
    int sudoku[9][9];
    int i,j;
    ...
  13. Replies
    28
    Views
    2,489

    when i try to compile, it says there is a syntax...

    when i try to compile, it says there is a syntax error before the ';' in line with the do statement
  14. Replies
    28
    Views
    2,489

    it's a .txt file... #include ...

    it's a .txt file...


    #include <stdio.h>
    #include <math.h>
    int main(void)
    {

    /* Declare Variables */
    FILE *inp; /* pointer to input files */
  15. Replies
    28
    Views
    2,489

    pointer file to an array??

    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...
Results 1 to 15 of 15