Penggunaan Array Karakter pada Bahasa C++

Latihan Modul 7.4

Nama : Haidi

No.Reg : 49031064

  1. Buat Project dengan menggunakan array karakter yang berfungsi menampilkan nama-nama teman sekelas anda.

Source Code :

  1. //Nama : Haidi
  2. //NIM : 49013064
  3. #include <iostream>
  4. using namespace std;
  5. int main()
  6. {
  7. cout << “Nama-Nama Mahasiswa D4 ITB \n”;
  8. char name[90][60] = {“1. Al Bahri”,”2. Andri Arisandi”, “3. Andri Setia Permana”,
  9. “4. Anggrelia Pradina Kisyanda”, “5. Anjas Permana Kumbara”,”6. Arina Primardiani”, “7. Avinta Putri Agistasari”,
  10. “8. Bastoni”, “9. Candra Ardi Nurdianto”, “10. Devita Maulina Putri”, “11. Diana Mayangsari R”, “12. Diki Permadi”, “13. Diksi Kalis A”,
  11. “14. Dwi Novianto”, “15. Egi alif P”, “16. Eidelbert S. Sinaga”, “17. Elan Qisthi Aji W”, “18. Evan Rahanda”, “19. Evi Septiyani Suparno” ,
  12. “20. Fahuraraji” ,”21. Faizal Rachman”, “22. Fajar Nur Rachmad” ,”23. Fana Barkah”, “24. Fariz Fath Al-Akbar”, “25. Fitria Pandu Nugraha”,
  13. “26. Gita Chandika Putri”,”27. Hadrian Erlanda” ,”28. Haidi”, “29. Haifani Azmi Rahman” ,”30. Hendri Sildrian”,
  14. “31. Heru”, “32. Ilham Vahrizal”,”33. Indrabayu”, “34. Irwan Saifranto R”,
  15. “35. Ishak”, “36. M. Hamzah Mashuri B”, “37. Madarina Imanisari”, “38. Mentari”, “39. Mhd. Syarif”, “40. Muchamad Saifurrachman”,
  16. “41. Muhamad Anwar”, “42. Muhammad Dinul Fathan”, “43. Muhammad Hamzah”, “44. Muhammad Maulana Munzir”, “45. Muhardi Saputra”, “46. Nabila Ariani” ,
  17. “47. Nadea Nabila” ,”48. Nugroho Permata Putra”, “49. Nurfiah” ,”50. Nurlela”, “51. Pramayogi Sanches”, “52. Prasetya Ahby”,
  18. “53. Pujo Dwi Aryanto”,”54. Purbandaru P U” ,”55. Rahmad Badawi S”, “56. Ratih Putri Sundowo” ,”57. Rico arliyanto”,
  19. “58. Rifgin Rigazy”, “59. Rindriana Martasari Putri”,”60. Risa Ningrum”, “61. Rizki Syahputra”,
  20. “62. Rizqia Wulan Sari”, “63. Samsul Arifin”, “64. Sandru Kharisma”, “65. Sandy Putra”, “66. Satrya Wira Wicaksana”, “67. Taufik Eko Wicaksono”,
  21. “68. Taufik Maulana”, “69. Taupik Nurhidayat”, “70. Toni Firnandess”, “71. Tri Sepdian Aditia Faudji”, “72. Vergina Sawmitha A”, “73. Vide Rawi Purnama Ade” ,
  22. “74. Vitradisa Pratama” ,”75. Vitria Ratna Sari”, “76. Widya Eka Prativi” ,”77. Yufri Isnaini Rochmat Maulana”, “78. Yukke Yuliani Hamdani”, “79. Yulia Hapsari”,
  23. “80. Yunita Rahmawati”,”81. Zulkarnain Ar Rasyid” ,”82. Chum Chivorn”, “83. Kruy Borey” ,”84. Tren Vongsahaska”,
  24. “85. Um Kosal”, “86. Sreng Dalin”,”87. Branom Channary”, “88. Sem Bunthon”,
  25. “89. Samun Samorn”};
  26. for (int i = 0; i < 90; i++)
  27. {
  28. cout << name[i] << endl;
  29. }
  30. system(“pause”);
  31. return (0);
  32. }

Setelah di compile dan di jalankan :

modul7.4

modul7.4part2

 

 

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s