15,550 Topics

Member Avatar for
Member Avatar for William_17

Hello everyone, I need a little help from you guys. I need to find the position of some strings , these strings store in a file named "queryfile" , from an other file named "datafile". However, my programe just work on a single "word" , can't find the position of …

Member Avatar for rubberman
0
239
Member Avatar for naz1234

Hello there,i have given the task to make the atm machine using the c program.. my question is, why i got some error..I cant recognize such of that error... [CODE]/*intro*/ #include<stdio.h> #include<conio.h> #include<time.h> int main() { printf("\n --UNIVERSITI TEKNOLOGI MALAYSIA--\n"); printf("\n FACULTY OF ELECTRICAL ENGINEERING\n"); printf("\n 1 SKEL 9\n"); printf("********************************************************************************"); …

Member Avatar for jeevz
1
5K
Member Avatar for Mayukh_1

Hey is there anybody who works with SDCC to make projects for 8051 microcontroller series on Macbook. If yes then can you please post the working make file, specially the part which loads the program in the device. I am confused what to write specifically with the program tag in …

Member Avatar for Mayukh_1
0
740
Member Avatar for samasif

Amazon is famous e-commerce company and one of the biggest Internet based retailer. Amazon is also a great river in South America, largest river by discharge of water in the world. You are provided two text files completely taken from Wikipedia, one file is the description of Amazon the company …

Member Avatar for samasif
0
198
Member Avatar for Gà_1

*I wrote these problems last night (except 19th problem), and code them at the morning, so, hope you all enjoy coding. This is ordiginal post of these 20 problems. Any question about the clarity of problems please post on below or contact me via pm, and your solutions too.* *If …

Member Avatar for Gà_1
0
379
Member Avatar for Mayukh_1

Please explain when this error occurs.. duplicate symbol _Firstdata in: list.o main.o ld: 1 duplicate symbol for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Member Avatar for Mayukh_1
0
127
Member Avatar for hadisur_rahman

``***Help*** me to add more code using c/c++ given bellow program that means (( you can input a password and the output checking the password is valid or not and also the password is hard or weak)) the program,s output show....the given password is too strong or strong or weak …

Member Avatar for Moschops
0
4K
Member Avatar for Bartosz

I am having problem to implement maxOccurs in my XML Schema: error I am getting is Repeating sequence type at line 17 has more than one child My Schema: xs:simpleType name="nameType"> <xs:restriction base="string"> <xs:minLength value="1" /> <xs:maxLength value="20" /> </xs:restriction> </xs:simpleType> <xs:element name="information"> <xs:complexType> <xs:sequence> <xs:element name="personal" maxOccurs="10"> <xs:complexType> <xs:sequence> …

Member Avatar for rubberman
0
211
Member Avatar for Alikhan094

Find Degree for each Node of given graph by Pthread library. The size of graph can be very large, so you need to parallelize program to multiple threads. Number of threads to use should be given from command line. INPUT(graph.txt): first line contains N, number of cities. Next N lines …

Member Avatar for Stuugie
0
311
Member Avatar for Krysis

Hey all, This is my first time posting on GoExpert, so I'm excited to see what the community here has to offer! Anyway, I am currently working on creating a compiler (using Flex and Bison) in C for a subset of the Pascal programming language in my Compilers course... and …

Member Avatar for Schol-R-LEA
0
1K
Member Avatar for kayleigh0411

Everything is working fine in my program with no compliling errors. However, when I go to list the data, it writes it twice. I can't figure out what is wrong in my code. #include <stdio.h> #include <string.h> struct inventory { int number; char toolName[15]; int quantity; double price; }; int …

Member Avatar for kayleigh0411
0
159
Member Avatar for ggregerergr

Hi I am confused on how to implement the bucket sort for strings. If i want an array of strings does that mean i have to use a 2d array?

Member Avatar for rubberman
0
38
Member Avatar for negru

How to access each element of array of words? For example, if I want to find number of vowels in every word of an array. #include<stdio.h> #include<stdlib.h> int main() { int i,n; char **array; do { printf("n=");scanf("%d",&n); } while(n<1); array=(char **)malloc(n * sizeof(char *)); Thanks for replies.

Member Avatar for yoavip
0
91
Member Avatar for HenCa

I have a GUI which I have compiled it with Cygwin and it talks to an electricity meter using Chinese protocol DLT/645. However, in some other parts it seems that IEC1107 is used to communicate. The thing is I would like to know how I can used the current GUI …

