15,548 Topics

Member Avatar for
Member Avatar for jeevsmyd

I am looking for a good and neat looking C compiler ! Can I do ANSI C programs in Microsoft's Visual C++ 2010? If then ,HOW? please give me the step by step instructions to accomplish that task? Are there any other good compilers? is dev c++ good enough? Right …

Member Avatar for Ancient Dragon
0
138
Member Avatar for allynm

Hello everyone, I am looking for an example of a call to bind.exe. The documentation on this platform sdk program is unclear. I would like to bind an .exe file to a specific .dll. How should I code the bind command? Please don't ask me to enter " bind /?" …

Member Avatar for Ancient Dragon
0
157
Member Avatar for peck

wen i run coding in tc it shows error that the header file cannot be detected. i have tried changing the directory. but it still has no effect.

Member Avatar for Adak
0
59
Member Avatar for aikiart7

Good afternoon, i'm getting an error when I compile "undefined reference to 'TestScores:theAverage(int *,int)" I'm not sure what the compiler is telling me. Any assistance is welcomed. Art header // this is the header file for class TestScores #ifndef TESTSCORES_H #define TESTSCORES_H //this idea with this class is to take …

Member Avatar for aikiart7
0
220
Member Avatar for challarao

Hi! I have optimized the program posted in [URL="http://www.daniweb.com/code/snippet286940.html"]Http-webserver in C[/URL] to my sytem.Ok!. All the things in this program are fine.I inserted index.html file to this program.Now I want to share my files such as pdfs via LAN with this program.How to do that.Please help me. [CODE]#include<stdio.h> #include<string.h> #include<arpa/inet.h> …

0
87
Member Avatar for lionaneesh

This is a simple-web-server made in C.. [COLOR="Red"]Supported OS :[/COLOR] I have made it on Ubuntu 9.10 ... and i think it will run on all linux system .... [B]Windows is not supported[/B] [U][B][I][COLOR="Red"]Compiler Instructions : As this is a web server so it will host on port 80 to …

Member Avatar for challarao
0
2K
Member Avatar for poojabi

i am given an assignment to write code on interpolation search binary search(searching an integer in an ordered list). bt i dont have a clear idea about about both of them as i missed the theory class.so can anyone suggest me from where i can get satisfying information about them?

Member Avatar for Adak
0
103
Member Avatar for dany12

First of all I want to thank the guys form this forum for there work and help that I found more then use full an different occasions. Here is my c programing exercise. Write a c program that shows all the products tahat have the price over 10. Any help …

Member Avatar for dany12
0
129
Member Avatar for laserlars

Hi! I'm pretty new to C and have to write something that handles strings. I have some experience with python and C++ but i find C string handling pretty strange/ugly. Is the following code really the best way to put together a string containing multiple strings? [CODE] strcat(string1, string2); strcat(string1, …

Member Avatar for laserlars
0
82
Member Avatar for challarao

