pointers

can anyone help me with this assignment ,i think i should use pointers but i can't write the proper code .....
Last edited on
Please note that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.

We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
thank youu ,i updatetd the question with my code
the problem i am having is that it is still casesensitive ...i need it to count upper and lowercase letters

Convert all characters to lowercase before use.
Use http://www.cplusplus.com/reference/cctype/tolower/

Do not use pointers. There is no need for them.
Do not use array. There is no need for one. (And the way you use it is illegal; no VLA in C++.)

Why do you call CountLtr() twice?

(write function prototype above the main and function definition under the main function)

Did you do this?
i understand thank you but it is actually required in the assignment to use ASCII code below :
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

a b c d E f g h i J K l m n o
97 98 99 100 101 102 103 104 105 106 107 108 109 110 111
p q r S t u V W x Y z
112 113 114 115 116 117 118 119 120 121 122

If you are not allowed to use the tolower() from the Standard Library, then write your own function that does the same thing.
Topic archived. No new replies allowed.