Wow thanks for your help, its compiling and taking out the character...the only problem I am having is that say I have the word telephone in my input.txt document it only takes out the first e and...
Type: Posts; User: min2max
Wow thanks for your help, its compiling and taking out the character...the only problem I am having is that say I have the word telephone in my input.txt document it only takes out the first e and...
My program takes in an input file from the command line and converts the string from the file into a linked list and then depending on the command it will manipulate the string to either reverse the...
To be more specific, I will be reading in the word from an input file and then converting that string to a linked list so that I can manipulate the word according to the remaining commands in the...
Yes that is the way I would have to write it unfortunately
How would you put a word into a linked list so that the linked list contains each letter of that word...so for example if I want to put "cat" into the linked list I want it to be like this "c" "a"...
I need to dynamically create a new Memo structure to hold memoized fib #'s
I have two structures
typedef struct HugeInteger
{
//array to hold the digits of a huge integer
int...
I have the following struct array list...
typedef struct ArrayList
{
char **array;
//number of elements inside list
int elements;
Wow thanks, that fixed it completely! Can't believe I didn't catch that...Thank you guys!!!!
myList->maximum is the number of elements added to the list.......getSize returns the number of elements currently in the list
my ArrayList is....
typedef struct ArrayList
{
char **array;
So what your saying is that all the names might be stored in myList->array[0] ??
the code for put() is the following
char *put(ArrayList *myList, char *str){
I have a function in main that gets the size of names from a list L1 and then puts the strings from L1 into another list L2, but backwards.
for (i = getSize(L1) - 1; i >= 0; i--)
...
Ok so I ran the if statement and it says Can't open names.txt: No such directory or file...I am coding with codeblocks and using a macbook pro...I guess my file path needs to be set differently
im working in a project folder with two different source files and one header file...
in one of my main.c source files I have exactly this...
#include <stdio.h>
#include <string.h>...
I have been working on a program that reads in a txt file of 5 names and then creates an array list for them
so far my code is ...
#include <stdio.h>
#include <string.h>
#include <stdlib.h
I am writing a program that expands array list whenever they get too full
so far i have this:
#define DEFAULT 10
Yes this helped ! Thanks. When I said I was new to programming I meant I haven't done it in awhile so I needed to refresh on some things lol sorry if I didn't clarify that correctly.
So I guess I...
I am new to programming and have a struct for an array list. I am having a hard time visualizing what this struct actually looks like if I were to map it out with pen and paper...If anyone could help...