I am a B.Tech 1st year student.I am unable to understand the program given below.Please any one explain me.Any help would be appreciated. This program is for printing longest line of given input lines.. [#include <stdio.h> #define MAXLINE 1000 /* maximum input line length */ int getlines(char line[], int maxline); …

Member Avatar for challarao
0
2K
Member Avatar for Anil2447

[CODE] #include <stdio.h> #include<ctype.h> main() { int c,nletters[26],i; for (i = 0; i < 26; ++i) nletters[i] = 0; while ((c = getchar()) !='!') { if(isupper(c)) c=tolower(c); ++nletters[c - 'a']; } for (i = 0; i < 26; ++i) { c = 'a' + i; if(nletters[i] != 0){ putchar(c); printf(" …

Member Avatar for challarao
-1
101
Member Avatar for boiishuvo

That is a stack program - I tried to change from integers to characters so when you enter a single char of a-z. I ran the program then it displayed shown below: Enter a number: <EOF> to stop: a Enter a number: <EOF> to stop: Enter a number: <EOF> to …

Member Avatar for Adak
0
128
Member Avatar for wantai

Hello guys, I am new here. I have been practicing programming in C as I am going back to school. The program below is supposed to be really simple. It would help you calculate the factorial of a number. But I don't know why I can't get the scanf function …

Member Avatar for Adak
0
97
Member Avatar for pdoratis

Hello there, Kindly seek your help with a C programming language program that: 1 Reads reads and modify a text fine called mydata.txt 2 In txt file, we must enter the following data : name surname telephone number like this: John West 6976688742 3 The program should be able to …

Member Avatar for challarao
0
1K
Member Avatar for itsbrad212

Hi everyone, I've been banging my head against the wall with this for a while. How can I read from a file if it begins with a certain string of text? Example: ...other lines... [U][I]depends=('curl' 'zsh')[/I][/U] ...other lines... I want to read the line in that file that starts with …

Member Avatar for itsbrad212
0
145
Member Avatar for vishnu.prasad

Hi every one, I am currently working on a server program which executes a series of system commands on receiving a messgae from the client(in C). what the server essentially does is he cd's into a particular directory and executes a shell script that calls make utility and does some …

Member Avatar for vishnu.prasad
0
171
Member Avatar for XtremeCold

Hi all, I am developing the Test Engine for an aviation application. The application has a file a.c that is calling an external function CREATE_SAMPLING_PORT(). My Test Engine has a file b.c that is calling CREATE_SAMPLING_PORT() as well. Each file is in different folder and has its own makefile. This …

Member Avatar for XtremeCold
0
221
Member Avatar for ciali

2. A student studying Information Technology at Polytechnic of Namibia is examined by coursework and written examination. Both components of assessment carry a maximum of 50 marks. The following rules are used by examiners in order to pass or fail students. a. A student must score a total of 40% …

Member Avatar for Adak
0
130
Member Avatar for snigger

I wrote this round robin code and I want to calculate Response Time and Throughput [code] #include <stdio.h> #include <stdlib.h> // Data Structures typedef struct process{ char jobName; int arrivalTime; int execTime; struct process *next; } P; typedef struct result{ char Name; struct result *next; } result; // End of …

Member Avatar for Adak
0
2K
Member Avatar for D_switch

problem: a list represented using cursor based implementation contains all ACT, BSCS, BSICT, BSIT and BSMATH students. A dictionary is created implemented using open hashing for BSCS and BSIT students. Each grouping the dictionary is a list implemented using cursor based. given below is the definition of the LIST, Dictionary, …

Member Avatar for Luther von Wulf
0
103
Member Avatar for ftl25

I have a look up table as follows: [CODE] // A structure to hold all the commands and function pointers typedef struct { char functionName[256];// The function name is used to refer to the function pointer int (_stdcall *myfunction)(char *, char *); // This defines the function pointer } LOOKUP_TABLE; …

0
36
Member Avatar for creeps

I'm going through K.N. King's introductory [i]C Programming: A Modern Approach (2e)[/i] and every time I see the code in the book, I can't help but wonder what's the better way to write your code in the following situation. Should I use the curly brackets or not, and how much …

Member Avatar for [Alpha]-0mega-
0
195
Member Avatar for rapids79

Hi, Is anyone aware of a trial UML or a freeware UML that can generate a sequence diagram from a code written in C in visual studio 2008? Thanks, rapids79

Member Avatar for rapids79
0
65
Member Avatar for jeevsmyd

I have been advised by many people that it is better to use integer return type for main function instead of void ! I actually dont understand what return 0 means .. main returns 0 value to program ! What does that mean ?! Could you please help me understand …

Member Avatar for gerard4143
0
137
Member Avatar for taylar

I want to learn C++ but there are so many poroblem in undersatnding this. plz send me some places list where i can learn C++ so fast... Thnks =============taylar [URL="http://autotradeinsurance.com"]Auto Trade Insurance[/URL]

Member Avatar for creeps
-1
125
Member Avatar for poojabi

i want to know the exact and correct definition of a linear list.should i mention about predesessor of every element too?or mentioning only one sucsessor for each element is enough to define a linear list.pls give an answear asap.i am really confused about it.

Member Avatar for poojabi
0
219
Member Avatar for psionic

This may really simple to most people on here but i'm going crazy trying to work it out. I was set a task by someone to write a bit of code in C to do the following: 1) Ask Operator to enter 2 things - a letter of the alphabet, …

Member Avatar for srinivasan106
0
363
Member Avatar for zapman2003

Hello! I am having issues with a project for my C class. We were provided the program shell (structs and the function calls) and we fill in the code for the functions. I did this, however I get a segmentation fault every time I first access my structures. Can anyone …

Member Avatar for blech
0
106
Member Avatar for lirexin

I just wondering is there any possible way to use rand() in a function to generate a random? #include<stdio.h> #include<stdlib.h> #include<time.h> int get_random(void); int main(void){ int i; for(i=0;i<=5;i++){ printf("%d\n",get_random()); } return 0; } int get_random(void){ srand((unsigned)time(NULL)); int x; x = rand()%2; return x; } I run above code and generate …

Member Avatar for [Alpha]-0mega-
0
166
Member Avatar for potato4610

[CODE]#include <stdio.h> int MyStrlen(const char *si); int main() { char str[] = "a"; char str1[] = "HELLO"; char str2[] = ""; printf("Length: %d \n", MyStrlen(str)); printf("Length: %d \n", MyStrlen(str1)); printf("Length: %d \n", MyStrlen(str2)); return 0; } int MyStrlen(const char *si) { int input; for(input = 0; *si; si++) input++; return …

Member Avatar for potato4610
0
397

The End.