15,552 Topics

Member Avatar for
Member Avatar for cdn88

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 …

Member Avatar for Ancient Dragon
0
222
Member Avatar for makibao

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 …

Member Avatar for Ancient Dragon
0
137
Member Avatar for cse.avinash

Sir, how to take input from user as large as 2^64 and the perform its calculation. Please help me.

Member Avatar for rubberman
0
131
Member Avatar for gyuunyuu

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 + …

Member Avatar for gyuunyuu
0
418
Member Avatar for programing

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 …

Member Avatar for WaltP
-1
113
Member Avatar for DJSAN10

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..??/

Member Avatar for Narue
-1
113
Member Avatar for bantex07

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 …

Member Avatar for WaltP
-2
149
Member Avatar for DrewS

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 …

Member Avatar for rubberman
0
92
Member Avatar for DJSAN10

in which language are definitions of built in functions like printf written...assembly or C?

Member Avatar for DJSAN10
0
159
Member Avatar for nadleeh

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 …

Member Avatar for Ancient Dragon
0
98
Member Avatar for efronefron

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: …

Member Avatar for efronefron
0
814
Member Avatar for hohoho89

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); …

Member Avatar for rubberman
0
138
Member Avatar for lochnessmonster

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 …

Member Avatar for rubberman
0
108
Member Avatar for Dr_Anonymous

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 …

Member Avatar for Adak
0
107
Member Avatar for cse.avinash

" 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. …

Member Avatar for Adak
0
1K
Member Avatar for jmk5

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 …

Member Avatar for jonsca
0
5K
Member Avatar for Phesojon

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 …

Member Avatar for rubberman
0
224
Member Avatar for himgar

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"); …

Member Avatar for L7Sqr
0
85
Member Avatar for vineeshvs

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; } …

Member Avatar for vineeshvs
0
258
Member Avatar for dizzyboy

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() …

Member Avatar for dizzyboy
0
208
Member Avatar for fab2

[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; …

Member Avatar for fab2
0
108
Member Avatar for cayman

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 …

Member Avatar for Ancient Dragon
0
676
Member Avatar for shinsengumi

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 …

Member Avatar for Ancient Dragon
0
210
Member Avatar for s†ig†rex

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.,

Member Avatar for ndeniche
0
58
Member Avatar for themask18

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

Member Avatar for themask18
1
152
Member Avatar for rjbrjb777

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 …

Member Avatar for WaltP
0
4K
Member Avatar for NickJoe

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 …

Member Avatar for gerard4143
0
275
Member Avatar for servooo

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 …

Member Avatar for gerard4143
0
377
Member Avatar for zhyne06

my prof ask us to make a code for the game FLAMES using function oriented program.wherein the prog. will count the number of same letters to be cancelled in each name and will print the result. ex. julie ann :2 mjhay :2 marry i dont know whats wrong w/ my …

Member Avatar for zhyne06
0
281
Member Avatar for n3red

Ok in a simplex txt file i have some text written in all capital letters. Now i need to take that text convert it to lowercase and then ucfirst in this way. Ex: MY NAME IS MIKE AND I GO TO LIBRARY EVERY DAY. I ALSO LIKE PIE. Now i …

Member Avatar for abhimanipal
0
122

The End.