[Vala] char variables problem
- From: Sepehr Aryani <sepehr aryani gmail com>
- To: vala-list gnome org
- Subject: [Vala] char variables problem
- Date: Thu, 2 Dec 2010 18:06:48 +0800
Hi guys.
what is the problem with this code?
public void main(){
char ch1 = 'a';
char? ch2 = 'b';
stdout.printf("%c\n", ch1);
stdout.printf("%c\n", ch2);
stdout.printf("%s\n", ch1.to_string());
stdout.printf("%s\n", ch2.to_string());
}
when I assign a value to ch1 and ch2, they remain empty and nothing is
printed in output.
Why.......
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]