Should I use gets or strcpy. But if it wants average, how can I get the numbers of character for that string to be divided?
Type: Posts; User: kimimaro
Should I use gets or strcpy. But if it wants average, how can I get the numbers of character for that string to be divided?
won't string be a little different? Thanks for the hardworks but Im still confused with Strings
Thanks everything makes sense now uhm anyone know how to convert this?
Write a function called FindAveChar that take in a string parameter str.
The function returns the average character of all...
#include <stdio.h>
#include <conio.h>
char *IM1, *IM2, *IM3, *IM4, *IM5 ;
char IMAGINE[7] = {'I', 'M', 'A', 'G', 'I', 'N', 'E'};
main()
{
clrscr();
IM1 = IMAGINE;
please reply need some help
is there any way to declare a variable only storing positive numbers?
how to you store integers in structured array?
how do you eliminate the - sign of an negative integer regardless if the integer is positive or negative
I've done the recursive and the putchar function so far. To find even numbers, (str%2==0)
But I am no good with strings what I want now is how to get each alphabet in the string to check if its even
That question is as below :
Write a recursive function called CountEvenASCII that takes in a string parameter str and return the number of characters with even ASCII codes. For example...
yes and the question that I'm dealing with is that it stated that I must use Recursive function and must accept string value. From my senese is that the input should measure the length of the string...
what is the function cVal for? Sorry but the function should be input by string but can the function accept string?
I am doing a program to count even ASCII characters in a string for instance, when the string is input "ABCDE", there is a recursive function within the program to display 2 where both B and D are...
yes thank you very much
lets say its something like array[4][4]
it should have 4 columns and 4 rows
If I want to access the particular location,
say the 2nd row and 1st column, is it suppose to be array[2][1] or...
thanks for your help the last one help me out...Thanks
Is there a problem with the logic?
i've tried, everything is in order but still the answer cannot be displayed. it accept input and so on just the answer is blank
[QUOTE=prog-bman]1: main should be int main
sorry but i dont quite get it you mean the main function can be insert with int?
When I run, the answer cannot be displayed
I cant seems to get the answer of the program below, I try to create a program where the user input 10 numbers and the first 5 numbers in the arrays will then deduct with the next last 5 numbers in...
thanks for your help and I need one more help is that how do you make the program to detect the input is between A to Y ? They are not integers so how do you create a condition by using If and the...
how does the putchar function that you have mentioned works? Does it add the value of the char or what? Besides the array I cant think of any logic that can place all the alphabets together. How will...
Ok I try my program with the source code as followed, but the compiler stated that Lvalue is required what is the error within my source code?
#include<stdio.h>
#include<conio.h>...
Thank you for all your help but should I be using arrays or structure for this simple program?