15,540 Topics

Member Avatar for
Member Avatar for nhes2x

what would be the formula in getting the Hundredth's place, tenth's place, and one's place of a 3 digit integer??

Member Avatar for Narue
0
123
Member Avatar for june 200090

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 % • …

Member Avatar for june 200090
0
170
Member Avatar for iwanttolearnc

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 …

Member Avatar for iwanttolearnc
0
213
Member Avatar for DJSAN10

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"

Member Avatar for DJSAN10
0
89
Member Avatar for salvador01

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 …

Member Avatar for sharathg.satya
0
101
Member Avatar for magaiver

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 …

Member Avatar for WaltP
0
169
Member Avatar for arlir

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

Member Avatar for gerard4143
0
148
Member Avatar for l1ttledb

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 …

Member Avatar for sree_ec
0
264
Member Avatar for Benkyou

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 …

Member Avatar for sree_ec
0
341
Member Avatar for Benkyou

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 …

0
60
Member Avatar for ambageo

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 …

Member Avatar for ambageo
0
188
Member Avatar for aplh_ucsc

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

Member Avatar for gerard4143
0
78
Member Avatar for trust_noone

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

Member Avatar for Trentacle
0
90
Member Avatar for hsetaknev

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 …

Member Avatar for Trentacle
0
146
Member Avatar for TomaCukor

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 …

Member Avatar for WaltP
0
252
Member Avatar for iwanttolearnc

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 …

Member Avatar for iwanttolearnc
0
132
Member Avatar for rtk1865

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 …

Member Avatar for Narue
0
22K
Member Avatar for cuckas

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 …

Member Avatar for ambageo
0
331
Member Avatar for fka

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?

Member Avatar for fka
0
132
Member Avatar for rtk1865

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

Member Avatar for rtk1865
0
203
Member Avatar for prvnkmr194

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 …

Member Avatar for prvnkmr194
0
104
Member Avatar for Castiel1631

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 …

Member Avatar for Thaylo
0
1K
Member Avatar for phobos666

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

Member Avatar for Narue
0
130
Member Avatar for ateryad
Member Avatar for Narue
-1
73
Member Avatar for halil.burak

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 …

0
118
Member Avatar for aplh_ucsc

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

Member Avatar for aplh_ucsc
0
199
Member Avatar for moroccanplaya

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

Member Avatar for Adak
0
97
Member Avatar for varma1993

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 …

Member Avatar for Adak
0
113
Member Avatar for arshi9464

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 …

Member Avatar for Jason Giggs
0
187
Member Avatar for udaykrishnag

I want know how to find the type of image weather it may be jpeg/png/tiff/bmp by using C.........any ideas

Member Avatar for Narue
0
57

The End.