just a way to understand what was wrong in fread, removed the first fopen :P
Type: Posts; User: xphoenix
just a way to understand what was wrong in fread, removed the first fopen :P
? where plz?
#include <stdio.h>
#include <stdlib.h>
// struct containing recipe
typedef struct {
char recipeName[40];
char recipeHowTo[1000];
int howManyPerson;
int level;
int timeToEat;
it doesnt charge the list at the start :(
ty :)
i'm using the program, when i insert recipes all is ok, but when i go to see what it is inserted, i saw only the first recipe, no other inserted, why?
#include <stdio.h>
#include...
i got ur hint, but it doesnt run
#include <stdio.h>
#include <stdlib.h>
void menu();
// struct containing recipe
typedef struct {
@imalc can u better explain what u mean plz?
@claudiu can u show me plz how to put that * ? i tried but always compile error... can u correct the code directly? so i can better understand
ty
heeeelp plz
i dont get the 3rd point, i'm following an online example can u explain be better plz?
this is the example i'm following Guida C
when i try to use the program, i first chose option 3 to insert a recipe, then i press 2 to view all recipes, but it says that it has no recipe why???
#include <stdio.h>
#include <stdlib.h>
...
great! i removed ANY \n and works... tnx a lot :D
no, i tried with removing the \n but it's the same, i'm going to read the faq but i dont think that it depends from the new line
loool yeah i had the opposite now i noticed the error :DD
btw i have a problem yet on this program...
during the filling info he ask the first 2 question, accept values, and then he ask all...
my mistake is corrected!!
xPtr = listPtr; this was the only thing i needed... not the other things... ( now it works )
i had the contrary before...
but i have a lil problem too
...
btw it says that my error is in xPtr
structure has no member named xPtr
sorry i'm not getting it... can't understand
#include <stdio.h>
#include <stdlib.h>
void menu();
// struct containing recipe
mmm it look i put the *... where i missed it?
can u correct directly the code plz? i cant understand well... i passed the head of the list to the pointer...
dont but it has error the same...
#include <stdio.h>
#include <stdlib.h>
void menu();
// struct containing recipe
typedef struct {
char recipeName[40];
char recipeHowTo[1000];
int howManyPerson;
ty all :)
i have c programming by deitel&deitel, but on strings and vector it really sucks:P i'm gonna reading the website u gave me :)
float getCard(float myCard, float myPoints){
myPoints = myCard;
char boolcard[] = "";
while ( strcmp(boolcard,"aa") != 0 ){
printf("Your current points is...
float getCard(float myCard, float myPoints){
myPoints = myCard;
char boolcard = "aq";
while ( strcmp(boolcard, "aa") != 0 ){
printf("Your current points is...
i put something there put it crash the same
95 C:\Users\Antonio\Desktop\desktop\programmazione\DEV\main es1 1.c [Warning] passing arg 1 of `strcmp' makes pointer from integer without a cast