you're not getting it... I'm appreciated for your help.. I thought it would be nice to tell you the status of my situation instead of not saying anything... ;)
Type: Posts; User: Tyler_Durden
you're not getting it... I'm appreciated for your help.. I thought it would be nice to tell you the status of my situation instead of not saying anything... ;)
I'm not trying to accuse anybody... If it weren't you I wouldn't be able to do half of what I did... i'm only sad that maybe it isn't enough... And the work was to groups with 2 people, and my...
yeah, i talked with him in msn, and he helped me with some stuff, but then he had to get some sleep and is still sleeping...our timeline(dunno if it's the correct word) is very different...I was at...
Well people, thanks for all who helped but I can't solve this problem I'm having and I'm sure that what I've done isn't enough for a positive grade... :rolleyes: so, next year I'll have to do...
Well, I've been trying but I can't get that errors out... please jverkoey, could you give me your version that compiles with no errors? I have to have that done today at night to be delivered...
oh..is it doing what I am saying? great then... I'll work now to see if I can get to a point where it gives no errors, and does some of the things expected, as I can't do everything that is asked...
hmm..but I wanted the info coming from "mail.txt" to go to the struct mailr, and the info that the user inputs when writing an email to the struct mail..because the two have to be treatly different,...
#include <stdio.h>
#include <string.h>
#include "progmail.h"
void leficheiro(MAILR ptr, int i)
{
FILE *fp;
int i;
fp = fopen("mail.txt","r"); /*Abre o ficheiro para escrita em...
Done...
but the error "structure has no member named MAILR " is still there...
this is so frustrating... I had the program working but now I can't seem to get it... Bye bye positive grade ......
yep, I need to keep track of numerous emails... I have to save them to "mail.txt" to and be able to view them, and erase them...
/me wants to dance too when the program is done :cool:
EDIT -...
so in leficheiro.c I should declare it like this?
void leficheiro(MAILR,i) ??
I tried it but if I don't declare it leficheiro(MAILR *ptr) it then says in lines from 13-17 that ptr is...
ok, i changed progmail.h, but what you said in the end i didn't understand..definition file? parameter list? :confused: sorry but I'm really not getting it....God, I have to do this quickly, lol ...
i changed my leficheiro.c like you said but when compiling it gives me this error for lines 13-17
-> request for member "MAILR" in something not a structure or union
and like you say in the end...
so can you please tell me what to change in the code to solve the error? I would be really thankful :D
Bump...
Just this last help, guys... I only need to solve the segmentation fault error, and the rest is easy...the program is in the post abose, and the segmentation fault error happens when main...
so there it is..
the extension is ".c" but rename it to ".zip" and all the files are there.. I dunno if it will give some errors that I didn't have because last time I worked in the program I...
Bump...
sorry but I only wanted help solving the segmentation fault error, please...I won't ask you nothing more, really :p
I tried this piece of code substituting the "line" with "ptr->from", for example, but the problem is still there...I put it in the comandom.c, which gets the info and puts it in the mail.txt...
I still get segmentation faulkt when trying to run leficheiro, when progmail.c starts... I changed my progmail.h like you said...
help, pls =)
Happy 2005!
EDIT - I really need your help,...
Yes...my mistake..
I tried to use the function that way and made a progmail.h like this:
#ifndef PROGMAIL_H_INCLUDED
#define PROGMAIL_H_INCLUDED
#define MAX 120
#define NUM 20
typedef...
Yes, I've been doing this intensively but I don't know if it is enough to get a positive grade =\
Now I will implement this technique to have numerous arrays to see if I can get what I...
thanks for your tips ... =)
I need to different structs because I have to deal differently with the mails that are input, and the ones read from the file....
I only have a question.I've been able...
I'm now going to try this program you gave me to see what I can do but could you just help me with the problem I'm having passing from the file to a struct... It is eliminating some letters...when...
sorry :D
progmail.h
#ifndef PROGMAIL_H_INCLUDED
#define PROGMAIL_H_INCLUDED
typedef struct mail
{
char from[120];
char to[120];
ok..so the entire program until now is this:
progmail.c :
#include <stdio.h> /* para funcoes como printf, scanf, etc */
#include <stdlib.h> /* para a funcao exit */
#include...