Skip to main content

Posts

Showing posts from October, 2015

Some Points About C Programming: Every Programmer Should Know

Some important points in C Programming Here I am writing some points about C programming which I acquired during my learning about programming. These points may help you to get more from the C language, and increase the curiosity to explore it wider. 1) You can not use return keyword in ternary operators(?,:) 2) You can't left the bracket empty of while and for loops like while() and for(); 3) if i=5; then i=i+(6,7,8,2,9); will assign i=5+9;Because of ',' operator association. 4) You can only apply the register specifier to local variables and to the formal parameters in a function. 5) If You declared too many register variables then compiler automatically transforms register variables into non register variables when the limit is reached. 6) You can't obtain the address of a register variable by using the & operator. 7) Register variable only for int and char type.It may support other types(not in Dev-C++5.3.0.4) but significa

Error parsing XML, line 653, column 90: The reference to entity "skin" must end with the ';' delimiter.

                      I n the following post we will look up an error, heading of the post. If you are trying to insert some code in a web project,an existing website or blogger template. The following error can occur. "Error parsing XML, line 653, column 90: The reference to entity "skin" must end with the ';' delimiter." If you go to the location in file as mentioned line number and column number(obviously line no. and column no. can be different in each case) in the error string, You will see the html entity. HTML entity is a symbol which you can not use directly but you have to replace the symbol with some formatted text. For example we replace '<' with "&lt;" (without quotes). Here the list of html entities and their equivalent name. Result Description Entity Name Entity Number non-breaking space &nbsp; &#160; < l

Easiest Method to Read and Write into Files Streams in Competitive Programming

                      T his article is about easiest way to perform read and write operation from file. File handling is one of the most important aspect of programming and it becomes more important when we do competitive programming. Here are some context when you need to deal with files in comptetive programming. 1) Some specific programming contests like Google Code Jam and Facebook Hacker Cup they provide a file for input. You have to read input from that file and write answers into a file and upload on server within limited time. 2) If you are trying to code for a problem. Suppose the problem was that a square matrix is given and you have to rotate the matrix by 90 degree clock-wise. First line of input indicate the total no. of test cases and first line before matrix represents size of matrix. Then input would be like this. 3 5 10 23 43 34 21 11 13 43 30 71 10 23 43 24 21 13 53 43 34 21 10 23 43 38 61 3 2 4 5 6 4 1 2 8 9 4 31 20 40 21 77 22 61 10 11 22 33 44 43 88 41