 Lost universe of ProgramingUSERNAME :- Forum Post:-114     Lost universe of Programing :: --=| SOURCE CODE |=-- :: C/C++ SOURCE CODE Share

# C++ Concept For Beginners Part 1 AuthorMessage   Number of posts : 160
Age : 33
Location : Lucknow
Job/hobbies : Software Engeener
What U like To do ? : Because Its Rock with me.
Registration date : 2008-01-06  Subject: C++ Concept For Beginners Part 1 1/17/2009, 11:42 pm C++ Concept For Beginners Part 1Computer System have been Divided into two basic part one isComputer hardware and other is virtual computer also called operating System,So to design an operating System or any Application that runs on the operatingsystem like yahoo messenger, Ms paint, Ms word etc are design or developed byusing a programming language,So in short you can say that programming language is the tool to develop System or application Software.OK Lets Start nowQ1. How do you start programming?To design a Program you should be a good logical thinker,Lets take an Example you what to design a Program which can add two number? SOhow can you solve this Problem, Think it Dear.OK I tell you, Program is a System, Which take some input and Produced Some Output.So First you take two number (1,2) Right as these two number will be the Input, now you have to save those number in the memory and So you have to use variables, Where Variables are the Object, Stores the Data (1,2) in it, So variable occupies the Space or memory. Remember always to Store values in memory.Now you stored the two value in two variable OK..Like this A = 1;B=2;Now you do the addition operation on these variable, andresult can be stored in other variable say DSo D= A+B;You print the Out put Mean value of D which is the result and you need itI hope you have understood the basic logic to wright theprogram, in the same manner you have to think, before developing the program.Think By your Self:-Q1. Design a Program to Subtract, Add,Multiply and Divide two number ;Q2. Design a Program To Print This ?************Q3. Generate Even number and Odd number ?Solution:-Q1.1. Two variable as two value is taken A and B 2.Now For Different Operation Like Subtraction(D=A-B),Multiply (D=A*B) like for division3. Now D will contain the result4. Print the value of D on the monitorQ2. Its Simple1. First you take input as * Stored in a variable A=" * " (" " is used because * is a character not a number ex plane later)2. Now You repeat the process of printing the value of A in Horizontal for 4 times and then 3 times DownwardOK I though you understand the logicQ3.1. A variable Say A as input2. now to check even number, In mathematics If you take mod of a number by 2 and result is equal to 0 then Even else odd3. D= A%2 (% mod Sign for finding remainder)4. Now you will check that is the Number D is equal to 0 if yes then A is even Else oldOK i though you understandNow keep Practicing Different program......_________________""»-(¯`v´¯)-»"HACKER OF HEART"»-(¯`v´¯)-»"     C++ Concept For Beginners Part 1 Page 1 of 1
 Similar topics » MOTU Classics: The Thread - Part 2
» RUST's Beginners Guide & Tips and Tricks
» Harga Spare Part untuk motor SYM GTS/VTS 200
» Neuer beginner Clan Apocalyptic Vendetta!
» 2011 SDCC MotuC items revealed!

Permissions in this forum:You cannot reply to topics in this forum Jump to: Select a forum||--WRITE YOUR PROBLEM IN ANY TECHENOLOGY|----=| SOURCE CODE |=--|   |--C/C++ SOURCE CODE|   |--CODE FOR C# & ASP.NET|   |--CODE FOR JAVA|   |--DATA BASE MANAGEMENT|   |--VB 6.0 Code|   |--VB.NET CODE|   |--Java Script and Html|   |----=| TUTORIALS |=--|   |--TUTORIALS FOR MESSENGER|   |--JAVA|   |--ETHICAL HACKING & NETWORKING|   |--TOOL & TIPS|   |--MOBILE RELATED|   |----=|WINDOWS|=--    |--WINDOW VISTA Problem    |--WINDOW XP Problem    |--Software Discription