What's new

Closed C++ tutorial 1: introduction

Status
Not open for further replies.

ophanim

Addict
Joined
May 21, 2017
Posts
15
Reaction
10
Points
67
Age
26
Hi Guys! welcome sa first tutorial natin sa C++ programming.
TOPICS:
-everything na makikita ninyo pag open ninyo ng IDE
What is an IDE?
- IDE stands for Integrated Development Environment. isa po itong user interface which makes it easier for us to code dahil mas madali mong makikita yung mga codes mo at meron ding suggestions. pwede ring mag run ng code dito. mering software, at meron ding online.

So, ano ang makikita natin na basic na codes sa C++.
upload_2018-2-20_21-2-8.png
online po na compiler gamit ko dito :You do not have permission to view the full content of this post. Log in or register now.

First is LINE 9: #include <iostream>
- ito po ay ginagamit sa pg load ng lahat ng laman ng library. "iostream" means "input/output stream" and it allows us to get data from the user(input) and to display something to the user(output).
LINE 11: using namespace std;
-it means use to use the namespace standard "std". ito po ay isang "class" that is used para sa commands ni C++. for example: cout<< ay ibig sabihin std::cout<<.
LINE 13: int main()
{
}
-ito po ay isang "function" at sa loob ng curly braces inilalagay yung codes naten. ang main function po ang unang function na eh rurun pg nag open tayo ng program naten. ang function ay isang group of codes that can be called by another function. meron po "int" dahil sa Integer ang main function natin. pg mg return na sya ng value na 0, it means tapos na ang program at mag eend na. further discussions about class and functions on the next thread.
LINE 15: cout<<"Hello Word";
- ahahaha d ko alam ba't ganito to lagi sa mga programming language. siguro a welcome sign sa "World of programming". cout<< means magpapalabas ng "String" o text ang program. always enclose strings with qoutation marks "".
Syntax:
cout<<"Hello World";
if we run this code, heto po yung output
upload_2018-2-20_21-24-22.png

NOTE: sa C++, it is always needed to put semicolon at the end of the block og codes except sa pag declare ng functions, class etc. see you sa next thread. comment for questions
 

Attachments

Vexanna12 hindi po. Mechatronics po course ko. combination of Mechanical Tech,Computer Tech, and Electronics Tech. gumagawa po kami ng robot sa projects namin ahaha
 
hindi po. Mechatronics po course ko. combination of Mechanical Tech,Computer Tech, and Electronics Tech. gumagawa po kami ng robot sa projects namin ahaha
wow ts ah patuloy blang ts need ko kasi ng tutor hehehe
nice one god bless
 
Ito yong tinatawag na quality thread. sarap makakita na ganito yong sinishare my snappy salute to you sir. If i have a spare of time pag aaralan ko to ulit nag focus lang kasi ako sa isang programming language during my college days kaya aminado ako sa sarili ko na di parin sapat yong kaalaman ko. Hehe. Sana di ka mag sawa na i update tong thread mo sir.
 
Status
Not open for further replies.

Similar threads

Back
Top