it wont print out the numbers correctly,
Type: Posts; User: cprogrammer22
it wont print out the numbers correctly,
ok but that doesnt help with the add answer..
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXLEN 200
struct integer* read_integer(char* stringInt);
void print(struct integer *p);
struct integer* add(struct...
i cant print out the two numbers i want to add still with the add(p, q);
if i call my original print function wont it print the numbers is reverse order since i did that before? i dont think i have the numbers set up to add correctly. im changing my add function call in...
yeah i know how to add im having trouble with the function, im not gettin the numbers added when i call it and not sure if i use a for loop or what?
Cannot get the function to add my numbers..
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAXLEN 200
how do i read the string in using fscanf ?
how do i pass my char array to the first function if i have it in main.
# include<stdio.h>
int main(void)
{
# include<stdio.h>
I'm having trouble where to start off.. i need to read in the strings into a character array and then convert it to integers with the strtok function. This is what i have..
struct integer*...
I need help with this assignment, any takers? I need to fill in the functions and make it work
Computer Science
The Problem
The unsigned int type in C requires 4 bytes of memory storage. With...
this is my error..
[Warning] passing arg 1 of `readWords' from incompatible pointer type
Help i cant figure out what is wrong with this program i cannot get it to run properly!
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
#define...
at the end of the program or where in blank word?
where do you add the null terminator?
how do you get it to print out the actualy hangman design? like a little picture?
hmm.. i dont know why i keep having trouble with it.. i added the new code and still it wont complete when the numbers are in order from 1 - 15.. it will just keep allowing me to move the puzzle...
messing around with it again, i can make the program complete in correct order, but now the program will not say puzzle completed successfully when in correct order
when i load this new function into the old program, it will let me move one piece and regardless if the puzzle is in order, it wil say i solved the puzzle and end the program
hmmm... you think you can show me what that other option would look like, sorry to be so much trouble
yours was fine, im just trying to code it differently and that helped me alot actually, for some reason i am just having trouble with this stuff and havent gotten the hang of it yet, you thiink you...
wow, thanks alot, whenever i replace this with the alternate way (previous in program before, the program crashes after entering a number..
what alternate way can i do the do move function?
ok is it necessary to initialize all my variables to 0 in function 1 or the others?
ok thanks , what other variable names can i use
ok im trying not to use the same code as the other one, any more possible hints?