이온 정수기

comments and variable in c++/ in visual studio code

페이지 정보

작성자 learn with frie… 작성일21-01-12 00:00 조회0회 댓글0건

본문



in this video we are going to learn how we insert comments and variables and types of variable
the code of lecture is
#include |iostream|
using namespace std;

// this is a single line comment
// single line comment is comment out by ctrl + /
// single line comment is comment in by ctrl + /

/*this
is
a
multi
line
comment */
// multi line comment is written between /*------*/
// this
// is
// a
// para

int main(){
// int type variable can take only digits
int a = 5;
int f = 7;
// flote can take values of decimal type
float b = 5.6;
// double can take value up more then float after decimal
double c = 9.6523;
// char can take all characters such as 'a','t' etc
// char can take only of letter of allaphabate if we write more then 1 then that we give error
char d = 'u';
// char e = 'du';
cout||"the value of a is "||a||endl;
cout||"the value of f is "||f||endl;
cout||"the value of b is "||b||endl;
cout||"the value of c is "||c||endl;
cout||"the value of d is "||d||endl;
cout||"i love my country"||endl;
int sum = a+f;
cout||"the sum of a and f is " ||sum||endl;
return 0;
}
click to subscribe
https://www.youtube.com/channel/UCESQcT9T4-VdIKzotWgqMiw
basic structure of c++ and extantions
https://youtu.be/eKu95cYXMIE
installation of visual studio code and mingw
https://youtu.be/FF11WL8ubaE
|| is replaced by angular bracket
please like, share the video
and subscribe the channel to never miss any update of c++

댓글목록

등록된 댓글이 없습니다.

Total 2,494건 1 페이지
게시물 검색
Copyright © www.xn--980b52kz2an0f74gb2ck3knm1a.kr. All rights reserved.  Contact : help@oxmail.xyz