15,554 Topics
![]() | |
There is a problem I am having inside the AddToEnd function. At this line: [QUOTE]*ptrL->ptrNext = ptrInput;[/QUOTE] it gives this error: [QUOTE]lab8.c: In function ‘AddToEnd’: lab8.c:105: error: request for member ‘ptrNext’ in something not a structure or union [/QUOTE] Can anybody tell me why? P.S. I realized that I do … | |
source base = 2 value = 1001 (9 in base 10) target base = 10 new representation = 9 source base = 16 value = 1FA (4346 in base 10) target base = 8 new representation = 10372E | |
Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments … | |
please help me to create a student information portal using stucture and union program in c.it should contain five sudents. *for inputs we should use struct and for output we should use union and it also should have a controls...previous page, next page and escape for exit. i don't know … | |
Sir, how to take input from user as large as 2^64 and the perform its calculation. Please help me. | |
I have found numerous examples involving only arithmetic operations but mine requires to deal with functions - min(x, y), max(x, y), sqrt(x), abs(x), fact(x). What I don't understand is how my program can interpret those functions and set the precedence for them. Examples: 4 + 5 -> 4 5 + … | |
i want you to help me to find the mode in array size n if there two element have same number of repetion there is no mode . mode :: the most number is repeted . e.g {1,2,3,4,3} the mode is 3 but if we have {1,2,3,1,3} there is no … | |
This is a part of code i read in a standard book.. f() {} . . . int *ip; ip=((int *)f); my question is..f gives d address of function..then wat is d need to typecast..??/ | |
SomeBody Know This Problem help me to find my error here we i run this program hmm.... the output is two the aquarius and pieces and sometimes the march cannot read ! [CODE] #include<stdio.h> #include<conio.h> #define s scanf #define p printf char w[50]; int t; void main() { clrscr(); p("Enter … | |
Hello, I am supposed to implement heapsort proposed by floyd. I got it as a home work. I know the simple implementation of heapsort. but what i am supposed to do is- while sorting, instead of comparing 3 values (parent and two childs), i need to compare only 2 child … | |
in which language are definitions of built in functions like printf written...assembly or C? | |
so im tryna save input from stdin to a node. but every time i run the loop it resets whats in my node. idk if that makes sense.. heres my code.. [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> struct queue_node { char word[11]; struct queue_node *next; } node; struct queue_node … | |
I have already included string.h, I've even tried defining GNU but I still get the same warning/error when I compile it. below is not really code, its the warning/error I get [CODE]bravo:~/60-141/Assignment/Assignment3>cc assign3.c "assign3.c", line 94: warning: implicit function declaration: strndup Undefined first referenced symbol in file strndup assign3.o ld: … | |
![]() | Hi, I was wondering how to make client connect to multiple servers. I decided to use select for this but I don't see how it should work well like in the server. Pseudocode: void connect_to_server(char argv[]) { if ((sock = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) == ERROR) { perror("socket problem: "); exit(1); … |
i'm currently wanting to do this in C. store the following into a giant string "======================" '\n' "Month : " [B]st.month[/B] "/n" "Day : " [B]st.day[/B] I could do this easily if i didnt have members of a structure that i need to obtain their value(they are bolded). How do … | |
Hey guys i have been working on a report card program lately and i hit a hard place i used a do-while but i cant restrict characters from being posted without the program crashing and i don't wanna be monotamous so can u guys help heres a piece of the … | |
" After I have compiled my program I have an executable file. To execute it from the command prompt: test.exe <test.in >test.out Where test.exe is the name of my compiled executable, test.in is a text file for input, test.out is a text file that your resut will be output to. … | |
Hi all, I'm posting about an error I guess is pretty common, and I've done a Google and forum search before posting, and have spent ages trying to sort this myself. Just thought I'd clear that! I have a program program that runs off the terminal, adds two numbers together … | |
I can't run my program using this code. Please help me to edit it with the same function. Thanks in advance. [CODE]#include<stdio.h> #include <stdlib.h> main() { FILE * fp; int bmenu,amenu,an; float balance=0,deposit=0,withdraw=0; char c,quit,name[50],address[50]; clrscr(); printf("**********BANK MENU**********\n"); printf(" ---- ---- \n"); printf("What do you want to do?\n"); printf("[1] Log-in … | |
I want to print the following sequence. __* _*** ***** _*** __* Here _ denotes space. I have written half program to print upto 5 stars and not able to get for down. [CODE] #include <stdio.h> void main() { for(int i=1;i<=3;i++) { for(int j=1;j<=3-i;j++) printf(" "); for(int k=1;k<=(2*i-1);k++) printf("*"); printf("\n"); … | |
1.[ICODE]#include<stdio.h> #include<math.h> #include<stdlib.h> double **memalloc(int M,int N); main() { int i,j; double **a; a=memalloc(2,2); printf("a\n"); for(i=0;i<2;i++) { printf("\n"); for(j=0;j<2;j++) { a[i][j]=i+j; printf("%f\t",a[i][j]); } } } //FUNCTION-memalloc double **memalloc(int M,int N) { int i; double **y; y = malloc(M* sizeof(double *)); if(y == NULL) { printf("out of memory\n"); return 0; } … | |
Im a beginner in C,Can anyone help me? :?: I have problems when I encounter double or multiple spaces between words. [CODE] #include <stdio.h> FILE *fpr; int main(int argc,char *argv[]) { if ((fpr = fopen(argv[1],"r")) == 0) { printf ("\nFile %s Don't Exist!\n", argv[1]); } fprintf (fpr,"%d",count()); return(0); } count() … | |
[ICODE] Hi, I am having problem in getting a menu' on the screen by using a function. At the compiling time I do not get any error but at the running one it doesn't produce any result. Here the code:[/ICODE] [CODE] #include<stdio.h> void day_menu(); int main() { day_menu; return 0; … | |
![]() | Hi there folks I have done quite a bit of C programming for embedded environments and PC console programs but never for windows applications and only once before with the PC COM port. When I did program for the COM port before it was on older machine, and used conio.h … |
Can anyone help me learn how to create a directory in C? Right now I have a program that writes to a file, and now I need to create a directory to store the file. My operating system is Windows XP. Sample programs, commands, links to tutorials will be greatly … | |
hey guys.,i want to make a guessing game in turbo c, with a range of 0-100, the program should guess, or the person guesses., | |
Hi Brothers and Sisters in C programming, I consider myself a advanced-beginer of C programming. I wish to improve my knowledge to become even better, so I need you guys to suggest me some books that may help me be like you guys, an advance programmer in C..Thanks!! Cheers, themask18 | |
hello friends, I have generated a csv file with 27 columns. third column is of time and i want to sort all the data according to this column in ascending order. so can you please tell me how to do this.? i have no clue where i should start. i … | |
So after many hours of mulling this over and now missing several hairs that used to populate my head, I decided to seek outside help. In my introduction to computer systems class, we have been tasked to do things that are built into the language without using them. I understand … | |
Hi, i have a problem with getline function in cpp program on os x Error: main.cpp:158: error: 'getline' was not declared in this scope i read that in os x are some issues with getline() function but i am newbie and i dont know what to do. is possible to … |
The End.