Search:

Type: Posts; User: gibbofresco

Search: Search took 0.01 seconds.

  1. Thanks a lot for your advice! It seems to work...

    Thanks a lot for your advice! It seems to work now, declaring the 100-char array.

    And yes, that was a ridiculous mistake... the totAtomi <100 :P

    Thank you very much, you saved me hours of...
  2. You mean that if I made some mistakes elsewhere,...

    You mean that if I made some mistakes elsewhere, these mistakes could cause the Seg-fault at fopening time?

    However, I'm posting more code:


    GLOBAL DECLARATIONS


    typedef struct {
    int...
  3. Thank you, I dont know what you mean by...

    Thank you,
    I dont know what you mean by "trashing".
    In the program I never malloc'd. I just declared arrays and a char*.
  4. [Segmentation Fault] fopen("filename","w")

    Hello everybody,

    I've a strange problem in a small application I'm working at.
    This program reads a file, elaborates some data then writes new data onto another file. The destination file is a...
  5. Replies
    4
    Views
    777

    Thank you for reply. I did not consider those...

    Thank you for reply. I did not consider those aspects.
    gisosmat, thanks for link, I'm working under Win.
    matsp, you're probably right: a pack of code is better in this case.
    It's code for...
  6. Replies
    4
    Views
    777

    [HowTo] Distribute my C libraries?

    Hello, I wrote some c and h files with few structs and functions.
    Is there a way to "export" them like libraries, in order to distribute them instead of distributing the code? I dont know well the...
  7. Replies
    2
    Views
    1,097

    Name disamb. in multifile project

    Hello, I'm working on a program that should manage data structures like queues and stacks.
    For exercise, I made structs to model those structures, using two different .c files, each with the struct...
  8. Replies
    9
    Views
    1,450

    CPP FILE: #include "SDL/SDL.h" #include...

    CPP FILE:


    #include "SDL/SDL.h"
    #include "SDL/SDL_image.h"
    #include "grafiche.h"

    class Schermo {
    SDL_Surface *sfondo, *foo;
    public:
  9. Replies
    9
    Views
    1,450

    I think I made the same thing, but nothing...

    I think I made the same thing, but nothing changed :(

    Here's the exact error:
    .objs\main.o:main.cpp:(.text+0x8a): undefined reference to `MyClasse::Mymethod()'

    I omitted this:
    "#ifndef...
  10. Replies
    9
    Views
    1,450

    [HOWTO] write classes headers

    Hello!

    I'm a newbye with C++ and I come from Java;
    I've more or less found out how to use different cpp files using .h files, then I wrote a class over my main() method.
    What I would like to do...
  11. Replies
    6
    Views
    976

    Thanks, checking now.

    Thanks, checking now.
  12. Replies
    6
    Views
    976

    Passing arrays to functions?

    I cant find out how it's the syntax.

    func(int [][] a) doesnt work... any hint?

    Thanks!
  13. Replies
    1
    Views
    994

    Including my files?

    Hello, I'm pretty new to C++ and I cant solve this problem.

    I'm working with Code::Blocks on my *.cpp files; how can I call functions of other my cpp files ? I know that' is a silly question but...
  14. Replies
    11
    Views
    1,377

    Sorry, I did not read you before. yes, I read...

    Sorry, I did not read you before. yes, I read those instructions but I cant get anything. I really do not know what they are talking about.

    Does MSVC express generates .exe files?
  15. Replies
    11
    Views
    1,377

    Yeah, thanks, but I need a compiler, at first....

    Yeah, thanks, but I need a compiler, at first. You know, I'm new to C++... I made the most basic things with free borland compiler (structs, loops, classes...) but I'd like to see how SDL works, and...
  16. Replies
    11
    Views
    1,377

    You sound you dont like Boreland :) Why is MSVC...

    You sound you dont like Boreland :)
    Why is MSVC better? Is it free? Well ... express edition should be :)
    I'm accepting all advices about other compilers... now I'm trying the eclipse one, but I'm...
  17. Replies
    11
    Views
    1,377

    Unfortunatly that tutorial does not cover Borland...

    Unfortunatly that tutorial does not cover Borland free compiler, and I couldnt find any other clear tutorial. Does anybody use Borland free compiler??
    I dont know where I can look anymore!!! Please...
  18. Replies
    11
    Views
    1,377

    How I do install SDL?

    Hello, I really cant install sdl libs! I'm using the Borland compiler, I tried to follow the tutorials but I'm stuck.
    I really do not know where putting the files and what else I must do.
    Please...
  19. Replies
    2
    Views
    2,277

    Yeah, I realized something similar. Thanks a lot!

    Yeah, I realized something similar. Thanks a lot!
  20. Replies
    2
    Views
    2,277

    Struct containing instances of itself?

    Hello, I'm writing a struct "node" like this:


    struct node{
    int x;
    int y;


    };
  21. Starter: what language I should focus on?

    Hello, I'm new here. First, I apologize for my bad english.

    I'm studying Java at university and I used to program in VB6, and sixth months ago I studied a bit of C for an exam, and now I'd like to...
  22. Replies
    1
    Views
    892

    Something about "plist"?

    Hello, I'm new here.
    Studying C I found a "plist" struct used for linked list.
    How do they work? Do anybody know that? Thanks a lot!
Results 1 to 22 of 22