0
59
Member Avatar for kubura musah

Hi! I am Abdul-Majeed. I'm a new student to c. I tried writting a game for random multiplication calculation. This was a similer questions for me in my midterm exams. I need friends to inprove it for me. You can also find faults and make corrections to my code #include …

Member Avatar for kubura musah
0
366
Member Avatar for zxz

Hi everyone and good morning :) . i want to simply read from the linux file "urandom" a random number and print it out on screen.just simple as that. this function should be in a file called myrandom.c ( myrandom.h must be made also, which has my function dekleration ) …

Member Avatar for zxz
0
3K
Member Avatar for kubura musah

Hello! I am a new c leaner. Can I call a function from a different function apart from the main ? And is this also part of recursive?

Member Avatar for kubura musah
0
176
Member Avatar for Lan_1

Well I have this code on the knight's tour, where the user will input the knight's starting position. But the problem is, there's too many 9 when I print the output. What's wrong with my algo?? #include <stdio.h> main() { // INITIALYZING THE CHESS BOARD char c, d; // c …

Member Avatar for rubberman
0
202
Member Avatar for sahar.97

I want to scanf array of string in c char *bookName[n]; for(i = 0 ; i < n ; i++){ scanf("%s" , bookName[i]); } but it dose not work ,what is the problem ?

Member Avatar for sahar.97
0
380
Member Avatar for deceptikon

Howdy all. I've recently been considering doing an online meeting or webcast on certain subjects for which I have a lot of experience or knowledge. The idea being that something too long or complex for a Daniweb article can be more easily shown by sharing my desktop and talking about …

Member Avatar for deceptikon
3
174
Member Avatar for studyabroad
Member Avatar for rubberman
0
121
Member Avatar for Raghadmusleh

I need help with the question ASAP please here's the question Write a C program to create and manipulate a one dimensional array (list) of up to a hundred sorted ( ascending order) numbers by using functions to insert, remove, or print elements as follows: Function insert : will search …

Member Avatar for rubberman
0
156
Member Avatar for Mayukh_1

Why the following code is giving me an error like this `make: *** [all] Segmentation fault (core dumped)` the source code is like this #include <stdio.h> int main() { int i; char* ptr = NULL; *(ptr + 0) = 'H'; *(ptr + 1) = 'e'; *(ptr + 2) = 'l'; …

Member Avatar for deceptikon
0
154
Member Avatar for Mohamed_37

#include <stdio.h> #include <stdlib.h> #include <string.h> #include "memo_list.h" void shownotes(Memo item); char * s_gets(char * st, int n); int main() { List Notes; Memo temp; FILE *wfile,*sfile,*lfile,*rfile; char ch; char *line ; /* initialize */ InitializeList(&Notes); /*check IsFull? */ if (ListIsFull(&Notes)) { fprintf(stderr,"No memory available! Bye!\n"); exit(1); } puts("Enter char …

0
103
Member Avatar for masterinex

i have a code which asks creates a structures and then for each it will check if the asks the user to enter a name and it will check if the name already exists within the database. if the name can be found , it will asks the user to …

Member Avatar for deceptikon
0
448
Member Avatar for rayhan85

Hi , here is my code where i tried to separate the computation into a process and the I/O into another process. when i do compile there is no error, but when i run it; it goes spinning and spinning without stoping.. even i declared the lock variabe in a …

Member Avatar for rubberman
0
103
Member Avatar for rayhan85

Please l have single processor C code and I need to write it in multiprocessor with mutul exclusion. Can any ony one help me. I have uploaded C code as attachement

Member Avatar for Schol-R-LEA
0
253
Member Avatar for Seandean_1

I cant get my intended result I want my program to display can anyone help me. The program is to print the workers name who are listed in the struct and if you don't enter any of those names I should print worker name doesn't exist. Can someone tell me …

Member Avatar for Seandean_1
0
209
Member Avatar for Nataliya_1

I have to create function that reads the binary file of futball matches and shows the legue table. The table should contains, for each team, the name of the team, number of points, goals scored and goals conceded. Give 3 points for a win and 1 for a draw. The …

Member Avatar for Schol-R-LEA
0
211
Member Avatar for brandon66

Im trying to implement queue with a linked list i think i have the enqueue function correct but im having problems with the dequeue. I can get it to delete the first number but then the rest of the list is empty can someone point me in the right direction? …

Member Avatar for brandon66
0
245

The End.