I'm using lcc-win32.
http://support.microsoft.com/kb/57888
P.S. Sorry for the smiley, it has a different meaning in our country :)
Type: Posts; User: CactusC
I'm using lcc-win32.
http://support.microsoft.com/kb/57888
P.S. Sorry for the smiley, it has a different meaning in our country :)
I did it.
I would like to make a program, which does smth when one of the arrows (of keyboard) is pressed. So I would like to ask which funcion should I use (scanf, getch...?) to get the pressed arrow....
Than you. I've changed
char t;
to
char t[100];
Thanks for an idea, but therefore I've faced another problem. I decided to use isdigit to check if the inputed number is not a char and if it isn't-then convert it with atof or atoi.
But then i...
Hello,
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 user inputs a char. Is there any funcion which can check that?
...
Thanks :cool:
Could anyone explain me why this program prints out
"Enter string 0"
"Enter string 1"
at one time and doesn't read the string[0][100] ?
#include <stdio.h>
#include <string.h>
Oh, sorry, I've forrgotten to change, i was trying to print the first string, but it is like the third one.
I have founded the mistake :)
Hello again. Could anyone help me to find mistakes why this programs prints out only the lats string.
#include <stdio.h>
#include <string.h>
#define SIZE 124
int main ()
Thanks a lot :cool: The problem was that I haven't included string.h Thank's very much :)
Also I wanted to ask how to print these strings, because every try computer writes me 'runtime error'
#include <stdio.h>
int main () {
char string[100][3];
int i, j;
Yes, I've already tested that, I can't see russian symbols correctly, that's why I have chosen the othe char set ISO-8859-4, which is displayed correctly in my computer.
Yes, you'r right. But it would be enough for me to display it correctly on my computer :)
I need to set char set Latin 4, it's also called ISO-8859-4, but i still can't find anything, explaning how to deal with that. :rolleyes:
So if I'll try to solve this problem using wide chars, I should define every char, which isn't included to ANSI C?
But if I need to save all Russian chars, isn't it possible to set whole language alphabet somehow, using UTF-8 locale?
Thanks very much, i did it (atctually you did it) ;) I had some practice programing with Delphi, but it's much easier to work with strings there :)
And the other thing i wanted to ask what...
no..i'm new to C.. that's why i'm having problems with such a simple task :(
ok, i tired to correct mistakes.. but..there are some left..
#include <stdio.h>
int main () {
char string[3][100];
int i, j;
Hello,
I would like to as how shoul i input strings into array from keyboard?
Thanks in advance.
my code is:
#include <stdio.h>