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...
Type: Posts; User: gibbofresco
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...
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...
Thank you,
I dont know what you mean by "trashing".
In the program I never malloc'd. I just declared arrays and a char*.
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...
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...
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...
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...
CPP FILE:
#include "SDL/SDL.h"
#include "SDL/SDL_image.h"
#include "grafiche.h"
class Schermo {
SDL_Surface *sfondo, *foo;
public:
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...
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...
Thanks, checking now.
I cant find out how it's the syntax.
func(int [][] a) doesnt work... any hint?
Thanks!
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...
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?
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...
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...
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...
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...
Yeah, I realized something similar. Thanks a lot!
Hello, I'm writing a struct "node" like this:
struct node{
int x;
int y;
};
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...
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!