- 1

Variables

As it is stated, I have an option to declare a variable and assign a value later. But I found it doesn't work in my compiler. So what has gone wrong?

25th Feb 2017, 7:33 AM
Patrick Tan
Patrick Tan - avatar
5 odpowiedzi
+ 4
No its not necessary to include it in main function .Actually it should work !
25th Feb 2017, 8:27 AM
G Hemanth
G Hemanth - avatar
+ 3
Use Codeblocks IDE for C++.It is a very good tool. Hope it hels you!!
25th Feb 2017, 7:39 AM
G Hemanth
G Hemanth - avatar
+ 2
Nice ,All the best . Keep coding!!
25th Feb 2017, 8:30 AM
G Hemanth
G Hemanth - avatar
0
should I include both declaration and assignment of value in the main function?
25th Feb 2017, 7:52 AM
Patrick Tan
Patrick Tan - avatar
0
thank you very much ! I got it!
25th Feb 2017, 8:29 AM
Patrick Tan
Patrick Tan - avatar