15,550 Topics

Member Avatar for
Member Avatar for Chocolatemoon

I am writing a program that will take a sentence and find out how many of one character (like how many h's) is in the sentence. I have started what I think works and got the program to work once but after the one time I cant get it to …

Member Avatar for Chocolatemoon
0
117
Member Avatar for yuri1969

Hi, I'm a BSD Socket beginner and I would like to make a small networking program written in C. I've read many instructional articles and I haven't found a example how to send/receive a non-char - string sending everywhere. I mean, I thought about sending some various structures as "frames". …

Member Avatar for yuri1969
0
172
Member Avatar for muramasa007

Basically I've finished my code for the most part and I'm having trouble figuring out how to initialize loan, mort_gage, and downpayment. Is it possible to use a pointer for each of these and call the address back to main? I'm so confused...it's just one of those little things that's …

Member Avatar for muramasa007
0
130
Member Avatar for xavier666

I was writing a file copying program. Mind you this is an any file copier. That is, at this moment, this function can copy only text files but i'm trying to copy mp3 files, avi files, mkv files etc, which this cannot. Here is just the copying function. However it …

Member Avatar for ronnieaka
0
116
Member Avatar for silver90

i've been at this problem for hours now, and so thought of asking help from people who are not such newbies to programming as i am. please help me with this: i have to print the result of a specific element in a pascal triangle, taking only rows and position …

Member Avatar for Adak
0
112
Member Avatar for florisvd

Hello, I've to make a c program with the next specs: Write a function that is specified as follows: bool lees_file (char *, int [] [KOLOMMEN_IN]); The function has as parameters a pointer to a file name and a two dimensional integer array and a return value of type boolean. …

Member Avatar for Ancient Dragon
0
207
Member Avatar for gahhon

there have problems with the output and the calculation... [CODE]void Mark_Attendance() { int answer, temp_Att; FILE *ExistingFile, *AppendingFile, *ReadFile; ExistingFile = fopen("Attendance.txt", "w+"); AppendingFile = fopen("Attendance.txt", "a"); ReadFile = fopen("StudentDetails.txt", "r"); if(!ExistingFile || !AppendingFile || !ReadFile) { system("cls"); printf("This File Cannot Be Open Successfully!!\n"); printf("Please Check It!!\n"); exit(-1); } else …

0
55
Member Avatar for Abhishek_jn

Hi All, i want to know what is the use of const volatile variable, where exactly it is required to use.

Member Avatar for nbaztec
0
420
Member Avatar for florisvd

Hello, We are trying to control 8 7-segment displays by using multiplexing. The problem we have is that we have to program buttons, how can we make it? Best regards, Floris /* Ansteuerung von drei 7-Segmentanzeige im Multiplexbetrieb * Gemeinsame Anode, PB0..PB6 * Spalten: PC0..PC2 * * a * f …

Member Avatar for florisvd
0
140
Member Avatar for jane bella

i need a help in airline reservation system project in c n i dont no how to do that so plz tell me the codes for these we should allow the user to chose 1)to book 2)to cancel 3)view data 4)quit as well as they have to enter them name …

Member Avatar for jane bella
0
179
Member Avatar for MarounMaroun

Hey all, I'm trying to implement a function InitMatrix which suppose to return a pointer to a new created 3d array of the size determined by x,y and z. I have a struct which represents a matrix and should be able to deal with some functions required, like setting the …

Member Avatar for Ancient Dragon
0
295
Member Avatar for volkang

Hi i ve been dealing with a program and encountred a weird problem. the problem is that my array variable por[27][1]'s value changes for no reason. please take a look at the pictures in the attachment. the pictures belong to debugging.

Member Avatar for volkang
0
161
Member Avatar for TGeorge824

Hello, I have an assignment where we are supposed to populate an operating system's ready queue with processes and try various process scheduling scheme and record their wait times. To do this i made a rudimentary structure for a process: [CODE]typedef struct{ int ID; int wait_time; int exec_time; }process; [/CODE] …

Member Avatar for TGeorge824
0
151
Member Avatar for Purrenhage

I am learning C++. This class project was to write a program that will let you enter a diver's first and last name and city. Also 5 judges results along with the difficulty for the course. Then display the results. It is suppose to ask if you want to enter …

0
74
Member Avatar for MarounMaroun

Salam, My mission is to program a cube[I](given its dimensions (x,y,z))[/I]. The cube will be represented in a struct, which I'll choose what data members it should contain. I need to implement the allocation function(which actually creates the matrix) and some other functions. The most important function is the setter …

Member Avatar for myk45
0
106
Member Avatar for indrajeet6

[COLOR="Green"]Hi, I'm trying to write a linked list Program to accept a no. and print all the prime numbers less than it, using the sieve method, Explained below: Suppose that n=30.Then we list all the numbers till 30, and cross out 1 and all the multiples of 2, then 3,then …

0
258
Member Avatar for MichaelSammels

Hi DaniWeb, [INDENT]So when you right click an .exe file (one you compile with C) you get the option to view the details such as File Description, File Version, Product Name, etc. I was wondering how to change these? I assume it'll be a C command, but I'm not entirely …

Member Avatar for mohanty_555
0
76
Member Avatar for o0OPatriciaO0o
Member Avatar for MarounMaroun

Hello guys, Can someone explain what is going on on this code? 1. why we needed **p in the function [B]AllocString[/B]? 2. why if I change [B]AllocString(strlen(s), &copy);[/B] to [B]AllocString(strlen(s)-7, &copy);[/B] I can still get a good result? Thanks! [code=c] #include <stdlib.h> int main() { char *s="example"; char *copy=NULL; AllocString(strlen(s), …

Member Avatar for MarounMaroun
0
103
Member Avatar for mashhype

Hi, I am trying to figure out how to get my program to do one of two things: Either... 1. Create and remove a semaphore based on me entering a 'r' in the command line at argv[1] or 2. If argv[1] is a 'n', then I want check to see …

Member Avatar for mashhype
0
245
Member Avatar for onus

[[url]http://lxr.free-electrons.com/source/drivers/net/8139too.c#L498][/url][1] On above link What I am not getting is the structure [CODE] static const struct { const char *name; u32 version; /* from RTL8139C/RTL8139D docs */ u32 flags; } rtl_chip_info[] = { { "RTL-8139", HW_REVID(1, 0, 0, 0, 0, 0, 0), HasHltClk, },[/CODE] gets expanded to [CODE] static const …

0
51
Member Avatar for Joey_Brown

Hello; I would like to compress an 1D array of arbitrary number of elements. For instance if a user inputs IN : 111122233331 OUT: 14233411 [it shrinks/increases the array and replaces all the identical consecutive elements with a number of how many times theyve appeared.] This task must be accomplished …

Member Avatar for Joey_Brown
0
109
Member Avatar for rodkay

Hi all, Quite a basic question for most of you; I am trying to obtain length of a string < char [b]name[MAX_ENTRIES][MAX_NAME_SIZE][/b] > for use in a for loop that will perform isalpha. [size=3][color=blue]for (int j=0; j < &name[i].length(); j++)[/color][/size] [color=black]I am getting [/color][color=red]error 2228: left of '.length' must have …

Member Avatar for ashishkumar008
1
172
Member Avatar for mashhype

Hi I am new to C. I'm taking an operating systems class right now and I have a project that requires me to create a set of semaphores. The command line takes in: filename ropt NS value1 value2 value3...valueNS Where argv0 is the filename Argv1 is the option to remove …

Member Avatar for apines
0
74
Member Avatar for cwarn23

Hi, I'm writing a large program but require Multithreading for this software. I've searched the web for just over an hour and now is just after midnight but still can't find anything simple. The only thing I saw that came close to what I need was at [URL="http://www.computersciencelab.com/MultithreadingTut1.htm"]http://www.computersciencelab.com/MultithreadingTut1.htm[/URL] but I …

Member Avatar for Ancient Dragon
0
704
Member Avatar for tastyTreeHUGGER

I am writing a calendar in C. I'm still very new to the language. I think i wrote most of the functions/algorithms correctly (it would be nice if you guys could check for any errors too). Now I'm having a tough time printing the calendar out In a correct format. …

Member Avatar for tastyTreeHUGGER
0
300
Member Avatar for petrkotas

I am not sure if this is more software problem or C problem. Nevertheless, I am trying to run simple test code to check if my lapack installation is OK. [CODE]#include <stdio.h> #include <atlas_enum.h> #include "clapack.h" double m[] = { 3, 1, 3, 1, 5, 9, 2, 6, 5 }; …

0
87
Member Avatar for myk45

Hello, i needed suggestions regarding the book "Art of Computer Programming" by Donald E Knuth. im an undergraduate Computer Science student. i would like to know more about the book before i buy it. So, any reviews? Reviews as to how the Math in it is(i heard there are a …

Member Avatar for myk45
0
105
Member Avatar for robsbots

Hi all. I would like to write a network server in C to run on debian linux. I have some network code thats working, BUT at the same time I want to read data from a serial port, and process it. I want to build a linux based server to …

0
39
Member Avatar for berwick53

I've got to write a program where it replaces a letter with a dash and then asks the user to enter the letter that should be their. I've written a program and It works the first time around and then prints out two lines. Where have I gone wrong ?? …

Member Avatar for myk45
0
141

The End.