#include<iostream>
#include<conio.h>
#include<string>
using namespace std;
void main(){
/*string nama = "Rendy Yoshioru";
cout<<nama.substr(8)<<endl;
string belakang = nama.substr(8);*/
/*string no;
cout<<"no phone:";getline(cin,no);
string kodeoperator=no.substr(0,4);
if(kodeoperator=="0812"){
cout<<"simpati"<<endl;
}else if(kodeoperator=="0813"){
cout<<"simpati"<<endl;
}else if(kodeoperator=="0852"){
cout<<"as"<<endl;
}else if(kodeoperator=="0819"){
cout<<"xl"<<endl;
}else if(kodeoperator=="0815"){
cout<<"mentari"<<endl;
}else{
cout<<"tidak dikenal"<<endl;
}*/
/*string npm;
cout<<"NPM anda:";getline(cin,npm);
string jurusan=npm.substr(4,3);
if(jurusan=="250"){
cout<<"TI"<<endl;
}else if(jurusan=="240"){
cout<<"SI"<<endl;
}else if(jurusan=="110"){
cout<<"MI"<<endl;
}else{
cout<<"TIDAK DIKENAL!"<<endl;
}*/
/*string kalimat=" ibu pergi ke pasar";
int posisi=kalimat.find("ke");
cout<<kalimat.substr(posisi)<<endl;*/
/*string nama;
cout<<"input nama:";getline(cin,nama);
int posisi=nama.find(" ");
cout<<nama.substr(posisi);*/
_getch();
}
Minggu, 29 Mei 2011
Langganan:
Posting Komentar (Atom)
Comments :
0 komentar to “Sub Rutin”
Posting Komentar