 cppstartercodes.blogspot.com
                                            cppstartercodes.blogspot.com
                                        
                                        C++ Beginner Examples: A Note on Compatibility
                                        http://cppstartercodes.blogspot.com/2015/02/a-note-on-compatibility.html
                                        Tuesday, February 10, 2015. A Note on Compatibility. Like languages we use in our daily life, programming languages also have many dialects. Which dialect to follow depends on the compiler you use. In case of C , we have an international standard for it, devised by ISO. This is known as ISO C. What should Turbo C users do. Don't use using namespace std;. You will have to press Alt F5 after program execution in order to see the output. Or you can include conio.h and then write getch();. Cout "Hello, World! 
                                     
                                    
                                        
                                             cppstartercodes.blogspot.com
                                            cppstartercodes.blogspot.com
                                        
                                        C++ Beginner Examples: February 2015
                                        http://cppstartercodes.blogspot.com/2015_02_01_archive.html
                                        Sunday, February 22, 2015. Swapping Via Pass-by-Reference and Pass-by-Pointer. There is a function swap. In this code, which we use to swap two numbers. If we define the function as swap(x, y). And call it as swap(a, b). The swapping done in the function will not reflect inside the main function. Why? Because it is pass-by-value. So that the function can handle the original ones. There are two methods in C to accomplish this: 1) pass-by-reference. And call it as swap(a, b). Is known as implicit. Cout "En...
                                     
                                    
                                        
                                             jsstartercodes.blogspot.com
                                            jsstartercodes.blogspot.com
                                        
                                        JavaScript Beginner Examples: Simple Interest Calculator Using JavaScript
                                        http://jsstartercodes.blogspot.com/2015/02/simple-interest-calculator-using.html
                                        Thursday, February 12, 2015. Simple Interest Calculator Using JavaScript. Let us create a simple web app that helps to calculate simple interest. The code is given below. You can pase it into a text editor (e.g.: gEdit or Notepad), save it with a filename that has the extension .html. Eg: simpleint.html), open it in a web broswer, and run it. Title Web App for Simple Interest Calculation /title script function calculate() { p = document.getElementById("p").value; n = document.getElementById("...
                                     
                                    
                                        
                                             jsstartercodes.blogspot.com
                                            jsstartercodes.blogspot.com
                                        
                                        JavaScript Beginner Examples: February 2015
                                        http://jsstartercodes.blogspot.com/2015_02_01_archive.html
                                        Thursday, February 12, 2015. Simple Interest Calculator Using JavaScript. Let us create a simple web app that helps to calculate simple interest. The code is given below. You can pase it into a text editor (e.g.: gEdit or Notepad), save it with a filename that has the extension .html. Eg: simpleint.html), open it in a web broswer, and run it. Title Web App for Simple Interest Calculation /title script function calculate() { p = document.getElementById("p").value; n = document.getElementById("...
                                     
                                    
                                        
                                             cppstartercodes.blogspot.com
                                            cppstartercodes.blogspot.com
                                        
                                        C++ Beginner Examples: Swapping Via Pass-by-Reference and Pass-by-Pointer
                                        http://cppstartercodes.blogspot.com/2015/02/swapping-via-pass-by-reference-and-pass.html
                                        Sunday, February 22, 2015. Swapping Via Pass-by-Reference and Pass-by-Pointer. There is a function swap. In this code, which we use to swap two numbers. If we define the function as swap(x, y). And call it as swap(a, b). The swapping done in the function will not reflect inside the main function. Why? Because it is pass-by-value. So that the function can handle the original ones. There are two methods in C to accomplish this: 1) pass-by-reference. And call it as swap(a, b). Is known as implicit. Cout "En...
                                     
                                    
                                        
                                             cppstartercodes.blogspot.com
                                            cppstartercodes.blogspot.com
                                        
                                        C++ Beginner Examples: Student Deatils Using Object
                                        http://cppstartercodes.blogspot.com/2015/02/student-deatils-using-object.html
                                        Tuesday, February 10, 2015. Student Deatils Using Object. Here is the code for calculating the total score of a student. It focuses on the object orientated approach. Turbo C users should read this (click here). Using namespace std;. Float score[6], total score;. Void student : input(). Cout "Enter the name of the student: ";. Cout "Enter the roll no. of the student: ";. Cout "Enter the scores for six subjects one by one: n";. For(int n = 0; n 6; n ). Void student : calculate(). Total score = 0;.