Hello,
I'am having trouble with my read_list function in my header file. I know every thing else works, because when I don't use it the program runs fine. What is wrong with it!!!
This is how I'am calling it:
#include <stdio.h>
#include...
Hello,
I wrote this program to see if a message is a Palindrome or not. Like "He lived as a devil, eh?". My question is how can I use pointers to keep track of the current position in the array?
#include <stdio.h>
#include <string.h>
/****************************************/
/*...
Hello,
I've just been learnning on how to use Enumerations as Integers and I'm not sure about somthing.Say I have somthing like this:
enum {FALSE, TRUE} b;
int i;
I answered what I think they are but please tell me if I'm right or not and why.
a)b = FALSE; /*I think this would be 0*/...
Hello,
How would I change the program so that it does not read spaces and punc. marks? I would like the program to be able to read a sentnce like " He lived as a devil, eh?" and say that it is a Palindrome. Right now I got the program to change the spaces and punc. marks to '-'.So it...
Thanks, for all that help on the first one, but I ran into another problem. The code will only read the first letter of the country and compare that. This is a problem because some of the country's start with the same first letter. Wright now all I have to do is enter a capital letter that one...
Hello,
My question is how would I be able to compare what the user enters to what is in the struct? I want the program to give the corresponding dialing code to a country that the user enters, and if it is not there display a error message.Example-Colombia dialing code is 57.I've tried using...
Hello,
This is what I have so far. It reads in a message than prints the message in reverse. How do I compare the array's in order to find out if the message is a palindrome or not?
If there is a easier way, please show me. Can you do it with out using strings?
#include <stdio.h>
#define N 10...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.