Nama : Deab Sina
NIM : 49012078
Jurusan : D4 TMD ITB Batch 6
This is video about: How to install Microsoft Visual Studio 2010 and Basic code in C++ Programming.
Link to this video:
Source Code:
#include <iostream> // Calling library
int main() // Main method
{
// Latihan in Modul 1
// We call comment single line
/*
We call comment multi line
*/
char nama[50]; // We declare char virable nama that can insert 50 character
int nim; // We declare int virable nim
std::cout<<"Welcome to C++ Program\n"; // We use it for print everything in the string
std::cout<<"Nama: "; // To get value from keyboard or user
std::cin>>nama;
std::cout<<"NIM : ";
std::cin>>nim;
std::cout<<"Jurusan : Ticnik Eletro - STEI - ITB\n";
system("pause"); // We use for pause processing
return 0; // For return the value 0
}
int main() // Main method
{
// Latihan in Modul 1
// We call comment single line
/*
We call comment multi line
*/
char nama[50]; // We declare char virable nama that can insert 50 character
int nim; // We declare int virable nim
std::cout<<"Welcome to C++ Program\n"; // We use it for print everything in the string
std::cout<<"Nama: "; // To get value from keyboard or user
std::cin>>nama;
std::cout<<"NIM : ";
std::cin>>nim;
std::cout<<"Jurusan : Ticnik Eletro - STEI - ITB\n";
system("pause"); // We use for pause processing
return 0; // For return the value 0
}
No comments:
Post a Comment