Perhaps I just agree with Ritchie and Stroustrup that main(void) is awful. That's my opinion, however.
My post was motivated on this: since int main()int main(void) are considered more-or-less equivalent (from our perspective, because they are most definitely not equivalent in actuality), and not all C compilers can trip through the second easily, why bother correcting correct code?
hey_shishir, sorry you've had to put-up with this. However, the forum announcements make it quite clear that we won't do your homework for you. You are plenty bright enough to think about how to test a number to see whether or not it is divisible by 3. Give it your best shot, and if it still doesn't work right, post back here with what you have got and we'll help you fix it.
How can something correct be corrected? ( Rhetoric question )
Regardless, there was not correction to twomers posted code, but rather an add-on or extension to the sarcasm intended. Thus the green highlights. e.g.
You are plenty bright enough
How bright where you thinking? Bright as a 20 watts bulb or as a 60 watts one. ( No an actual question, but rather a sarcasm )
>> There was a reason why rhetoric question was specifically written within parenthesis.
Same reason as void :D I got the joke, by the way.
I merely thought the quote correlated to the situation. Anyways, I don't think the OP's coming back. Been fun posting in this thread!
- void main is bad, very bad. Find out why.
- getch() is nonstandard and nonportable. Use getchar() instead, and then you can get rid of the conio.h header file.
- Use CODE tags when posting code.
- Don't post complete solutions to homework.
Well, seeing as we've lost the OP anyway, I hope you are laughing and not suggesting you have a firmer grasp of English grammar than I...
Because if you are just laughing you know already that the word "and" is only used to conjoin similar clauses and does not have any effect upon the exact, technical relationship (if any) between those clauses...
But again, seeing as this thread has permanently disintegrated into silly answers, I accept your joke.
Hi. I have a form with list box : lst_product, datagridview : grd_order and button: btn_addline. lst_product has a list of product ids selected from database (MS Acess 2013) , grd_order is by default empty except for 2 headers and btn_addline adds rows to grd_order.
I am writing a java program that needs to execute shell commands, so I wrote a function that would take the command to execute as a string (ie: "mkdir ~/Folder1") and execute that command with the shell. Here is the function:
Runtime run = Runtime.getRuntime();
Process pr = ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...