15,551 Topics

Member Avatar for
Member Avatar for cse.avinash

I tried a lot to understand the code, but unable to get it. Help me with this code. [CODE]main(t,_,a) char *a; {return!0<t?t<3?main(-79,-13,a+main(-87,1-_, main(-86,0,a+1)+a)):1,t<_?main(t+1, _, a ):3,main ( -94, -27+t, a )&&t == 2 ?_<13 ?main ( 2, _+1, "%s %d %d\n" ):9:16:t<0?t<-72?main(_, t,"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l,+,/n{n+\ ,/+#n+,/#;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l q#'+d'K#!/\ +k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# ){n\ …

Member Avatar for chhabraamit
0
119
Member Avatar for MaAr91

Hello, been trying to work out my code. but somehow it doesnt work at certain parts. can't use math.h by the way. [CODE]#include <stdio.h> #include <conio.h> int main(void) { int input,ans,i,total,j; int hex[16]={0},counter=0,hexadecimal1=0,hexadecimal2=0,hexadecimal3=0,hexadecimal4=0; char value,value2,value3,value4; char hexadecimal[17]={0,0,0,0,0,0,0,0,0,0,'A','B','C','D','E','F'}; printf("enter value:"); scanf("%d",&input); while(input>0){ i=1; ans=input%10000; input/=10000; while(ans>0){ total=ans%10; ans=ans/=10; j=total*i; i=i*2; hex[counter]=hex[counter]+j; …

Member Avatar for WaltP
0
308
Member Avatar for cse.avinash

Is there any alternative to return 0.? [B]*void main() should not b use as an alternative.[/B]

Member Avatar for Narue
0
97
Member Avatar for jeff4L

I'm suppose to translate a virtual address to a physical address with the use of a fully-associative page table. It compiles but it won't run. Can anyone help me and point out the errors :P THANK YOU! [CODE]# include<stdio.h> # include<stdlib.h> /* Declare global vars */ int ms; int ps; …

Member Avatar for abhimanipal
0
244
Member Avatar for thetwig

Hey guys, I have an integer validation problem.. i wanna validate integers for fractions where the numerator must be 0 <= num <= 20, and the denominator must be 1<= den <= 20.. and later on i want to multiply them together and simplify, but only the validation has a …

Member Avatar for BarSed
0
157
Member Avatar for yongj

I'm trying to create a C console program that produces a directory listing (one filename per line) of all files matching a specified filename pattern. I'm kind of clueless as to where to start and was wondering if someone could give me a boost? I'm mainly a C++ coder but …

Member Avatar for Ancient Dragon
0
164
Member Avatar for chester1908

Hello all. I seriously need some help with eclipse for C installation because i haven't got this stuck and angry since 10 years ago when i was a kid and got my first pc,and couldn't install audio drivers :P. Okay,lets get to the point.Here are the issues: I used to …

Member Avatar for yashsaxena
0
199
Member Avatar for adot76

I cannot figure out number 3 and 4. Median and standard deviation. I think i am close but not getting the right answer. Any ideas? Thanks. /* 37 April 2011 Assingment: Project 2 I revision 1,2,5,6,7 and comments and formatinng done.. need 3,4 Description: Implement a menu system managing an …

Member Avatar for abhimanipal
0
980
Member Avatar for axn

Errors when compiling. its seem to be complaining about line 52 and i do not get output of second file.(data.words) strarray[numStrings++]=strdup(word); $ gcc -Wall -ansi prt.c -o prt In function ‘main’: warning: implicit declaration of function ‘strdup’ warning: assignment makes pointer from integer without a cast [CODE]#include <stdio.h> #include <stdlib.h> …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for smee s

The name of our project is 'microcontroller based serial debugger',it consists of AT89s51 microcontroller and a LCD display the idea of the proj is that by using 1 main debugger program we have to control the LCD rolling display program.first we have write the debugger program and right below that …

Member Avatar for nezachem
0
145
Member Avatar for ak24

Hello... I'm learning C with "The C Programming Language" book, and I'm stuck at exercise 1-10 which asks to: "Write a program to copy its input to its output, replacing each tab by \t, each backspace by \b, and each backslash by \\. This makes tabs and backspaces visible in …

Member Avatar for ak24
0
1K
Member Avatar for techie1991

Even after looking at a lot of books, I am not able to understand the problem in the following code: [CODE] //1.c static int y=23; void abc(int a){ printf("%d\n",a); } [/CODE] [CODE] //2.c #include<stdio.h> #include "1.c" int main(){ abc(12); printf("\n"); printf("%d\n",y); return 0; } [/CODE] I can understand that the …

Member Avatar for techie1991
0
233
Member Avatar for sc8515

I have a simple program to run the Romberg algorithm however when I tried to compile it, it keeps returning that error: conflicting types for 'vector' and error: conflicting types for 'free_vector' I really cannot see why this is happening. Would you be able to advice? [CODE=c] #include <stdio.h> #include …

Member Avatar for Ancient Dragon
0
423
Member Avatar for trume

Hi! I have to do 2 different codes for my task. I finally did the 1st and now I need to do the 2nd one too. But I don't know the way to do it differently. Do anyone know how to make this code more simple? It needs to have …

Member Avatar for Prashanth Jeyes
0
127
Member Avatar for n3red

Hello, Can someone please explain to me because i do not understand the tutorials on pointers. anyways i have a struct: [CODE] struct driver { int id; char name[30]; int runs; } //I am reading a file which goes in order ID NAME RUNS as: 1 Super Man 5 //I …

Member Avatar for abhimanipal
0
157
Member Avatar for mitmehta22

hello sir. i am trying to create a program that will perform read/write operation on csv file. i am using structure. my structure and code is as follow: struct item { int item_no; char item_name[20]; float rate; }i1; main() { . . fprintf(fp,"%d,%-20s,%.2f\n",i1.item_no,i1.item_name,i1.rate); . . . fscanf(fp,"%d%*c %s%*c %f",&i1.item_no,i1.item_name,&i1.rate); printf("%d …

Member Avatar for abhimanipal
0
7K
Member Avatar for rockerjhr

Suppose there are n ducks floating on the pond in a circle. The pond is also home for an alligator with a fondness for ducks. Beginning at the 1st position, the alligator counts around the circle and eats every mth duck (the circle closing as ducks are eaten). For example, …

Member Avatar for rockerjhr
0
193
Member Avatar for aquarian

hi all, hop all r fine. i want source code of "Apriori Algorithm for finding frequent itemsets" in c/c++ or any other language. can anyone plz send me that. i'll be realy v thankful.

Member Avatar for Ezzaral
0
1K
Member Avatar for anirudhruia

[CODE]#include<stdio.h> int main() { char *arg[10],*c; int count=0; FILE *fp,*fq; printf("Name of the file:"); scanf("%s",arg[1]); fp=fopen(arg[1],"w"); printf("\t\t%s",arg[1]); printf("Input the text into the file\n"); printf("Press Ctrl+d to the stop\n"); while((*c=getchar())!=EOF) { fwrite(c,sizeof(char),1,fp); count++; } return 0; } [/CODE]

Member Avatar for untio
0
132
Member Avatar for harinath_2007

Hello, i am looking for creating a progess bar in c application.. I know how to create it in JAVA but i want it in C..

Member Avatar for Moschops
0
101
Member Avatar for ILIDAN

Can anyone help me to make a basic for loop using an array for example candy to candies not so complicated so I can simulate on my own help me and sorry for my bad English thanks :))

Member Avatar for ILIDAN
0
141
Member Avatar for write2diba

I am a beginner in C programming language.I have seen many compilers around but I cannot understand which one will be better to use.Plz help me. Thanks....

Member Avatar for rubberman
0
2K
Member Avatar for gman1991

[CODE]#include <stdio.h> #define CALORIES 150 #define WEIGHT 15 int main() { double beer; double money_spent; double total_spent; double total_beer_consumed; double total_calories_consumed; double weight_gain; printf("On average, how many beers will you consume each day?\n"); scanf("%lf\n", &beer); printf("On average, how much will you pay for each can of beer?\n"); scanf("%lf\n", &money_spent); // …

Member Avatar for gman1991
0
106
Member Avatar for LanguidLegend

Hi, I was wondering if someone could help me with an issue I'm having in my code. [ICODE]#include <stdio.h> #define SZ 7 int* a[SZ]; int x, y, z; void populate() { x = 1; y = 2; z = 3; a[0] = &x; a[1] = &y; a[2] = &z; a[3] …

Member Avatar for csurfer
0
176
Member Avatar for wildplace

hi, i have the following codes, is there any way to check if the user entered a character instead a number? btw, i dont want to change the input type from long to char thanks =D [CODE] long input; printf("enter a digit to your list: "); scanf("%ld",&input);[/CODE]

Member Avatar for Narue
0
153
Member Avatar for alex1050

I need help understanding the for statements. This segment of code repeats itself as so 1 22 333 4444 However, i need understanding in how it repeats itself. Thanks [CODE]#include <stdio.h> int main () { int i,j; for(i=1;i<5;i++) { for(j=1;j<=i;j++) printf("%d",i); printf("\n"); } }[/CODE]

Member Avatar for tomato.pgn
0
75
Member Avatar for sabah88

hi, i doing a project to send MMS using PIC16F876.. how to define the pic16f876 in c++? thank in advance.

Member Avatar for awie10007
0
214
Member Avatar for dalk8978

Can someone please convert these into printf statements.I cant get it to work .Thanks [CODE]cout<<character[i]<<" "<<int(character[i])<<endl; cout<< numbers[i]<<" "<<char( numbers[i])<<endl;[/CODE]

Member Avatar for Narue
0
32
Member Avatar for rhythm1576

hey guys I am new to the programming language and have an assignment due today and I am stuck on this. Its a scrable programming in C. I tried but cannot figure out how the main function should work out. Here is my code with the assignment instruction. If anyone …

Member Avatar for WaltP
0
279
Member Avatar for ammukj

hai i want to track a particular frame from real time webcam video and then use it to simulate mouse movements.can anybody know how to get coordinates from tracking and how it can be integrated with mouse coordinates?

Member Avatar for myk45
0
36

The End.