Search:

Type: Posts; User: Darkobra

Search: Search took 0.01 seconds.

  1. void stampaCampo(Territory** campo){ int i,j;...

    void stampaCampo(Territory** campo){
    int i,j;

    printf("\n"); //pura estetica
    for(i=0;i<N+1;i++){ //contarighe, ce ne vuole una in più per aggiungere la numerazione
    for(j=0;j<M+1;j++){...
  2. "Program received signal: EXC_BAD_SIGNAL"

    Hi all, italian newbie here.

    My english is not enough to explain in words my problem, and my program is 400 lines long by now... I think I'll post only the parts of code that I think are useful......
  3. Replies
    4
    Views
    2,587

    Yeah you are probably right... thing is, the...

    Yeah you are probably right... thing is, the excercise asked me to do that only stdio.h\stdlib.h\string.h (that function is not the whole excercise...)



    My tutor wants me to read and write on...
  4. Replies
    4
    Views
    2,587

    Characters, words and lines counting

    Hi all, newbie here. I was trying to write a program that counts characters, words and lines from a text file. I wrote a function for every task, and because i'm pretty sure the problem is there i...
  5. Replies
    7
    Views
    1,354

    Thank you so much, that was an error as stupid as...

    Thank you so much, that was an error as stupid as hard to spot. Grazie!
  6. Replies
    7
    Views
    1,354

    #include #include ...

    #include <stdio.h>
    #include <string.h>

    #define FRASE 10

    void controlloStringhe (char* string1, char* string2, int dimensione, int parolaIntera);

    int main()
    {
    char string1 [FRASE];
  7. Replies
    7
    Views
    1,354

    I've deleted the +1's, i thought the NULL...

    I've deleted the +1's, i thought the NULL character was necessary... but it still doesn't work. The order of the parameters in the call of the function is correct.

    I don't want to use the strstr...
  8. Replies
    7
    Views
    1,354

    String Comparison

    Hi all, italian newbie here. Sorry for my bad english and for my "bad C", I'm trying to learn both.

    The program I'm trying to write compare two string and define if the second one is included in...
  9. Replies
    6
    Views
    3,828

    It's ok now nonoob.. thanks for help.. i feel so...

    It's ok now nonoob.. thanks for help.. i feel so noob! xD

    Now, two other questions.. how do i free the matrix and how do i check the value of scanf?
  10. Replies
    6
    Views
    3,828

    Actually a and b WERE in range, but i've add the...

    Actually a and b WERE in range, but i've add the if.. now, it does not give a segmentation fault but when i tried, it missed up!

    i allocated a 2x2 matrix with this value:

    1 2 3 4

    then i...
  11. Some funny four-eyed prof told me "you can be...

    Some funny four-eyed prof told me "you can be sure that when you allocate a struct, it is initialised all 0 by itself!"

    gotcha, check the error, it were not so difficult to understand, i will try.
  12. Replies
    6
    Views
    3,828

    dynamic matrix.

    tried dynamic allocation for a matrix.
    very simple code, it compile ok, but then it gives me segmentation fault! .-.


    #include <stdio.h>
    #include <stdlib.h>

    int main(void){
    int **matrice;...
  13. Replies
    3
    Views
    2,200

    yep, sorry for the blank lines, i just paste the...

    yep, sorry for the blank lines, i just paste the code here, and they magically appears!
    well, whateaver..removed it!

    edited the code, now it works! thanks! I just didn't know that you can...
  14. Yeah, you're right. stupid me! edited, i can...

    Yeah, you're right. stupid me!
    edited, i can compile now, but surely i've mistaken something else! it creates classifica.dat as he should, but it writes there some nonsenses..

    aƒÎahÍ"...
  15. Replies
    3
    Views
    2,200

    problems with strcmp!

    Hello guys,
    this is another of my homeworks, a very simple program.
    the user have to select "mode1" or "mode2", and a file to use.

    if he selects mode1, the program will ask an int number, then...
  16. Here you go! #include #include...

    Here you go!

    #include <stdio.h>

    #include <stdlib.h>



    typedef struct {
  17. you're right, but the error still remain .-....

    you're right,
    but the error still remain .-. just tried. .__.
  18. Yeah, I know that.. the first type is...

    Yeah, I know that..

    the first type is classifica!


    [..]
    typedef struct {
    char nome[10];
    int vinte;
    int perse;
  19. You mean like this: ... int...

    You mean like this:



    ...
    int contasquadre(FILE*);
    int caricastruct(classifica, FILE*);
    int scrivistruct(classifica, FILE*);
    ...
  20. Thanks Epy, really quick! Well, it gives me a...

    Thanks Epy, really quick!
    Well, it gives me a pair of error yet.. past new errors:



    girone.c:50: error: conflicting types for 'caricastruct'
    girone.c:27: error: previous implicit declaration...
  21. Read, Write on files.. counting lines.. stuff like that

    Hello everybody.. I'm an italian boy, who has an exam right tomorrow.. I'm trying to do my homework :D my english is bad, really bad .. sorry for that.

    look, I'm on windows, using cgwin (should be...
Results 1 to 21 of 21