Thanks guys for your reply, it has solved the problem
Happy new year to u all
Type: Posts; User: senegene
Thanks guys for your reply, it has solved the problem
Happy new year to u all
Hi Guys,
i have searched but could not find any previouse solution.
I'm coping n characters, but after sending the final to the
printer, i get some trailing characters like c@xn after the
true...
Well, what i wantt to do is, the record on file is like this ->
c12345my name my address;and so on; postcode\n
i want a print out like so ->
c 12345 my name my address;and so on;...
I have written a program that reads from a sequential text file
then validates the record.
the rec is for example
c12345my name my address;and house number; 12345678
the final print out is what...
This program is to read record from a file and then validate
the 5th element str[5].
From the valid check digits out of 45 recs only 5 is reported
valid. I dont know what is wrong with this code
...
You have all been great, i haave solve the Q with your help.
Thanks to all who replied
cheers
:#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define MODULUS 11
char input[20]="c4193978 my name my ";
char name[20];
int count;
char chk_digit;
I'm validating the c_code i.e the 5th digit in a string, disregarding
the 1st character.
example of rec is c1234576 my name my address
The check digit has been verified and are all o.k but when...
thanks master yoda and hammer, i have solved it
with your help
hihihi
cheers
sorry i'm refering to string array.
hope its not too much bother 'Green yoda'
Hello all. pls dont shoot me down yet.
I'm trying to read the first 5 char from a string array
example name[20];
the string is already stored;
how do i read only the first 5 char say for...