yeah i put that in because it also reads out the enter button when i press enter, so its suppose to read enter button and erase it..
Type: Posts; User: j4k50n
yeah i put that in because it also reads out the enter button when i press enter, so its suppose to read enter button and erase it..
i know the difference between "char var[]" "char *var" and "char *var[]"
and have tried fgets, but it stills deosn't work, and plus i m not suppose to use that...
yeah there is a reason, its part of the thing i have to do...
so yeahh...
but i don't really understand what you mean..can you explain in more detail...
thank you
ok i wanted to enter a surname that can only fits 20 character...
but if some one enters more then 20 character, it would just read the first 20 character that is written, when it is printed...
yeah i actually wanted it to exit the program if it isn't an upper case letter...
so it works fine with me...thanks for the suggestion though
thank you it works and i learn something more from that...
but i found out other ways..
here it is...
#include <stdlib.h>
#include <ctype.h>
int main(int argc, char ** argv)
{
i've got a program that will ask for a person initials and only in capital letters...
and if you were to give a lower case then the program will end
here is the program
#include <stdlib.h>...
some of them does not compile because i haven't finished with it, like the first four fprintf is just starting to work on it...but haven't finished,and the gender part is also not finished, but...
ok here is my code so far
/*This program converts your Mass and Height into Body Mass Index(BMI).*/
int main(int argc, char ** argv)
{
// Mainline Variable Declarations
FILE * output =...
well i was thinking of declaring all my variable name to false then every time some one enter the menu the eg if i enter 1, the the false become true and i won't be able to re-enter 1 on the number...
ohh never mind if you miss understood me....
my question was the at the first post, the third post is just that if you don't really understand what i mean then i m giving the full extent of my...
im really really new to c program so i haven't done much array, but i m getting there soon, maybe in 2 or 3 weeks time..
ohh by the way if you are curious with the full extent of the question here it is
1) Your code will need to display a numbered menu and
loop getting all required information so as to be able...
Hey people, I m having trouble with some stuff with using c program..i want to calculate some number but i want them to write some detail as well such as first name initial and last name and so some...