15,540 Topics
| |
what would be the formula in getting the Hundredth's place, tenth's place, and one's place of a 3 digit integer?? | |
hi how are you ? i have project in loop but i dont know how to solve it ? Write a C program to read results of class of 20 students. Each student has 4 results, distributed as follow: • Test 1 25 % • Test 2 25 % • … | |
good day and a happy new year to you folks. im trying to copy the contents of one text file to another text file but i cant seem to get it right. written below is the code im using but it does not seem to work. any help please? [CODE]#include … | |
Could anyone please explain what exactly bootstrapping is? As far as i know it is something related to "the compiler for C itself wriiten in C" | |
hi! iam a newbie how can i get the 10th, 100th, 1000th place for example: the interger is 1235, the ones place is 5, the tenth place is 3, the hundreds place is 2, and the thousands place is 1, please help me and how do you program it at … | |
Hi everyone. I am an undergraduate student of mechanical engineer and i am trying to make a program that will convert a decimal number to a binary one and a hexadecimal one using c . The problem is that i am not familiar with c at all. I am only … | |
hi guys,Iam learning the c language and still a green one really.I have this program am trying to develop using code blocks 10.5.Th code is as follows; #include<stdio.h> #include<ctype.h> #include<stdlib.h> struct secguard { char first_name[40]; char Last_name[40]; char gender; int age; int ID; char start_date; int work_rec; }; void main(void) … | |
hey all, first post of a beginner coder ;), I keep geting the following error : conflicting types of 'graphic_choice'.. its not a warning so it wont compile. I haven't finished case 7 so that may have some syntax issues. hope this isn't to big of a code block? i … | |
Hi there, I was wandering if anyone can give me a brief explanation on how to connect my C application to the Internet. What i would like to do in the end is to access a web page trough the application and have means to read the html code behind … | |
And yet again here I am asking for help. Thing is, two times I've came to this forum too find guides as answers and since I've always been pointed in the right direction, I humbly ask for guidance one more time. I've been trying to study graph's and been using … | |
Hi! I've got this structure struct *cell{int row,int column,int distance, struct cell *next}. By calling a function, I fill a linked list . The problem is that I cannot find how to delete the nodes that have the same row and column.Let me provide an example. Let's say that the … | |
[CODE] /usr/lib/gcc/i486-linux-gnu/4.4.3/../../../../lib/crt1.o: In function `_start': (.text+0x18): undefined reference to `main' collect2: ld returned 1 exit status [/CODE] Can anyone guess the reason for this error. It is not displayed as an error. But the programme didn't get compiled. | |
i'm wondering how to use a function named timer(); while executing another function at the same time??? can anyone help me with this?? i researched about threading but it's too complicated for me | |
Hey guys,I admit I do commit Mistakes But this piece of code got well executed in my college (USED TURBO C++) But in my home PC (UBUNTU) Its not getting COMPILED [CODE]#include<stdio.h> /*header*/ //#include<conio.h> /*header*/ #include"maths.h" int main() { int rur1,rur2,b,a,c,x,y; int d; //clrscr(); printf( "Enter the value of A … | |
hey guys , its my first but hopefully not last post , i have this wordcounter(actually recepie reader) project it looks for the word "csoki" given in input and then if it finds it it asks perfcentage of "csoki"(short for chocholate in my lang) and stores the value in array … | |
im reading a text file that contains data in a fashion similar to this $1.2.3.4.5.6$ %7.8.9.10.11.12% *a.b.c.d.e* what i want to do is read only data enclosed by '$' and skip to the next line if the data contained are not. written below is my code. im kind of stuck … | |
I have a unit conversion program that needs to take in a float and 2 strings from standard input. My previous solution was: [CODE] float orig_quant; char *orig_name = (char*) malloc(MAX_CHARS); char *new_name = (char*) malloc(MAX_CHARS); fscanf(stdin, "%f %s %s", &orig_quant, orig_name, new_name); [/CODE] However, this only works if the … | |
Dear friends, hello to you all as this is my first thread - question to the forum. This is my problem, which is a school exersize: I create a linked list which contains three numbers r,c,d per node From this list I have to create a hash table htable[7] with … | |
I have to read text file line by line to multidimensional array. I have this code: [CODE] char *data; data = (char*)malloc(size_d); while(fgets(data, size_d, fp) != NULL) { printf("[%d] %s ", strlen(data), data); } [/CODE] I want to put every line to char array. Some suggestions? | |
[CODE]typedef struct{ char *name; bool exists_in_sys; convert_table *data; } unit; float orig_quant; unit *orig_unit = (unit*) malloc(sizeof(unit)); unit *new_unit = (unit*) malloc(sizeof(unit)); printf("Enter original quantity, original units, new units\n"); fscanf(stdin, "%f %s %s", &orig_quant, orig_unit->name, new_unit->name); printf("Original unit: %s\n", orig_unit->name); printf("New unit: %s\n",2) new_unit->name);[/CODE] OK, so I would like to … | |
Hello to all Actually I want to handle the usb interrupt from c program ....... For example when some one insert usb drive in pc then my program call certain function ..... I try too search in google but i did't get any help i know little about software interrupt … | |
I am trying to create an abstract data type for matrices. I have a function matrixInit to dynamically allocate memory for the structure and for the array. matrixCopy copies one matrix into another. there are functions to subtract, add and multiply matrices that return a pointer to memory where the … | |
Hi, I am using a C program to open and scan a file containing rows of x,y coordinates. But I need to use the same program to open different files having different number of rows.Therefore, I cant fix a constant number for the array. This is what I have used: … | |
| |
Frame complete game, only the outer edges of a square drawn on the table is a game played with 2 players. Sequence of a square drawn from the player wants to draw a non-edge. Underline that this edge of the square is not the last edge of the square is … | |
It,s me having the same problem.. I want to pass some parameters from the main method to some other method. u cannot declare any variable names or pointers. I'm having an array of int with size 12500. if u want any variable or a pointer, use array blocks for it. … | |
hi does anyone know any good tuorials about file managment file copying file storing etc and also tutorials on end of files, storing eofs and string manipulation thanks it would be much appreciated | |
write a program to get a 2 d character array and arrange them in alphabetical order. i've tried it,but its not getting compiled. im jus a beginner.so, someone plz help me. given below is my program.... #include<stdio.h> #include<conio.h> #include<string.h> struct st{ char a[5][10]; }ppl; int main() { int i,j; char … | |
why do we need data structures, if it is a way of storing data in computer in an efficient way, then the computer itself has the ability to store the data in an efficient way, why do we create linked lists n other stuffs. why do we use stacks,trees n … | |
I want know how to find the type of image weather it may be jpeg/png/tiff/bmp by using C.........any ideas |
The End.