15,551 Topics
| |
Hey everyone, i've got myself stuck on a problem of determining a winner. While doing a battle if a player runs out of cards it will use the last card(card that started the battle). I cant seem to get all the bugs out of it; and i think im overlooking … | |
Authors of PVS-Studio static code analyzers offer programmers to test their sight and to try finding errors in C/C++ code fragments: https://software.intel.com/en-us/blogs/2015/04/24/lets-play-a-game-find-bugs-in-popular-open-source-projects | |
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 … | |
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("********************************************************************************"); … | |
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 … | |
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 … | |
*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 … | |
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) | |
``***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 … | |
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> … | |
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 … | |
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 … | |
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 … | |
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? | |
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. | |
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 … | |
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 … | |
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 ) … | |
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? | |
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 … | |
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 ? | |
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 … | |
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 … | |
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'; … | |
#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 … | |
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 … | |
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 … | |
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 | |
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 … |
The End.