No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am trying to create an abstract data type for matrices. I have a function matrixInit to dynamically allocate memory for the structure and for the array. matrixCopy copies one matrix into another. there are functions to subtract, add and multiply matrices that return a pointer to memory where the … |
|
I am creating an abstract data type for strings implementing the string functions but not using the string library. I have my .c file and my .h file below. The problem seems to lie in addMystring I have commented out the area's that seem to have the problem. when they … |
|
I have a while loop reading names from a file and placing them in an array. When I print the contents of the array, it prints the last name that went through the loop, so I'm assuming that as the loop is progressing each time the names are being rewritten. … |
|
I need to write a program in C that decrypts a 12 character message in the file encrypted.txt however whenever I try to open this file it comes up as null. I'm confused, I've tried different methods, the only thing I can think of is I don't have the file, … |