Any expert in C++ and C#???

Malaysia
September 15, 2007 8:30am CST
I have some ques reguarding the C# programming...i saw many example use int main(void) in their coding...actually wat is the "(void)" means?? Anyone noe?? Beside, wat is the different between visual C++ and C++ program?? And..the last thing, is there any compiler bside visual basic??? Anyone noe??
5 responses
• Philippines
15 Sep 07
well im not really an expert on this but that depends on how you use the void on what type of case of characters youre going to put it in. I mean on your register void the user inputs their name and the save view void the user could view past and present records ( i really hope you get the idea) well visual c++ is an advancement on c++ itself it coincides with visual basic but i think only the page is visual basic. I don't know much about this since ive been out of prograaming for a couple of months now and i somehow forgot everything :) but im willing to help ion the near future though.
1 person likes this
• Malaysia
15 Sep 07
Erm...izit mean that the '(void)' is actually a something like library or storage?? I juz noe that the 'void' word can be vary as needed different inputs. And i get ur idea about the visual c++ and c++...thankz for ur help and lovely info...:)
1 person likes this
• Philippines
15 Sep 07
Yes its more like a library i use void in order to sort out how my program sequence would be. Good luck with that. And yeah that varies on how you use the void, its quite a flexible kind of code
@jean0827 (306)
• Malaysia
15 Nov 07
void is actually a program that dun return any prototype, visual C++ is the software name, C++ program is a program which written by C++ i think? there are other compilers beside Microsoft's Visual Basic, and most of these "others" are free.. because they're build by users and some are not very stable.. you can look for the C++ compiler on the internet..
• Malaysia
24 Nov 07
erm...for my opinion, i think visual c++ and c++ are both program oh, juz the visual c++ is more advance than c++..i juz find it out recently...hehe...and as u say, i hav look from different type of compiler on internet, but i stil think microsoft visual is the best...hehe...thank for ur info ya~~
@jean0827 (306)
• Malaysia
27 Nov 07
i see.. I use Visual C++~ whatever I use, i never recognize their names too~haha.. you're welcome~
• Philippines
9 Oct 07
void is a return type in layman's term it is a type that doesn't return anything check this http://msdn2.microsoft.com/en-us//library/yah0tteb(VS.80).aspx about the int main(void)..........the part main parenthesis is used to for command-line parameters/arguments ex. dir /w dir is the program /w - is the parameter/arguments meaning the list should be in wide formate
• Malaysia
24 Nov 07
oic...so the main actually is to define the format for the program. rite?/ anyway, sorry 4 my late reply and thankz for ur info..
@chocoboo (82)
• Singapore
12 Oct 07
main is the function name, int is the return type and void would mean that this function "main" do not take any parameters. I am not really an expert so if I am wrong, please correct me.
@mnsrwt123 (2057)
• India
1 Apr 08
Well, the actual meaning of void in programming is not to return any thing when the function complete its task. Like you wanted to return any integer value when a program finish then you should have to use int rather than void, hope i clear to you.