15,552 Topics
| |
hi to all, i want to know how to compiler tsr programme using the borlandc v3.1 compiler anyone know plz guide me what is the command to compile and moreover what are the runtime directories that are we set for tsr programe or generating for .com file i will be … | |
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\ … | |
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; … | |
Is there any alternative to return 0.? [B]*void main() should not b use as an alternative.[/B] | |
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; … | |
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 … | |
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 … | |
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 … | |
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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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. | |
[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] | |
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.. | |
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 :)) | |
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.... | |
[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); // … | |
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] … | |
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] | |
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] | |
hi, i doing a project to send MMS using PIC16F876.. how to define the pic16f876 in c++? thank in advance. | |
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] | |
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 … |
The End.