15,551 Topics

Member Avatar for
Member Avatar for nizar4445

(Create a program that will allow the user to enter and analyse a set of data collected from an experiment. The data is to be entered by the user from the keyboard and stored in an array to be processed by the program. It is known that all the data …

Member Avatar for Narue
0
136
Member Avatar for nizar4445

Heeeeeeeeeeeeeeeeelp :cry: :cry: :cry: hello all can anybody help me pleeeeeeeeeeeeeeaaaaaaazzzzzzzzzz!!!!! Create a program that will allow the user to enter and analyse a set of data collected from an experiment. The data is to be entered by the user from the keyboard and stored in an array to be …

Member Avatar for Dave Sinkula
0
148
Member Avatar for rborob

can anyone help me with this switch statement? i want it to go through line by line my file and, in the cases, increment x, y and z counts depending on the value of each digit in the strings. i debugged and its giving me some stupid value for xcount. …

Member Avatar for Dave Sinkula
0
149
Member Avatar for star320

Can someone please help me where to begin on this problem... I don't want answers, just some guidance: I have to make a program that reads a 4 digit integer: and encrypt it with a calculation: then swap 1st digit with 3rd, swap 2nd digit with 4th and print the …

Member Avatar for letmec
0
144
Member Avatar for koolguysj

[code] #include <stdio.h> #include "Boolean.h" #include "combinatorics.h" /* For all the functions below, return TRUE if the calculation is successful, FALSE if overflow occurs Return the calculated value in the pass by reference parameter provided */ Boolean calcFactorial (int n, int* nfact) { *nfact = 1; while(n > 0) { …

Member Avatar for murschech
0
398
Member Avatar for JoBe

Hi ladies and gents, Next exercise is the following: Write the function which we can declare as follows: unsigned char bcd (int n); The idea of this function is to store the last two decimal numbers of n into a 'binary coded decimal' byte and to return this value. So, …

Member Avatar for Narue
0
600
Member Avatar for dal4488

This is a question on one of my homework assignments and I have it narrowed down between these two but I'm not sure which one it is. Anyone know it? To avoid an infinite loop make sure the loop body: alters the exit condition or contains at least one output …

Member Avatar for thedk
0
107
Member Avatar for letmec

I'm working on TSR through C. i have writen dogens of them for dos, :rolleyes: but it works for dos only, can you tell me who to write TSR's for windows. Thankyou....

Member Avatar for Fasola
0
369
Member Avatar for some one

hi every 1 i am new and Ihope that you would help me I have to write a program that will allow you to enter if you enter the password without using strcmp function and here is my try [code] #include <iostream> #include <cstdio> using namespace std; bool password(); int …

Member Avatar for Fasola
0
259
Member Avatar for rborob

does anyone know any easy way of reading in a file line by line. im assuming i need to use ifstream then just do while (!file.eof()) getline(file, string); i need to read each string into a switch statement and then extract 3 values: vertex.x vertex.y vertex.z for each string read …

Member Avatar for Narue
0
103
Member Avatar for shock1

Write the definition of a function dashedLine , with one parameter , an int . If the parameter is negative or zero, the function does nothing. Otherwise it prints a complete line terminated by a new line character to standard output consisting of dashes (hyphens) with the parameter 's value …

Member Avatar for Narue
0
106
Member Avatar for koolguysj

[CODE]/* For all the functions below, return TRUE if the calculation is successful, FALSE if overflow occurs Return the calculated value in the pass by reference parameter provided */ Boolean calcFactorial (int n, int* nfact) { unsigned long int count = 1; unsigned long int result = 1; while(count <= …

Member Avatar for Dave Sinkula
0
124
Member Avatar for Auto

I have a function in one of my programs that picks a random state from a list. It then puts this random state in a structure array. However the name selected from the list does not match the name that winds up in my array structure. The following is not …

Member Avatar for Auto
0
151
Member Avatar for duner

Hey all, First post here and hello to everyone. I've been studying C for a few months now, and everythnig has been making sense and I'm enjoying the challenge of learning to progeam. Ther is one thing that keeps eluding my understanding of arrays, and that's using a variable in …

Member Avatar for duner
0
2K
Member Avatar for hasan2003

A teacher of mine at NCC course said that a Array cell contains the memory address (pointer) of the next cell. is it true ?

Member Avatar for Acidburn
0
136
Member Avatar for tat2dlady

I have a problem where I read in a 2D matrix and divide the matrix into 2 parts, where the sums of each part are equal. Each part must contain contiguous integers that can be networked together by following paths from one intger containing cell to another via shared sides. …

Member Avatar for tat2dlady
0
160
Member Avatar for Asif_NSU

I have a template linked list class, eg: [CODE]LinkedList<int> list1; LinkedList<implicant> list_imp;[/CODE] Now I need a Linked List of Linked Lists, This is how I declared [CODE]LinkedList<LinkedList<implicant> > list_of_lists;[/CODE] Then I declared a Linked List of implicant class. [CODE]LinkedList<implicant> implicants_list;[/CODE] I calculated some value and put them in the implicants_list. …

Member Avatar for Narue
0
141
Member Avatar for blackdove

I'm doing a "magic square" program and I'm having trouble with a button. It is supposed to stay active for as many clicks as it takes to fill the array storing the numbers, then become disabled. The button stops working the first time i click it though, and i dont …

Member Avatar for blackdove
0
129
Member Avatar for the_shark

Hi friends... I have a problem with some c codes and I think that you will be Capable to point it up for me. However, I do not want anybody to post the correct and complete code to me . I want to enter a string of numbers and the …

Member Avatar for the_shark
0
169
Member Avatar for mehdy
Member Avatar for Mature_Student

Hi there, I have used the advice in this forum to solve most of the problems I have had so far but I am running out of time on this final assignment (due this evening) and I am stumped. I need to write a function that takes a time in …

Member Avatar for Mature_Student
0
225
Member Avatar for letmec

I am working on a program for encryption & decryption using SDES Algo. This Algo. takes a key of 10-bit length and input plaintext of 8-bits length and produces a ciphertext of 8-bits length. I have collected the key in an array of char (char key[11]) and plaintext as unsigned …

Member Avatar for Tight_Coder_Ex
0
122
Member Avatar for Auto

After fixing some pointer problems with my structures, I decided to move the functions performed on them to another .cpp file. Here's the definition in my [B]main.cpp [/B] above the int main() of course [CODE][B]struct[/B] employee { [B]char[/B] name[[COLOR=Navy]20[/COLOR]]; [B]int[/B] schedule; [B]int[/B] level; }; [B]struct[/B] employee salesdept[[COLOR=Navy]10[/COLOR]];[/CODE] then in my …

Member Avatar for Auto
0
241
Member Avatar for Auto

I have a program that calls a function to generate an array of structures( data_set ). The structures consist of a char[20] and 2 int data types. Now what I'm trying to do is randomly pick from an enumerated data type and here is the code I have with a …

Member Avatar for Auto
0
153
Member Avatar for tenoran

Thank you for reading the thread. I have been studying "How a floating point number is stored in 32 bits". I know a way to find the exponent numbers. But I don't know a way to find the mantissa values. Why the mantissa of 6.625 would be 010000011(

Member Avatar for Narue
0
121
Member Avatar for bigMon21

I am working on an exersize where I must display the elements of an initialized array of 10 double elements using a pointer variable and pointer arithmatic, I know how to display one element from the array but how do I display each element from the array?

Member Avatar for Narue
0
79
Member Avatar for kaoss1103

Ok i've just started programming(<-- i bought a book)well just started learning, and already 2days in im faceing issues i cant deal with yet or dont understand (well i am on a mac). so i think it would be a smart move getting a mentor(a nice person willing to exchange …

Member Avatar for Acidburn
0
155
Member Avatar for Geek-Master

Hey everyone, I'm trying to find some tutorials for peer-to-peer network programming ( LAN Parties ). I browsed through MSDN for any tutorials, but the only thing they have is stuff on DirectPlay. I would like to know how to connect to another/multiple computers. I've been reading up on Windows …

Member Avatar for alc6379
0
108
Member Avatar for PeterPurple

I posted this this morning on a newsgroup, but no one is answering questions there, I guess the newsgroup is dead. <my post> > I'm a newbie to the Window's platform and I need some > help. I have a program I'm working on that draws and > animates a …

0
95
Member Avatar for vengefulemus

If dealing with Windows and Serial Port communications isn't bad enough, I cant' even seem to come close when trying to implement a solution using completion routines and the WriteFileEx and ReadFileEx functions. Am simply trying to have both read and write fucntions as overlapped IO using these functions and …

0
63

The End.