Hello again,
I would like to ask how could I check if the input is right:
the program asks user to input a float from a keybord, but what if user inputs a char. Is there any funcion which can check that?
Thanks in advance.
User Profile
Collapse
-
C: How to check if the float is not a char?
-
Yes. I'm new to C programing either I never had such experience with any other programming languages, so I have no idea how to do that.... -
C: Setting a Char Set
Hello,
I need to set char set Latin 4 (ISO-8859-4) to C program, because I need some other symbols, which are not stored in ANSI-C. Could anyone help me how to deal with that -
Thanks a lot, I did it :))) I have never realized that *string[3] is not equal to array string[3][80], and that the first is an array of pointers, and the second is an array of chars, because the type of both is the same (char). thanks very much :)Leave a comment:
-
Problem with pointers and string array. C.
Hello, could anyone help me with C language a little. I'm trying to write a program with pointers, which would scan some words to the array of strings and would print them on a screen. I'm new to C programming, that's why it's so difficult to deal with such a simple task
Code:#include <stdio.h> #include <string.h> int main () { char* string[3]; int j; for(j=0;j<3;j++)
-
Problem with pointers and string array. C.
Hello, could anyone help me with C language a little. I'm trying to write a program with pointers, which would scan some words to the array of strings and would print them on a screen. I'm new to C programming, that's why it's so difficult to deal with such a simple task
[code=c]
#include <stdio.h>
#include <string.h>
int main ()
{
char* string[3];
int j;
for(j=0;j<3;j++ )...
No activity results to display
Show More
Leave a comment: