Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #13.9K
Ranked #4K
~25.7K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums

12 Posted Topics

Member Avatar for rithish
Member Avatar for delta_frost
-1
117
Member Avatar for sruthi atluri
Member Avatar for el33t

Hello, In the beigin of your program: line 54 and line 58: Are you sure that you have to use "&" to store data in a char array with fscanf? And to print the content of the "s" variable with printf, you don't need to use &s, you juste have …

Member Avatar for el33t
0
259
Member Avatar for ilovephil

You might look your function [B]void delete_at_end(nodepointer &head)[/B], [B]head[/B] type is [B]struct node[/B], but in your [B]main[/B] function, you gave to [B]delete_at_end[/B] a [B]struct node *[/B] variable. It might be a reason why your program doesn't works (and I think your [B]push()[/B] function doesn't works too).

Member Avatar for savoie
0
140
Member Avatar for angelineang

I think you program might be easier to read and modify if you put some part of code in fonction other than main(). for exemple: [CODE] void print_main_menu(void) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_BLUE); printf("WELCOME TO CHEMY'S CHEMISTRY"); SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE), BACKGROUND_RED | BACKGROUND_INTENSITY); printf("\nMAIN MENU\n"); printf("*********\n\n"); printf("Please select option: \n"); printf("[c]CHEMISTRY QUIZ\n"); …

Member Avatar for Ab000dy_85
0
299
Member Avatar for jdm

Hello jdm, What does your programs actually: The server It is just waiting for incomming connection, and when a connection is done, it sends a string to the client after what he close the connection and wait for the next incomming connection. The client It connects the ther server, print …

Member Avatar for savoie
0
229
Member Avatar for linezero

There is few mistakes in your program: What's happen if you tried to add more than 20 entries? What's happen when you have two (or more) entries with the same Name value and you try to delete one of them? So I suggest you four tips: -- try to use …

Member Avatar for savoie
1
23K
Member Avatar for shean1488

[CODE] #include<stdio.h> #define SIZE 100 int getline(char * line, int lim); int getline(char * line, int lim) { int i; char c; for(i=0; i<lim-1 && (c=getchar()) !='\0'; ++i) { *(line+i) = c; } /* you already saved c in line[i] if(c=='\n') { line[i]=c; ++i; }*/ line[++i]='\0'; return i; } main() …

Member Avatar for savoie
0
261
Member Avatar for passionated

When you do "scanf("%c", &a);" you save only one character, so you can't use "printf("%s", &a);" to display the character saved in "a", if you execute this code, a segfault might append. To display the caracter in "a", you have to use "printf("%c", a);".

Member Avatar for WaltP
0
605
Member Avatar for coding101

If you work with a Linux OS, this functions are system call, you might find them in the kernel source code

Member Avatar for savoie
0
165
Member Avatar for coding101

Hi, if you want to get a web page with http protocol, you will have to send a request first, and then the server will answer back with the web page. When you conect to the server, your program will be the master, so you will have no answer before …

Member Avatar for savoie
0
126
Member Avatar for sharpsplit

Hi, According to VernonDozier, you might use structure with a char array and two integer. You build and array with this strucure, then, for every line, you will have to use: [CODE] sscanf(line, "%s %d %d", struct_abc[i].char_array , &(struct_abc[i].first_int), &(struct_abc[i].second_int));[/CODE] Hope it help you

Member Avatar for savoie
0
168

The End.