15,552 Topics

Member Avatar for
Member Avatar for yushuan718

Hello, This is my first post here. I had learned c/c++ for about half a year, and hope now to move into win32 non-console programming. I use VC 6.0 as my IDE and had successfully created a simple "Hello World" project (built by VC 6.0) However, I do not know …

Member Avatar for yushuan718
0
90
Member Avatar for Graphix

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

Member Avatar for Graphix
0
232
Member Avatar for uzair ahmad

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 …

Member Avatar for WaltP
-6
158
Member Avatar for johndoe444

Hi, What is the significance of the following format specifiers: [CODE]%10s %.10s %-10s %.15s %-15s %15.10s %-15.10s[/CODE] Thanks.

Member Avatar for WaltP
0
159
Member Avatar for asm2hex

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 …

Member Avatar for Murtan
0
121
Member Avatar for Karthika_g

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

Member Avatar for Murtan
0
56
Member Avatar for Karthika_g

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 …

Member Avatar for Karthika_g
0
139
Member Avatar for michelle1

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 …

Member Avatar for michelle1
0
87
Member Avatar for bharath12345
Member Avatar for ROTC89

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 …

Member Avatar for ROTC89
0
333
Member Avatar for vivek_295

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 …

Member Avatar for Ancient Dragon
0
120
Member Avatar for johndoe444

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 …

Member Avatar for nezachem
0
106
Member Avatar for malaks123

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

Member Avatar for TotoTitus
0
130
Member Avatar for niroop
Member Avatar for TotoTitus
0
79
Member Avatar for matthewl

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

Member Avatar for matthewl
0
138
Member Avatar for dennis.d.elston

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 */ …

Member Avatar for dennis.d.elston
0
108
Member Avatar for Iwillpassc

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 …

Member Avatar for kamiyo
0
192
Member Avatar for Champhero

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

Member Avatar for WaltP
-4
72
Member Avatar for anthonytan

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

Member Avatar for WaltP
0
75
Member Avatar for MAV_DevWantaB

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 …

Member Avatar for MAV_DevWantaB
0
217
Member Avatar for spookytr

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 …

Member Avatar for spookytr
0
114
Member Avatar for malaks123

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

Member Avatar for Ancient Dragon
0
104
Member Avatar for johndoe444

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"); // …

Member Avatar for ithelp
0
97
Member Avatar for staufa

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

Member Avatar for cthoes
0
323
Member Avatar for vibe0405

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 …

Member Avatar for cthoes
0
2K
Member Avatar for rt.arti

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 …

Member Avatar for Dave Sinkula
0
93
Member Avatar for The-IT

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 …

Member Avatar for Dave Sinkula
0
141
Member Avatar for cthoes

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 …

Member Avatar for cthoes
0
98
Member Avatar for johndoe444

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 …

Member Avatar for gerard4143
0
264
Member Avatar for BestJewSinceJC

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.

Member Avatar for BestJewSinceJC
0
77

The End.