15,551 Topics
| |
Hi, I am currently learning C#, but when I made a program that allows the user to guess a word (in Dutch that's called "Galgje") it repeats the while-statement twice, ignoring the scanf(). I searched with Google and found out that the program is too fast for the user input. … | |
Hello: I have an assignment of making game of life in language "C". My problem is: "The game of Life takes place on a 2d array of cells, each of which may contain an organism. Let occ(i) be the no. of cells adjacent to cell i that are occupied by … | |
Hi, What is the significance of the following format specifiers: [CODE]%10s %.10s %-10s %.15s %-15s %15.10s %-15.10s[/CODE] Thanks. | |
Hello, So lately, I've been coming across this issue of mine and can't seem to find a solid way around this problem. My problem is due to the fact I'm using MYSQL C connector library. And, Attempting to gain all the Row's from my database and store them in a … | |
Can anyone help me in sorting the contents of a .txt file? Sample.txt 1562 Anu 42 1524 Ram 35 1578 Madhu 26 I want to sort into 1524 Ram 35 1562 Anu 42 1578 Madhu 26 | |
Hi, I want to display a particular row of a text file and delete a particular row using C by having account no. as reference.. Can anyone help me in this. Sample.Txt: 1234567890 James 24 50000 1234567891 Allen 32 46500 1234567892 Robert 41 13600 1234567893 Smith 29 49000 Thanks in … | |
Hello there, Is there a library in C which provides a way to defines planes, lines and points as well as vectors. And is also then able to find the intersections of these? I'm not familiar with C at all and am not too sure where to begin searching for … | |
how to display ascii file as image in c(using turbo c) | |
ok so i am trying to put a menu function on the server side of a server client talk program. i would like to know if i am doing this correctly. i am also receiving a error that displays this... [code=c] serve.c: In function âstr_echoâ: serve.c:48: error: âairlineâ undeclared (first … | |
I want to create a DBMS application using c. For this purpose i need to know how to store data in different databases i.e. SQL, Oracle or MS Access. It is ok if the data can be stored in the form of files but then the security of that files … | |
Hi, I want to do this. Suppose I have a source file abc.c: [B][U]abc.c[/U][/B] [CODE]int a[/CODE] another source file test-lib.c which leverage a from abc.c [B][U]test-lib.c[/U][/B][CODE] #include "abc.c" extern int a; int main() { return 0; }[/CODE] Now suppose abc.c is only available as abc.o (source code not available). And … | |
help me to create a program determine if the input word is anagram or not anagram of if the words are the same they are identical.......here's my code can you fix it...................plss... [CODE] # include <stdio.h> # include <conio.h> # include <string.h> int main(){ int menu,i,j,ctr=0; char fw[20],sw[20],let; do {clrscr(); … | |
can anybody explain me in detail about the associativity of operators plz.... | |
hello I am trying to create an robot and I have been having a problem parsing the full string from the conf. As example the IRCServer, botnick, botname parameter does not contain the all the data. as the output shows: [code=output] ##################### # Ablaze Bot # ##################### Loading conf file: … | |
HI everyone, I am new the world of C and am having some problems with a class assignment. Can anyone help? [CODE] #include <stdio.h> #include <math.h> #include <string.h> #define Max_sites 10 /* maximum number of sites allowed */ typedef struct { int site_id_num[4]; /* id number of the site */ … | |
Hi guys, I have a real quick problem, or at least I hope it's really quick. The thing is, I'm studying for a computing C final, and one of the sample questions requires me to take data from a file, put it in a linked list, and then place it … | |
plz help me out to make a program in C. I want someone to tell me that how to make a program of parking slot in which car r entering and leaving...........?????? | |
[CODE]#include <stdio.h> #include <ctype.h> int mygetd(double *result){ char c, buff [ 32 ]; return fgets(buff, sizeof buff, stdin) && !isspace(*buff) && sscanf(buff, "%lf%c", result, &c) == 2 && (c == '\n' || c == '\0');} int main(void){ double value; do { fputs("Enter a floating-point number: ", stdout); fflush(stdout); } while … | |
Salutations All,,, Just looking for some input on this C program..:?: I believe it is working correctly but I think I have my Understanding of bits backWards....... :hair: AnyWho - The program should input a value from user and call the reversebit function to print the bits in both original … | |
a. Implement an iterative function that takes an array of integers and the size of the array, and returns the sum of the contents of the array. b. Modify your function as to be defined in a recursive manner. c. In order to test your functions, implement a program with … | |
plss help me ......make a c program that will input two words and determine if they are anagram or not anagram if the same words they are identical.............this is my code but its not complete plss help me......... [CODE] # include <stdio.h> # include <conio.h> # include <string.h> int main(){ … | |
hi, [CODE] if (CLIENT_HANDLER_THREAD_CREATION_POLICY == POLICY_PRE_CREATE) { int id[NUMTHREADS]; for (int i = 0;i < NUMTHREADS;i++) { int id = i; int status = pthread_create(&client_request_handler_threads[i], NULL, handle_client_requests, &id[i]); } } void* handle_client_requests(void* id) { //printf("server threads spawnd\n"); // create log file thread_id = pthread_self(); sprintf(log_file_name,"t%d.log",thread_id); log_file = fopen(log_file_name, "w"); // … | |
I've been trying to read characters from the keyboard using 'getchar()' but my code always misses one character. Can anyone tell me why this is [CODE=suntax]#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char *argv[]) { char string[50]; int i; printf("Enter a string: "); for (i=0; i < strlen(string); … | |
I am trying to build an address book program. It has two options so far, it reads the addresses and prints them. they are accessible through a menu in the main function. Everything works fine but for the address I need more than 1 word, separated by space, so I … | |
Hello, I am working on a network design problem (min-cost flow) to find the shortest paths for every set of start and destination nodes. Based on the set of inputs (arcs--(which are of the form (start,end) ) and cost) the program calculates the minimum cost from the start to destination … | |
Hello, I started learning C yesterday, I came here with lots of experience in python scripting. I created a script that uses a variable in a for-loop, that was defined before the loop its self. I get this error: [code]skilz.c: In function ‘main’: skilz.c:16: error: ‘prog’ undeclared (first use in … | |
below two are same program except i interchange to accept input value ....in the first program i accept first using scanf and the by getchar()...which didnt allow to accept character value . but in the second program i first accept getchar()value and then scanf(). so it works fine but i … | |
hi, [CODE]#include <stdio.h> int* get_int() { int arr[100]; arr[0] = 5; printf("arr %p\n",arr); return arr; } int main() { int* p = get_int(); printf("got %p\n",p); return 0; }[/CODE] for the code above I get this warning message: [CODE]test-heap.c: In function ‘int* get_int()’: test-heap.c:5: warning: address of local variable ‘arr’ returned … | |
I'm wondering where to find what values system() accepts. For example, I want to list the server's OS type. I already did man system, did not find it very useful. And google is returning a lot but nothing relevant. | |
Hi, For the following code segment I am getting segmentation fault: [CODE]#include <stdio.h> #include <string.h> #include <stdlib.h> char* trim(char* str) { // while consecutive ws at the beginning skip int len = strlen(str); int i = 0,j = len-1,k,l = 0; while (str[i] == ' ' || str[i] == '\t' … |
The End.