1 / 9

Menggunakan Fungsi String

Follow Blog : Aasliyaniunm10.wordpress.com. Menggunakan Fungsi String. Pertemuan 5. Fungsi Manupulasi String. Fungsi strcat () Fungsi strcmp () Fungsi strcpy () Fungsi strlen () Fungsi strrev (). Fungsi strcat ().

sidney
Download Presentation

Menggunakan Fungsi String

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FollowBlog : Aasliyaniunm10.wordpress.com MenggunakanFungsi String Pertemuan 5

  2. FungsiManupulasi String • Fungsistrcat() • Fungsistrcmp() • Fungsistrcpy() • Fungsistrlen () • Fungsistrrev()

  3. Fungsistrcat() Fungsistrcat(), digunakanuntukmenambahkan string sumberkebagianakhirdari string tujuan. Bentukpenulisan : Strcat (tujuan, sumber) ;

  4. Fungsistrcmp() Fungsistrcmp(), Untukmembandingkan string pertamadengan string kedua. Bentukpenulisan : Vaer_ int = strcmp (strl, str 2) ;

  5. Fungsistrcpy() Fungsistrcpy(), Untukmenyalin string asalkevariabel string tuuandengansyarat string tujuanharusmempunyaitipe data danukuran yang samadengan string asal Bentukpenulisan : Strcpy (tujuan, asal) ;

  6. Fungsistrlen () Fungsistrlen (), digunakanuntukmemperolehbanyaknyakarakterdalam string. Bentukpenulisan : Strlen (str) ;

  7. Fungsistrrev() Fungsistrrev() digunakanuntukmembalikletakurutanpada string. BentukPenulisan : Strrev (str) ;

  8. FungsiKonversi string • Fungsiatof(), untukmengubah string (teks) angakmenjadibilangannumerik float. • Fungsiatoi(), untukmengubah string (teks) angkamenjadibilangannumerik integer. • Fungsiatoi(), untukmengubah string (teks) angkamenjadibilangannumerik long integer.

  9. TerimaKasih

More Related